I am new to pega, trying a simple insert and read operation but the read operation does not show the latest data i.e. the inserted data is not visible on the UI. Detailed explanation:
I have a data model called advisor with id, name, branch id. On the first screen, I show their corresponding text fields to insert a new Advisor. After submitting, the data does get insert via a SaveAdvisor activity as a post processing step of the flow.
On the next screen, I have a picklist to show list of advisors using the automatically created ListAdvisors DataPage. I expect that this dropdown should now also show the newly entered advisor but it does not. What do I need to do here ?
@Vamshi ManiScope: Thread, No refresh strategy, yes the data does get saved using the activity that I have attached as screenshot. I was able to get this working by specifying Page-Remove Method for the list advisors data page in my activity - I think this removed the data page and loads it again on the next UI screen. It is working as expected now.
Please ensure the scope of the data page is at the thread level.
Also, from best practice standpoint, please don’t use pyWorkPage because the context is already in Work and you don’t need to have write now because the flow action submit will commit the data.
Upon investigating the issue, I have successfully replicated it and have found a solution for you. To resolve the issue, please follow these steps to refresh the Advisor list data page:
Navigate to the Advisor list data page.
Under the load management tab, locate the refresh strategy section.
In the refresh strategy section, select the “Reload once per interaction” checkbox.
Additionally, I have sent a pictures to serve as a visual reference. I trust that these instructions will effectively address the issue you encountered.
@Koti Raja Thank you for your suggestions. I had already posted a reply on one of the above comments sharing my update. I did try your suggestion and it was also a valid solution. Thank you once again.