This is probably a silly question, but if I have a grid (loaded as a subfile in the rpg), I want to highlight (select) a particular row immediately prior to displaying the record format. I tried just setting the SFLRRN to the corresponding Row I want selected, but it did not highlight that row when displayed.
How is this done?
sELECTED ROW upon entry of an application
-
- Profound User
- Posts: 83
- Joined: Sun Oct 03, 2010 8:45 am
- First Name: Mike
- Last Name: Geldert
- Company Name: Stonriver
- Country: Angola
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: sELECTED ROW upon entry of an application
Are you referring to our "row selection" feature? If so, you can bind a field to the "selection field" property of your subfile.
"selection field" should be an indicator, and you will have a separate value for each row in the subfile. If you want a row to be selected, turn on that indicator when writing/updating a subfile record. You can also check this field when reading the subfile to see which ones the user selected with the mouse.
Does that help?
"selection field" should be an indicator, and you will have a separate value for each row in the subfile. If you want a row to be selected, turn on that indicator when writing/updating a subfile record. You can also check this field when reading the subfile to see which ones the user selected with the mouse.
Does that help?
-
- Profound User
- Posts: 83
- Joined: Sun Oct 03, 2010 8:45 am
- First Name: Mike
- Last Name: Geldert
- Company Name: Stonriver
- Country: Angola
- Contact:
Re: sELECTED ROW upon entry of an application
Thanks Scott, I think I understand.
So, by binding an indicator to the Selection Field property, as I load the SFL, I could simply set the indicator to *ON for the row I want to be selected when the subfile displays? For instance, I if the data in the 4th subfile record was what I wanted to be selected when the record format was displayed, I'd simply have the indicator value *OFF for the first three records loaded, then turn it on right before writing the 4th record, and off again for the balance of the records loaded into the subfile.
That sure would make it easy!.
Thanks!
So, by binding an indicator to the Selection Field property, as I load the SFL, I could simply set the indicator to *ON for the row I want to be selected when the subfile displays? For instance, I if the data in the 4th subfile record was what I wanted to be selected when the record format was displayed, I'd simply have the indicator value *OFF for the first three records loaded, then turn it on right before writing the 4th record, and off again for the balance of the records loaded into the subfile.
That sure would make it easy!.
Thanks!
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: sELECTED ROW upon entry of an application
Yes, that's the idea. Let me know if it works for you!
Who is online
Users browsing this forum: No registered users and 4 guests