Clarity

  • 1.  Need ideas to trigger Page Refresh inside a Process/Gel Script

    Posted Mar 08, 2018 10:14 AM

    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  



  • 2.  Re: Need ideas to trigger Page Refresh inside a Process/Gel Script

    Posted Mar 08, 2018 11:21 AM

    There are a few previous discussions on this sort of subject;

    How to refresh a page/field automatically ? 

    CA PPM Tuesday Tip - Auto refresh an object instance once process runs 

    Trigger Page Refresh inside a Process or Gel Script 

     

    (I have never had to solve this properly myself though ; the closest I have come is defaulting a text value on the object to something like "**** IF THIS MESSAGE IS DISPLAYED THEN PLEASE REFRESH YOUR SCREEN ****" and then the background process replaces that message as part of the process)



  • 3.  Re: Need ideas to trigger Page Refresh inside a Process/Gel Script

    Posted Mar 09, 2018 08:23 AM

    Hi David,

     

    thanks for your prompt response.

    We have created an attribute on object with Text message "Refresh the page before adding values" on the edit layout. Users are not happy with this workaround though.  



  • 4.  Re: Need ideas to trigger Page Refresh inside a Process/Gel Script
    Best Answer

    Posted Mar 12, 2018 06:12 AM

    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.



  • 5.  Re: Need ideas to trigger Page Refresh inside a Process/Gel Script

    Posted Mar 13, 2018 07:51 AM

    Hi Sridhar,

     

    thanks for the workaround. i tried this on my application and it worked. but to see the instance page user has to be refresh the page.

    i am trying to create a gel script with java script included that invokes page refresh.

     

    had anyone created one like this.?