We have a grid repeat layout(sourced dynamically) to show work object results based on user search criteria, we configured "double click" event for grid repeat layout to open work object in a new tab.
Requirement : For some work objects(based on a flag value) showed in the grid repeat layout, the double click event should not open that work object in a new tab, meaning that result row should be read only.
Question : Is there any out of box way to conditionally call the double click event in grid repeat layout as far I see I cant find, or please suggest any work around to do this.
Thanks for your reply, to provide more information on this issue, On the "double click" event of Grid repeat we configured the action to "open selected item" and that is the only event/action configured, so there is no series of actions in our requirement.
looking forward for any other workaround/solutions.
With the issue stated above, we came up with new approach of having a custom control set for one of the Column(pyId) in the grid and only on click of that (Column/Row) the work object will be opened in a new tab(Action called is "Open selected item").
But the issue what we are facing now is, if we configure our custom control(in Report Definition Column Format options) for Virtual Grid the work object is not getting opened in a new tab and we are getting an error.
But the same custom control if we place outside the grid or if the grid is not populated Dynamically its working perfectly fine meaning the case is opening in a new tab.
I would also like to suggest what Phani Sahukaru mentioned in the previous post.
If you see the OOTB Section pyUserWorkList , we have used a grid to show the assignments.
The column having a property pxRefObjectInsName is having a link configured which does the open Assignment. You can re use the same section and based on the privilege ( whether you want user to open or not to open ) you can make the link as readonly or clickable.
I did checked the section pyUserWorkList, but in our section the grid is sourced dynamically and we cant set the column static as shown in pyUserWorkList. and the format options needs to be set in report definition.