[Solved] Setting button's Additional Info to a field's value

Creating and using forms

[Solved] Setting button's Additional Info to a field's value

Postby cormac » Tue Jun 18, 2019 3:06 pm

Hello - sorry if this has been asked before, I've searched but may have missed it.

Can I set a button's Additional Information to the value of a field on the form? If so, what's the syntax?

Thanks!
Last edited by cormac on Tue Jun 18, 2019 10:38 pm, edited 2 times in total.
Windows 8.1 OpenOffice 4.1.6
cormac
 
Posts: 2
Joined: Tue Jun 18, 2019 3:02 pm

Re: Setting a button's Additional Information to a field's v

Postby UnklDonald418 » Tue Jun 18, 2019 7:11 pm

If you initiate this macro with an Approve Action event on a push button control you can set the value in the Additional information property.

Code: Select all   Expand viewCollapse view
Sub SetAdditionalInformationProperty(oEvent as object)
   oEvent.Source.Model.Tag = "SomeTextString" ' or some text field on a form
End Sub
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.6 & LibreOffice 6.1.5.2 - Windows 10 Professional
UnklDonald418
Volunteer
 
Posts: 1326
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Setting a button's Additional Information to a field's v

Postby cormac » Tue Jun 18, 2019 10:36 pm

Great - thank you!
Windows 8.1 OpenOffice 4.1.6
cormac
 
Posts: 2
Joined: Tue Jun 18, 2019 3:02 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 3 guests