[Solved] Move to current form position after refresh

Discuss the database features
Post Reply
sandeagles
Posts: 2
Joined: Tue Aug 02, 2016 11:33 am

[Solved] Move to current form position after refresh

Post by sandeagles »

After refresh the form, it always jumps to the record 1. I would like to know how to remember the current row\position then come back after refresh. For example using 'MoveAbsolute' method. Thanks.
Last edited by RoryOF on Wed Aug 03, 2016 9:21 am, edited 1 time in total.
Reason: Added [Solved] and green tick [RoryOF, Moderator]
OpenOffice 4.1.1 on Windows 10
sandeagles
Posts: 2
Joined: Tue Aug 02, 2016 11:33 am

Re: Move to current form position after refresh

Post by sandeagles »

I find it myself:
Form=Event.Source.Model.Parent
myBookmark = Form.getBookmark()
' Do something here .....
Form.Reload()

'Go to the original place now
Form.moveToBookmark(myBookmark)
OpenOffice 4.1.1 on Windows 10
Post Reply