B4J Question [ABMaterial] ABMList , how set to last position

MichalK73

Well-Known Member
Licensed User
Longtime User
Hello.
Adds more items to the list. When an item is added by a user from the page, it is added, but the list does not scroll to the last added item. You need to manually move the list. How to make ABMList move to the end?
 

David Elkington

Active Member
Licensed User
Longtime User
Is there a way to open the list to a specific item when loading? I have a long list of employees, with loads of sub items, and after adding another item on another page, I would like to open the list at the employee I was looking at....

Thanks
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
Is there a way to open the list to a specific item when loading?
This should be a new post question, however...
Using ScrollTo is the way (I think).

Store the returnid of the list item clicked on and after adding details (sub-items) - ScrollTo(returnid, False) the main list item you were working on.

Note: (it must be me...) ScrollTo works but, it seems to set the line item (about) 10px below the top of the item scrolled to This example shows 1088 - which is half hidden after scrolling to (top item).

upload_2018-10-30_19-14-15.png


This, while testing, is where I ran into the "theme" issue with ABMLists.

Thanks
 
Upvote 0
Top