Sv: JS Client NativeList $vscroll

Daniel Sananes daniel.s at
Fri Sep 10 23:09:57 UTC 2021

Hi Michael

Once the list is built I think you can do a search for that line and a redraw of the list.
I do this all the time for tables in O7 where the selected line always stay selected when user sorts the list or when the window containing the list is opened.


-----Ursprungligt meddelande-----
Från: omnisdev-en <omnisdev-en-bounces at> För Michael Houlberg
Skickat: den 10 september 2021 22:26
Till: OmnisDev List - English <omnisdev-en at>
Ämne: JS Client NativeList $vscroll

JS Client experts:

I’m using the JS Client and running my app in the Omnis Wrapper on iPad.

I like the NativeList control for a number of reasons, but there is a functionality that is missing, the $vscroll property that other list controls have.  Here I’m filling a list and I want to move the current line to the last line in the list, but I also want it to scroll down to show that line.  If the selected line is below the viewable area, it selects the line correctly, but the scroll bar is positioned at the very top of the list so you don’t see the selected line.

Do ivCallList.$select(con("WHERE fCalls.ad_ID =",ivID)) Do ivCallList.$fetch(kFetchAll) Do ivCallList.$sort($ref.CallDate,kFalse)
Calculate ivCallList.$line as ivCallList.$linecount

# $vscroll is not a property of the NativeList control so this doesn't work Calculate $cwind.$objs.MainPane.$objs.CallList.$vscroll as ivCallList.$linecount

Does anyone have some other magic way I can get the list to scroll down to this line?

There are other places in the program where I search for a specific record in a list to select it, and if that line is below the viewable area, it’s the same problem.

Michael Houlberg
Houlberg Development, LLC
Manage your list subscriptions at Start a new message -> mailto:omnisdev-en at
VARNING: Det här e-postmeddelandet kommer från en extern avsändare. KLICKA INTE på länkar eller bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.

More information about the omnisdev-en mailing list