Skip to main content
February 9, 2024
Question

Grid refreshing after record action

  • February 9, 2024
  • 22 replies
  • 0 views

Hello Community, I am using record grid as landing page on site along with record action of create Record. After successfully creating record through the action it is going back to the Grid but is it taking sometime to refresh and show the updated grid. I have updated the refresh interval to 30 seconds which is the least in the options. Is there any solution to automatically refresh the grid after record action or set the refresh interval to least time(5 to 10 sec).

    22 replies

    venkatrea696188
    February 9, 2024

    Hi [mention:c522c28abea14688b96b45d225747f93:e9ed411860ed4f2ba0265705b8793d05]  

    What's the source of grid , If it's direct record reference Grids automatically gonna get refreshed . But if it's you querying it to a local variable and using that local variable use refresh variable with refresh after set to "RECORD_ACTION " . And don't go for Refresh interval that often , Avoid it mostly unless there isn't any other way

    harshitb6843
    February 9, 2024

    You can do 2 things

    1. Add the chaining in your process till the node that is writing this data in the DB. 
    2. Set your grid's REFRESH_AFTER to record Action 

    Just doing these two things should solve the problem. 

    ankushs0002
    Known Participant
    February 9, 2024

    Hi [mention:c522c28abea14688b96b45d225747f93:e9ed411860ed4f2ba0265705b8793d05] ,

    Yes, we also have an option in the grid, and you need to make some changes to the process model itself.

    We need to do 2 changes only !!!!

    For example, if you are using a read-only grid to display data, after performing an action, you need to check your process model. Your process model needs to be properly chained  till the node that is adding data into database

    venkatrea696188
    February 9, 2024
    In interface you need check this checkbox , don't do anything in records..

    Hi [mention:22441f4b76d54668b9ec7593ce03ccbd:e9ed411860ed4f2ba0265705b8793d05]  A small correction in the second option, refresh after each interaction gonna leads to unwanted refreshes , So i suggest going for a "refresh after recor action"

    ankushs0002
    Known Participant
    February 9, 2024

    Hi [mention:5abb751204a145abaeb28c7bf620b9d5:e9ed411860ed4f2ba0265705b8793d05] ,

    That's correct, but based on the scenarios, if we are using refresh after the record action is completed, then it will only work after the action.

    Thanks for correcting me here!


    [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    konduruc733182
    February 9, 2024

    Hello [mention:c522c28abea14688b96b45d225747f93:e9ed411860ed4f2ba0265705b8793d05] 

    Are you using any local variable with a expression in it for your grid data? If so please use a!recordData() in the data parameter of your grid or pass the record if no filters are applicable and follow what Harshit has mentioned.

    February 9, 2024

    The activity chaining in the PM is enabled. The data is coming directly from the list of the record type not using any interface to show the grid. The record type is only directly used in the site . So unable to set the grid to refresh after record action. 

    harshitb6843
    February 9, 2024

    What smart service are you using to write this data? Is there a chance that the record sync is taking time? 

    And by any chance, it is possible that your grid is showing the latest added data on the last page, which remains unnoticed?

    ankushs0002
    Known Participant
    February 9, 2024

    Hi [mention:c522c28abea14688b96b45d225747f93:e9ed411860ed4f2ba0265705b8793d05] ,

    Is your issue is resolved. If you are facing same issue then can you please explain with details more..

    February 9, 2024

    Sharing the ss of PM 

    For grid the code is done in list of the record Type without using any local variables 

    venkatrea696188
    February 9, 2024

    PM is fine can you share the code snippet of data Param of that grid .

    it is possible that your grid is showing the latest added data on the last page, which remains unnoticed?

    Are you sure it's not this?

    konduruc733182
    February 9, 2024

    I think he is viewing it in Tempo is what I understand.