Question
TATA Consultancy Services Ltd
IN
Last activity: 19 Apr 2017 9:33 EDT
How to refresh a single page in repeating grid if it is splitted based on Pagination
I am showing data,search result, using Report defination which is in repeat grid.the each row of the report defination has delete and update button.On pressing delete the data status changes to inactive and the delete button should be deactivated.
Similarly on pressing update a new section gets opened to update data and after successful updation the last report defination page should gets displayed with updated result.
On delete button I wrote an activity(click-->Run activity) to change the status and then refresh list(click-->refresh list).but the current report defination page does not get refreshed.
similar is the case for update.the page 1 gets displayed though I stop Page-New in the preactivity when gets back to search page from update page.
pls help.
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
TATA Consultancy Services Ltd
IN
Can any one pls help me in the above mentioned topic.
Pegasystems Inc.
US
Hi Dhritiman,
In looking to your scenario, I found this other discussion about persisting pagination:
Reload section does not maintain paging context of repeat grid
In general, it seems as if your scenario might not be possible based on the current behavior. I have reached out to a few resources to take a look at your post in case they can provide other suggestions.
Thanks.
B.
Pegasystems Inc.
JP
I am not sure if I really understood your question.
Can you attach some screenshots to make your question easier to follow?
Pegasystems Inc.
FR
Hello,
I just tried a similar configuration on my but if you are using the click-->refresh list, I believe the report will be executed again during the actual refresh of the screen. So you will end up with the original values. Have you tried to refresh only the current line ?
For your 'Delete' button, configure 'Click' event , set the action to 'Refresh current row' (You can find it under 'List' actions)
TATA Consultancy Services Ltd
IN
I cannot find the action "'Refresh current row".
I am working on 6.2 .SP2.
On delete button a call a local action in a modal window to show a confirm message "OK/Cancel".On pressing Ok ,an activity is run to make the data "INACTIVE" and delete button gets disabled.
to get the fresh data I have to refresh the section that contain the report def and then it begins again with page 1.
Pegasystems Inc.
FR
Hi,
You will not have this option on PRPC 6.2sp2 I believe. I guess an easiest approach would be to run the report before the presentation of the section and then use the result page for your repeating grid. Using this option, the refresh won't be firing the report again and you will keep the updated values.
TATA Consultancy Services Ltd
IN
On clicking Inquire the search result displayed.To show the search result I have to use report definition,business requirement.
On clicking Delete a confirm message will appear(On delete button a call a local action in a modal dialog to show a confirm message "OK/Cancel".)
On pressing ok an activity is run to make the data "INACTIVE" and delete button gets disabled.
to get the fresh data I have to refresh the section that contain the report def and then it begins again with page 1.
Pegasystems Inc.
JP
what is the short come if you just disable paging and limit the number of rows returned by the report definition?
TATA Consultancy Services Ltd
IN
You ask me for the screen shot,i provide it.But my requirement is to show updated data with paging enabled.
TATA Consultancy Services Ltd
IN
pls anyone help me.
Pegasystems Inc.
FR
Hello,
I just tried again on my internal PRPC 6.2sp2 and the refresh --> list is working correctly for me. So on my screen when I click on the button, I set a property to hide it after the refresh:
and the configuration is the following:
Sorry if I'm missing something obviously different from your scenario here.
TATA Consultancy Services Ltd
IN
I tried the same thing.But does not work.Button configuration is as follows.
The disable condition does not work.My requirement is that --suppose I am at page 3 and then press the delete button against a particular data row.
The data gets inactive and the delete button gets deactivated.But this deactivation is not happening.I make the active=Y to N by running the script.The script is required to produce the confirm msg box.
Pls help and try to replicate my scenario in your internal PRPC.
Pegasystems Inc.
FR
Right, I will try your scenario. Can you just change the "Run on client" option to yes ? Does that change anything ?
TATA Consultancy Services Ltd
IN
My report definition actually fetch the search result depending on the search parameter.Now one of the search param is Status.If the run on client option=yes then the delete button gets enable on selecting the status=Active and vice-versa irrespective of the data status saved in the DB i,e if we run the search without any search param it will bring all the data with Delete button enabled/disabled for active/inactive data.Now if we select Status param=Active,the Delete button gets enabled for all the data though for few data the status =N in db as the client option=yes.that's why "Run on client" option is set to no.
My search screen is below