Hello,
I’m writing a macro which is supposed to insert some fields in the document.
The fields names are retrieved from a database, so there’s a dialog containing a list that is displayed, and then the user selects one field, and this field has to be inserted in the document.
I already searched on Google and inside this forum but I still can’t understand how it works…
Actually, I’m converting a macro from Word, so I perfectly understand how it works in Word, but not fully understand how in works inside Writer, even when I try to do it manually.
For example I saw this kind of code :
textFields = thisComponent.getTextFields()
textFieldMasters = thisComponent.getTextFieldMasters()
but I don’t know what is a field master, compared to a simple field.
Can anyone tell me how I can simply add a custom field inside a document from a macro ?