I have a form with atable control which lists all the employees, and a sub-form with atable
control that lists the payroll data of each employee.
If an employee isselected in the first table, the employeeID should be passed to thesub form to
filter the data for the selected employee. The code couldlook something like this:
oDoc=ThisComponent.DrawPage.Forms oFormACemplData=oDoc.getByName("ACemplData”) ' main form
oFormPayrollData=oDoc.getByName("FormPayrollData”) ' sub form
oEmployeeID =oForm.getByName("employeeID") ' employeeID is theparameter for TablePayrollData.
sEmployeeID =oEmployeeID.text oFormPayrollData.Parameter= setINT(sEmployeeID)
oFormPayrollData.refresh()
It is this second tolast line, the syntax of which I do not know, and have not been ableto find in
any of the examples I have read and re-read. Alternatively, if itis not possible to just pass a
parameter to the table, may be it ispossible to pass a complete prepared statement instead.
Could anybodyprovide some clue on how to do it?Thanks for helping. Egbert
--
To unsubscribe e-mail to: users+unsubscribe@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] Transferrig a parameter to a sub form · Egbert Eissing
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.