Making A View "Read Only" Based On A Criteria: Aspect User Property

9 February 2025

Whenever Quote Status is set to "Actual" or "Turndown"  for instance, the View should become read-only (Both Parent and Child applets). This criteria is evaluated using a Calculated field as it has several other conditions apart from Quote Status. The Applet is referred in multiple Views, but the "Read Only" functionality was intended to work only in certain Views. 
Solution: Step 1: Create a Calculated Field (Specify your criteria) in the Parent BC of the Target View

Step 2: Add the following BC User Prop                  Name: Aspect BC ReadOnly:            Value: Calculated Field Name (Created in Step 1)            Name: Aspect Child BC ReadOnly:            Value: Calculated Field Name (Same as created in Step 1 or Any other Calculated field   which drives the Child Applet in the Target View)

Step 3: Add the following User Prop at Applet Level                     Parent Applet User Prop           Name: "View Aspect: "           Value:                       Child Applet User Prop           Name:"View Aspect: "           Value:
Note: The aspect user properties are restricted to business component classes based on CSSBCBase. This property provides a dynamic way to use the CSSBCBase class. When a particular aspect has been set from the applet level or CSSBCBase’s default, CSSBCBase changes its behavior based on the aspect-related setting described in the user property.

Tags