Question
deloitte
IN
Last activity: 27 Aug 2019 13:38 EDT
On click of Previous Next button, Update Pagination
On click of previous and Next button , I want an update in my input field in number.An example is attached below.
Please suggest some ideas to get this.(Using PEGA Version 8.1)
***Moderator Edit-Vidyaranjan: Updated Platform Capability***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
deloitte
IN
help me on this please .
Pegasystems Inc.
IN
Hi Sonal,
Is this a custom pagination that you have implemented or the default pagination that you can implement on table in the table properties in the section.
If it is your custom implementation then you can use declare expression to calculate the value every time you click on previous or next button and populate the field where you want to show the page number.
If it is default pagination configured in the table in the section then using live UI you can open the section and on the button you can add a run activity and in this activity you can do a property set to write an expression to calculate the page number.
For example: If you have previous and next buttons in the OOTB section and you have created PageNumber property to show the page number.
On click of the buttons you will configure run activity and in the activity you have two property set steps.
step 1 - property set for PageNumber (when you click next button and PageNumber < maximum_pages).
PageNumber= PageNumber+1
step 2 - property set for PageNumber (when you click previous button and PageNumber >1)
PageNumber=PageNumber-1
Regards,
Vikash
Updated: 26 Aug 2019 18:32 EDT
Pegasystems Inc.
IN
Hi Sonal,
Is this a custom pagination that you have implemented or the default pagination that you can implement on table in the table properties in the section.
If it is your custom implementation then you can use declare expression to calculate the value every time you click on previous or next button and populate the field where you want to show the page number.
If it is default pagination configured in the table in the section then using live UI you can open the section and on the button you can add a run activity and in this activity you can do a property set to write an expression to calculate the page number.
For example: If you have previous and next buttons in the OOTB section and you have created PageNumber property to show the page number.
On click of the buttons you will configure run activity and in the activity you have two property set steps.
step 1 - property set for PageNumber (when you click next button and PageNumber < maximum_pages).
PageNumber= PageNumber+1
step 2 - property set for PageNumber (when you click previous button and PageNumber >1)
PageNumber=PageNumber-1
Regards,
Vikash
deloitte
IN
Hi Vikash ,
Thanks for your instant reply.
I have done the activity part but I am unable to update the input field. I have provided an single Property-Set method for both next and previous buttons as you mentioned above. But unable to see the expected output on click of the button.
How to update the input field with an number.
Thanks.
Pegasystems Inc.
IN
Can yo check in the clipboard if the updated value is being shown or not after click on previous or next button.
I think the issue here is that the value is being updated but the field is not being refreshed.
You can add the text field showing the pagenumber in a section and configure a refresh section for this section on click of the button.
deloitte
IN
Yes its getting updated in the pyWorkPage. Added an text field, given that property to it and added an Refresh Section to the buttons(everything in the same section) but still not getting updated.
Do i need to change the property into an number property ? (that input field where I'm displaying the number)
Pegasystems Inc.
IN
Have you checked the value in the clipboard after section getting refreshed?
Can you trace and check if the section is getting refreshed properly or is their an fail in the tracer after section refresh?