Way to sub-sub-form

Discuss the database features
Post Reply
mihmih
Posts: 111
Joined: Wed Feb 18, 2015 9:21 pm

Way to sub-sub-form

Post by mihmih »

Hi,

in my database i have a macros to take information from subform. Now I would like to take information from sub-subform. And second macro did not work. Where is the mistake? Can anyone help?

Code: Select all

sub S_SelectFile10
    frm = thiscomponent.drawpage.forms.MainForm
    oform = frm.getbyname("sub2")
    ofpkSelectFile = oform.getbyname("nnn")

Code: Select all

sub S_SelectFile11
    frm = thiscomponent.drawpage.forms.Formularz
    oform = frm.getbyname("subform")
    oform2 = oform.getbyname("sub2")
    ofpkSelectFile = oform2.getbyname("nnn")
  
LibreOffice 4.2 on Windows7
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: way to sub-sub-form

Post by Villeroy »

msgbox join(oform.getElementNames(),Chr(10))
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply