How are you getting to that record in list view as active? Are you coming from form view or via a search? Or using a type ahead in a list view layout?
Thanks for the reply. Am coming from a layout in most instances, though in a few places I'll arrive via a search.
One option, which is to run a script at the end of the script that navigates to the record:
Set Variable [ $rowCount ; Value: 24 // this is the number of records in your list view ]
Set Variable [ $midPoint ; Value: Int ( $rowCount / 2 ) ]
Set Variable [ $rowNum ; Value: Get ( RecordNumber ) ]
Go to Record/Request/Page [ With dialog: Off ; $rowNum + $midPoint ]
Go to Record/Request/Page [ With dialog: Off ; $rowNum ]
EDIT: Naturally, $rowCount would be inaccurate if you resize the window. However, with creative use of GetLayoutObjectAttribute () function you could determine the height of the Body part, compare to the height of the window, and determine how many visible rows there are on-screen.
Peter, thank you very much for the guidance. Will give this a spin. Very much appreciate your taking the time to advise.
Peter, finally got around to applying your solution and if works just fine. Thank you very much, indeed!
I'm glad it worked out for you.