[libreoffice-users] Transferrig a parameter to a sub form

2016-01-14 Thread Egbert Eissing
 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+unsubscr...@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


Re: [libreoffice-users] Linking a Form to another table

2016-01-14 Thread Ian "Witty" Whitfield

Hi All

Am still trying to connect my existing 'Input Form' to a different Table.
Been busy so got round to trying it again today!!

Now when I try to link to an existing Database I get the error "The JBDC 
Driver could not be loaded".

The Class is "com.mysql.jdbc.Driver" which worked before.

Any idea what is wrong or what I can check - I'm lost!!

Thanks

Ianw
Pretoria RSA

--
To unsubscribe e-mail to: users+unsubscr...@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