Hi,
I got a problem.
My platform:
OO2.4
Linux x86 (RHEL4 based)
MySQL via JDBC
In a data entry form, I have a control button with the related action "New record".
This is to create a new record in the assigned table.
However, when opening the form, this button is disabled. No way to get it active. I can however write directly into the table from OO. The button is "enabled" in its properties.
Two more buttons in that form are linked to the actions "Next Record" and "Previous Record".
When I use these buttons, they are deactivated/activated as expected (In the table there are 3 records, and i can press "next record" two times before its greyed out, while "previous record" is activated properly after the first "next rec." - just as one expects it). But: the fields in the form which are to display the data of the currently selected record are not being updated, but show always the data of the first record
In other forms related to other tables of the same DB I do not see that behaviour, i.e. I can use buttons for creating new records, and the fields are updated on doing "next|prev. rec.".
I should be grateful for any good advice.
Uwe
[Solved] Buttons deactivated / not working
[Solved] Buttons deactivated / not working
Last edited by ufalke on Wed Apr 30, 2008 9:53 am, edited 1 time in total.
Re: Buttons deactivated / not working
Need to provide an update:
When opening the form and using the controls in the navigation bar, I can cycle through the records, and the displayed field information is updated.
As soon, however, as I click on the "Next Record" button (which fails to bring the next record's data to display as described in my original post), these navigation bar controls start cling to the same error, i.e. the data update is frozen, while the "next" and "previous" buttons are deactivated appropriately (next greyed out when reaching the last record, "prvious" greyed out when reaching the first one, but you have to count as no other indication at which record you are is given). When I close and reopen the form, the navigation bar controls work again.
When opening the form and using the controls in the navigation bar, I can cycle through the records, and the displayed field information is updated.
As soon, however, as I click on the "Next Record" button (which fails to bring the next record's data to display as described in my original post), these navigation bar controls start cling to the same error, i.e. the data update is frozen, while the "next" and "previous" buttons are deactivated appropriately (next greyed out when reaching the last record, "prvious" greyed out when reaching the first one, but you have to count as no other indication at which record you are is given). When I close and reopen the form, the navigation bar controls work again.
Re: Buttons deactivated / not working
This problem had indeed the same cause as
http://user.services.openoffice.org/en/ ... =39&t=5261:
The not working buttons were assigned to a second main form. After moving them to the proper main form (and deleting the second one) everything is ok.
http://user.services.openoffice.org/en/ ... =39&t=5261:
The not working buttons were assigned to a second main form. After moving them to the proper main form (and deleting the second one) everything is ok.