Posted: 2 Jun 2016 23:52 EDT Last activity: 30 May 2017 10:15 EDT
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.
Posted: 4 years ago
Updated: 4 years ago
Posted: 3 Jun 2016 1:03 EDT Updated: 3 Jun 2016 1:06 EDT
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?