Hi I’m trying to make my database user friendly and I have a question:
From one form, A, I’m launching another form, B, using a button with this macro attached:
Sub openFormByTag(oEv)
cWhat = com.sun.star.sdb.application.DatabaseObject.FORM
oModel = oEv.Source.getModel()
sName = oModel.Tag
oView = oModel.Parent.Parent.Parent.Parent.getCurrentController()
oView.loadComponent(cWhat, sName, FALSE)
End Sub
Works fine, but: I would like to specify a row id or something in form A so that form B scrolls automatically to the the particular row I want to view or edit.
Doe anyone have an idea about how this can be done?
Or maybe where there are some comprehensible documentation for this kind of issue perhaps?
Thanks in advance.
Soren