Hi All,
i am looking for a process to be implemented in clarity that will trigger page refresh when a new instance of object is created in clarity.
when a new instance of object is created, process to lock specific fields will run in background and will show in GUI only when the page is refreshed. I tried to create a process which will invoke page refresh dynamically using Gel script but i am not successful.
can anyone please help me achieving this.?
Regards,
Siva Rakesh
If I understand correctly, the actual problem statement you are trying to solve is to restrict users from modifying fields which eventually get locked by background process , triggered upon object instance creation. If this is the case, you may try below approach. I haven't implemented it myself yet and feel free to adjust the same if needed.
- Create a lookup with 2 values. Lets call one value VALUE1 being the text message you want to display for users to wait and refresh untill process finishes and the other VALUE2 which can be anything.
- Create a read only attribute in the Object and associate it with the lookup you just created. Default it with VALUE2 and populate null values with default. Once that is done, change the default value to VALUE1.
- Create a new sub page and place only the attribute you just created and add display condition to show only when the attribute value is VALUE1.
- Add display condition to default object properties subpage to show only when the attribute value is VALUE2.
- Re-order the subpages in properties view such that the newly created sub page is placed right after the default object properties sub page.
- In the existing process that runs on Create, as a last action, update the attribute value to VALUE2.