Ask Your Question
0

Change default record in LO Base form

asked 2017-10-26 17:50:22 +0200

z3dom gravatar image

I create simple form. I want that, when I open this form, the 10th record was selected, but not first. How can I set default start record number?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-10-26 19:26:56 +0200

Ratslinger gravatar image

Hello,

To do this use a macro attached to the Open Document event of the form:

Sub GoToRecord
    Dim oForm as Object
    oForm = ThisComponent.Drawpage.Forms.getByName("YOUR_INTERNAL_FORM_NAME")
    oForm.absolute(10)
End Sub

Be sure to set the internal form name you have.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-10-26 17:50:22 +0200

Seen: 32 times

Last updated: Oct 26 '17