Question
Cognizant
US
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.
Using PRPC 6.3 SP1 version.
Please see attachment
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hello Karunakar,
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.
If this is the case then you can use repeat grid layout with source as a property. This should display the values of the pxResults as you expected. However, to implement the "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", you can use RunScript event on click of the row and pass the javascript function(as like openAssignemnt in listview) that you want to instantiate
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,
Hello Karunakar,
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.
If this is the case then you can use repeat grid layout with source as a property. This should display the values of the pxResults as you expected. However, to implement the "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", you can use RunScript event on click of the row and pass the javascript function(as like openAssignemnt in listview) that you want to instantiate
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,
Cognizant
US
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 ?
Thanks,
Karunakar
Pegasystems Inc.
IN
Hello Karunakar,
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.
Thank you,
Cognizant
US
Hi Cherb,
Thank you very much for detailed explanation!!
I'll try those options which you mentioned and let you know.
Regards,
Karunakar
Cognizant
US
Thanks Cherb,
I'm able to fix the issue with placing Radio button for each row in grid.
Any Idea how can we configure alternate colors for grid rows like in below screen.
Thanks Regards,
Karunakar.
Pegasystems Inc.
US
Hi Karunakar,
It looks like your image didn't load properly. Please edit your reply and reinsert the image or add it as an attachment.
Thanks!
Cognizant
US
Thanks for letting me know Marrissa,
I've attached the screen shot.
Regards,
Karunakar.
Pegasystems Inc.
IN
HI Karunakar,
To customize the color for odd and even rows of Grid.Go to Application Skin-->Trees and Grids-->Rows-->Odd rows/Even rows
Please refer the attached screenshot: