Support Article
Workobject returning to the start page after closing the case
SA-27215
Summary
User has many pages for WorkObjects in MyWorklist tab in dashboard.
When user opens any workobject from any page say Page 4 and close the workobject then it is returning back to Page 1 instead of Page 4.
Error Messages
Not applicable
Steps to Reproduce
1. Create Pagination on Grid.
2. Open WorkObject from say page 2.
3. Close WorkObject.
Root Cause
As there was a Refresh condition configured on the section included the condition was set to true and hence the refresh was happening.
When refresh occurs, the grid reloads and hence the first page in grid will be shown.
Resolution
Perform the following local-change step:
- Remove Refresh condition.
Then the selected page will be displayed but in this scenario user has resolved the WorkObject that is opened from Page x.
Now this workObject does not get removed from the list.
To achieve this Configured a button and run the below script:
<script>
function RefreshCurrentPage(event,pageNo){
Grids.getActiveGrid(event).gridPaginator(event,pageNo);
return false;
}
</script>
While calling this button passed the parameters as shown below.
The results page is the results page of Grid:
Published September 15, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.