Skip to main content
New Participant
Nov 29, 2022 12:10 PM UTC
Question

Auto Refresh page

How to auto refresh a page that is being called in a site.

for example, when I click on Change Department and fill the form and submit. the changes must be reflected on the User screen without refreshing manually

    8 replies

    vinayk2390
    Participating Frequently
    Nov 29, 2022 12:35 PM UTC

    If you're using a record action, you can use refreshVariable() and use the refreshAfter config to refresh the variable that stores the user info.

    New Participant
    Nov 29, 2022 1:25 PM UTC

    wont refresh Variable refresh only local variable?.

    Will it refresh the current page on the site aswell? 

    davel001150
    Inspiring
    Nov 29, 2022 2:59 PM UTC

    Yes, when you change a local variable, that can cause a chain reaction that causes all the other local variables to also update, and last of all the interface components all refresh, the whole SAIL gets rebuilt from the ground up with all the new values.

    refreshAfter : "RECORD_ACTION" could become your very best friend.

    harshitb6843
    Brainy
    Nov 29, 2022 12:56 PM UTC

    My go-to will be to change the nodes till the "Write to DSE" smart service in the PM. That should work. 

    New Participant
    Nov 29, 2022 1:04 PM UTC

    Could you please explain it as in how to implement this

    mikes0011
    Brainy
    Nov 29, 2022 2:54 PM UTC

    The process flow returns the user to the form instantly as soon as the first non-CHAINED link is reached.  If this happens before the DB write occurs, the user is likely to see data reflecting the old version upon reloading of the original form.

    The Expression Guru