Can More than One Subform Be in a Form?

Creating and using forms
Post Reply
jdanniel
Posts: 67
Joined: Tue Mar 04, 2008 8:25 pm

Can More than One Subform Be in a Form?

Post by jdanniel »

Hello.

Is it possible to create two or more subforms in a form? If so, what's the procedure?

Thank you.
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Can More than One Subform Be in a Form?

Post by Villeroy »

Open the form in edit mode, get the "Form Design" toolbar and call the form navigator (5th button with compass). From the context menu of a form you can create arbitrary sub-forms and sub-subforms.
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
jdanniel
Posts: 67
Joined: Tue Mar 04, 2008 8:25 pm

Re: Can More than One Subform Be in a Form?

Post by jdanniel »

Open the form in edit mode, get the "Form Design" toolbar and call the form navigator (5th button with compass). From the context menu of a form you can create arbitrary sub-forms and sub-subforms.
Can you go into more detail than this, please? I'm assuming when you say the context menu of a form, it means a right-click on a listing in Navigator?

If that's true, then do I select the context menu of a form, or the subform I've created?

Because I've tried this with a form, and I'll be damned if I can see a second subform appear in my form.

Let me tell you what I did.

In Navigator, I right-clicked on Main Form.
I selected NEW, then FORM.
A form is now listed in Navigator named STANDARD.
I renamed it ACTORS.

From here, I don't know what to do. Can you add some steps to this, please?

Jd
User avatar
keme
Volunteer
Posts: 3780
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Can More than One Subform Be in a Form?

Post by keme »

The subform doesn't appear as a new object in your form. Rather, think of it as a "context layer" in your form. Select the subform you want to work with in the form navigator, then add a control item (checkbox, text field, etc.), and you'll see it appear as a branch (or rather leaf) item, spawning from your selected subform, in the form navigator.
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
jdanniel
Posts: 67
Joined: Tue Mar 04, 2008 8:25 pm

Re: Can More than One Subform Be in a Form?

Post by jdanniel »

I'd like the second subform to be a repeating datasheet, just like my first subform.

What control do you suggest I use for that?

Jd
User avatar
kabing
Volunteer
Posts: 680
Joined: Fri Nov 23, 2007 12:05 am
Location: Midwest, USA

Re: Can More than One Subform Be in a Form?

Post by kabing »

Use a table control. This tutorial may be of help.

Since NeoOffice is based on OpenOffice.org, the instructions should work fine for OpenOffice.org, if you keep the following things in mind:
  • 1) references to the command key in a Neo tutorial are the equivalent to the control key in OOo. (i.e. Command-C becomes Control-C) Note that I'm not sure if this is true with OOo for X11.
    2) control-clicking is the same as right clicking
    3) icons sometimes look different, as NeoOffice 2.2.2 has a custom icon set.
kabing
NeoOffice 2022.7 LibreOffice 24.8.4 on (Intel) Mac OS Ventura
jdanniel
Posts: 67
Joined: Tue Mar 04, 2008 8:25 pm

Re: Can More than One Subform Be in a Form?

Post by jdanniel »

I figured out what I want to do. Thank you.
Post Reply