How to add onclick event to a particular column in report definition included in a repeat grid in Pega7?
I have a requirement where I have to open a file attachment on clicking a particular column in Pega7.1.7. I am using a repeat grid and from within that grid, I am referring to a Report Definition. On clicking one particular column I want to open an attachment. But in Pega 7, I am not finding any way to call activity on clicking each column of the report definition(no onclick event). So I have to call an activity and do a openURLInWindow from the repeat grid of the section. In the repeat grid there is a tab where I can mention the actions, but not the same for each columns of the report defintion. As a result of it, when I click on any columns of the row, the attachment is getting opened which I don't want. I want it to get opened from one particular column only. Please suggest if there is any way out to open this document for only a particular column?
hi , according to your requirement i guess you are using a grid with source as Report defintion.Now if you want to run a activity on click of a column .. Try adding the on click activity in the column in the grid .
Example : Find the OOTB section pxUIGalleryBasicGrid. In this the grid is sourced by Report defintion . Still you can add actions to the column in the grid.
Thanks for the reply. Actually I was avoiding text input control while referring to the property earlier because it was having some other issues(when I click on the column, first it shows as editable textbox and then I have to again click on it to call my event) in displaying while on clicking of the event. So I was using the control inherited from the property. In this, there was no option to specify the action set. Only thing you can do is post value and refresh the section.
As shared by Avik to moderators in a private message-
"The issue is resolved. I am now using text input control only. I have to change the applicability of the action set to read-only/both.Now i am able to specify the action set and document is opening on clicking of the column.Thanks."