First time here? Check out the FAQ!
Dear all,
I just want to include a button in a Base form that performs a couple of simple tasks. I've been reading about Basic programming in LibreOffice Base, but, in the first place, there is too much information to learn for so little things that I want; in the second place I have found nowhere explaining the actions I want to take.
The use of the button would be extremely simple: it should make visible another control in the form, and then it should go to a random register. That's all.
Anyone could help me with this?
Thanks a lot.
Pep.
Do you mean
sub onBtnClick(oEvent)
Dim form, cntrl
form = oEvent.Source.Model.Parent
cntrl = form.getByName("nameOfControlHideOrVis")
cntrl.setPropertyValue("EnableVisible", True) ' Set visible
' cntrl.setPropertyValue("EnableVisible", not cntrl.EnableVisible) ' Revert
end sub
Yes, it works. Thanks!
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-09-18 03:27:59 +0200
Seen: 439 times
Last updated: Sep 19 '12
BASE : Comment faire un bouton pour lancer l'impression de l'enregistrement en cours ?
Open form via macro in Libreoffice Base
How to get data from a writer form into a field variable?
Insert into table using macro in base [closed]
hyperlink in scalc not working
macro overlays formula in cell
In Base, is it possible to have one form look at two tables?
FORM to TABLE connection in Base
create-forms in base: lefthand choices disappeared, need SUBMIT control
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.