Posted: 12 May 2017 15:46 EDT Last activity: 23 May 2017 13:44 EDT
Display pagelist data as a list view inside a section
Need to display pagelist data as a list view in a section.
I already have pxResults with data on the clipboard. So, i dont need to create a list view but just display the results like a list view (row clickable format) inside the current assignment (section). On click of the row, we need to go to a new assignment by passing the row data of the clicked row to that assignment & continue the existing flow.
I understand that you have data in the clipboard and you would like to display that as a list view to leverage list view features.
Below is the screen print of RunScript Event on Repeat Grid row.
You can keep the definition of the js method (openAssignment) in the UserWorkForm rule with in <script> </script> tags
As the ListViews are deprecated in Pega 7, We recommend to use "Repeat Grid " Configuration instead of ListView. This configuration works as expected in future if you upgrade to Pega 7.
Hope this suggestion suits your requirement. Please feel free to add your comments/thoughts if any.
Thank you very much Cherb for your valuable response.
As you mentioned, I could see the onclick event only in Repeat grid properties, I choose Perform action to display flow action and trying to call an activity form flow action pre-activity, but onclick event is NOT triggering any action.
Since I'm not able to see any Row onclick event, I implemented at Repeat grid level. Is this correct ?
You have chosen your action to display flowaction, That is correct. However, you have chosen grid Edit Mode as "Read Only". When the grids are in readonly mode, the onclick actions configured will not work. Hence Change the Edit Mode to " Read/Write".
I understand that your requirement is to "Show the flow action when you click on the row of the grid". If my understanding is correct then the best possible way to do that is to use Other Edit Options ("Modal Dialog", "Embedded Pane" and "Expand Pane" for the grid which would also take flow action name as input.
The class context of the flow action should be the same as the context of the property grid. For detailed information/configuration help, just check the "Repeating Layouts" section in UI Gallery.
Hope this helps. Please feel free to reply your thoughts on this.