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 perhaps where I can find some documentation for this stuff? I have a
hard time figuring out the hierarchy of the objects as well as their
exposed members and methods. Or maybe I not looking the right place :-)
Thanks in advance.
Soren
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
- [libreoffice-users] Base: scroll in form via macro · Soren Dyrsting
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.