Question
Record in a Grid is not selected when pySelected is set to true
2. On button click, set user entered (text box) record's pySelected to true and rest to false. Refresh the section
2. Load the Grid (3 records in my case)
3. Enter 2 in the text box, click button
I have verified the property (pySelected) was set to true for the records number entered in the text box and rest to false. Also I see reload section in Tracer but recrod is not getting selected.
FYI, in the repeat grid the “row” property panel need prompting for a “format” to apply on condition of pySelected=true. This “format” has to be defined in the skin and currently we don’t have the row formats to define in skin under “Grids” component setting.
***Updated by moderator: Lochan to add Category, edit post to remove proprietary information, tag SR details***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Hi Vijay
As per my understnading you are trying to select a particular column in a grid and displaying the same grid in the next screen. Now in the second screen(Screen B) you wan the focus to be set on the row which was selected in the first screen(Screen A).
So the solution which I am providing is based on the above understanding. Please rectify if I'm wrong
So this perhaps is a requirement because in PRPC we do not have an option to set the focus on a row of a grid "onload". So the below solution could be an approach with a few limitations
1) First configure a DataTransform on the column in grid of Screen A. Pass a parameter as below to DataTransform
2) In the DataTransform set the passed param to some property value.
3) Now in Screen B add the above set property(in above case RowIndex) as the first element in Screen B. Make this property as invisible and check Reserve space while hidden (so that the element is present in DOM ).
4) This property has the row's index value you set in previous grid (Screen A). Now as this is the first element that will be focused on load of Screen B configure "Focus" event on this property to set the focus to the row in our required Grid
So at runtime the usecase would be like below on the load of that section.