Hi,
Most fields on my form are entered by typing data in them or by selecting values from a dropdown or with a date-selector. A few fields however are filled by code.
I notice that my form only saves data that is entered manually, data that is entered by code is completely ignored. I have a save-button that performs the standard save-action. This button is normally greyed out and only turns black when the form detects that data have changed. This button too does not react to data that is not entered by hand.
Examples of entering data with code:
- Upon selecting a value in a combobox A, the text-modified event triggers a script that writes “hooray” in textbox B.
- Upon pressing a button, the execute-action event triggers a script that writes “button pressed” in textbox C
In both cases, the code is textbox.text = whatever. This does fill the textboxes, but the form does not detect this as data entry and subsequently does not save the data to the underlying data, even if the manually entered fields are saved.
How can I solve this?
Using LO 6.2.8.2 with embedded database on Linux Mint 18.3 mate.
tnx