Declare expressions are not getting triggered & Clipboard not updated
I don't see the clipboard values getting updated until I perform a Post Value on all text input controls. Since the clipboard values are not getting updated, declared expressions are not getting triggered. I defined the properties in the data layer and reusing in work layer. I need to populate the EventBasePrice from decision table based on No of Attendees. Please find the attached screenshots for your reference.
1. Create a new Case
2. Enter No of Attendees
3. Navigate the cursor to next field
4. Open the Clipboard
5. I don't see the No of Attendees reflected in the Clipboard (unless I explicitly call Post Value)
I built another application that uses declare expressions extensively, but I never added any events (OnChange/Post Value). Whenever I move the focus to next field, the clipboard values gets updated automatically.
Can you add NoOfAttendees to Additional Dependencies.
The tracking of dependencies operates on Properties known to be used in the calculation, the function you've used has a string representation of the property (i.e. ".NoOfAttendees", rather than property itself (.NoOfAttendees), in these instances you need to add it to the additional dependencies list.
The properties on screen are rendered as they exist on the clipboard at that time, any manipulation of those and subsequent calculations need a round trip to the server.
This is either through posting the value (as you have done so far) or through a section/harness refresh (which incorporates a post); you can configure this as either a specific action event on the input control, or as a refresh condition on the containers.
Thank you Joel. I built a similar application and I never used any events on the input control for the clipboard values to get updated. I just verified in the older application and it worked fine. As soon as I move the cursor and view the clipboard content, the value gets updated. Is it always mandatory to perform PostValue or dyanmic layout refresh based on the property for declare expressions to work on run time?