Is there a way to bring to the top of a portal either the row who's ID has been set or, at the least, the first portal row, rather than whatever row was last left at the top.
Commit records will reset the scroll bar and go to portal row will scroll a specified row into view. There's also an option in portal set up that will cause the scroll to reset automatically.
It might help us to help you if you describe the circumstances where you need this. Most requests on portal scrolling are on how to prevent the scroll bar reset.
In this problem there are 2 tabs on the same layout and based on the same table. On the 'Patient' tab, I can change the Patient. When this happens a Parent's child and grandchild records in portals on the Calc tab are set to the latest record (in this case the 1st row of each of their respective portals.
The resetting works, but despite a commit records within the script, if the portals had been left in a partially scrolled state, they stay that way.
Please describe all that in more detail
Is the Reset option checked in the Portal Setup
mark the row you want, name the portal, go to portal row then commit or go to wherever you want
The desired actions:
- When selecting a Patient, the child and grandchild records are set to the first respective portal rows. However,
- I don't want the scroll bar reset when exiting a record because the user may want to come back to that record.
So ideally, I need the first portal rows set and scroll bar reset, but only from the 'Select Patient' script.
Once you exit the record the portal scroll bar will reset. If you create a new window and then exit the record, you could return to the old window and I believe the portal scrollbar will not be reset. Another option is to remove the scroll bar and control navigating the portal with up/down buttons and a filtered portal.
Retrieving data ...