Ask Your Question

How to add custom attributes to a LO Base form

asked 2019-01-12 12:48:38 +0100

Geert Janssens gravatar image

I have a form and wrote some macros to perform actions based on certain form events.

Now what I want to achieve is store the value of a calculation performed in a form control's "Before Update" event to be reused in the form's "After Record Action" event.

This is not data I want to store in the underlying database. It's more like state information to carry around to make informed decisions in various phases in the form's life cycle. As soon as the form closes, this state information can be forgotten.

My thought was to add some custom property or attribute to the form control object or form object and set or query that property as needed. Is something like that possible ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-01-12 13:55:53 +0100

JohnSUN gravatar image

updated 2019-01-12 13:57:24 +0100

If you use macros then tou can try declare Global variable.

Or you can create hidden control in form (popup menu in Form Navigator)


edit flag offensive delete link more


Oh, great! I didn't realize global variables would persist across macro calls. This opens up a whole lot of opportunities. Thanks a lot!

Geert Janssens gravatar imageGeert Janssens ( 2019-01-12 14:18:11 +0100 )edit
Login/Signup to Answer

Question Tools



Asked: 2019-01-12 12:48:38 +0100

Seen: 16 times

Last updated: Jan 12