Page 1 of 1

subfile record number

Posted: Mon Mar 21, 2022 5:16 am
by rads
Good morning everybody,

according to the user help ist is not recommended to use
  • subfile record number
  • subfile return rrn
Is there any other method to keep the current grid position - same first line as before?

Best wishes,

Rainer

Re: subfile record number

Posted: Mon Mar 21, 2022 12:46 pm
by Scott Klement
Can you give us a little more context? Under what situation is it important to keep the same first line as before?

To put it another way: Please explain what you are trying to do (rather than how you tried to do it.)

Re: subfile record number

Posted: Tue Mar 22, 2022 3:22 am
by rads
Erm, your question is a bit surprising.
On green screens everybody did this.

Imagine the user scrolls to the 20th record and only 10 records fit into the grid. so that for every record after the 10th she has to scroll down.

Then the user double clicks on the 20th record in order to go to a detail display or maintenance.

When she returns from the called program the current SFL position is lost and the first record in the grid is record 1.

Our users have complained about this behaviour and were very happy with the solution we provided wich - alas -you do not recommend.

Best wishes,

Rainer

Re: subfile record number

Posted: Tue Mar 22, 2022 4:08 am
by Scott Klement
For that type of application, I would recommend using the cursor record number to return the position where they left off. Then subfile record number to position back to that same position.

Re: subfile record number

Posted: Wed Mar 23, 2022 4:50 am
by rads
This is more or less what we do. However according to the user help it is not recommended to use subfile record number:

hardCopy.png
hardCopy.png (17.1 KiB) Viewed 2633 times

Best wishes,

Rainer

Re: subfile record number

Posted: Wed Mar 23, 2022 10:22 am
by Scott Klement
Okay, now I finally understand what you're asking.

Yes, there are several properties that, in my opinion, were mis-identified as "legacy" -- but are not.