[Solved] Running Forms

Creating and using forms
Post Reply
williaba
Posts: 55
Joined: Tue Jan 08, 2008 7:05 pm

[Solved] Running Forms

Post by williaba »

Is there any way of running a form, in isolation, just by clicking on a desktop icon?

The intention is not to let a user have access to other forms, and especially to the tables, as defined in the application.

Solved.
Last edited by williaba on Tue Feb 19, 2008 10:51 am, edited 3 times in total.
QuazzieEvil
Volunteer
Posts: 283
Joined: Tue Dec 04, 2007 6:38 pm
Location: Houston, TX

Re: Running Forms

Post by QuazzieEvil »

you can save your form as a writer doc, and link the form(s) to the database--goto Data tab of form properties dialog and select a 'Data Source'
williaba
Posts: 55
Joined: Tue Jan 08, 2008 7:05 pm

Re: Running Forms

Post by williaba »

Hey Quazzie, Thanks for the help. But just one more thing.
How do I keep the Form (in Writer) in run only mode. That is, how do I prevent a user from going into 'Design Mode'.
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Running Forms

Post by Hagar Delest »

williaba wrote:How do I keep the Form (in Writer) in run only mode.
Put the fields in a section and then protect it with a password.

Thanks to add '[Solved]' in your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Running Forms

Post by DrewJensen »

Hagars advice is correct - with one problem - you can still edit the properties for the controls. You can't move them, add new ones, or delete the old ones.

An Issue has been entered about this
http://www.openoffice.org/issues/show_bug.cgi?id=85818

One thing to note is that this protecting of sections works for embedded forms as well as separate Writer documents..
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
williaba
Posts: 55
Joined: Tue Jan 08, 2008 7:05 pm

Re: Running Forms

Post by williaba »

Thanks for the advice, Hagar, but would you mind expanding on how I put the fields in a section and then protect with a password?
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Running Forms

Post by Hagar Delest »

1. Menu Insert>Section.
2. Create your form.
3. Open the Navigator (F5), right click on the section listed in the tree for sections, Edit entry. Check the right box in the dialog.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
williaba
Posts: 55
Joined: Tue Jan 08, 2008 7:05 pm

Re: Running Forms

Post by williaba »

My form is already created.

I can't see what I'm supposed to do in Navigator <F5>.

So in edit mode or in run mode I create a section using 'Insert > Section', but I end up with a narrow rectangle above the fields of my form.

I can't seem to get the fields inside the Section, even if I select all of the fields in Edit mode.

But to return to my original question about running a form in isolation. Is there not a command that can be run at Operating System level, of the format :

$ runform db='db_name' form='form_name' exclude=('toolbars')

It seems silly that a user should be given access to the whole workings of the database when all you want them to do is run a form, which after all, is why you created it (the form).
JCR
Posts: 2
Joined: Sun Feb 10, 2008 7:17 pm

Re: Running Forms

Post by JCR »

The folks above are right about "locking" a form to prevent modification, but you seem to be asking about aspects of "displaying" the form namely withough tool bars, menus and so forth.

I posted an aswer here.
http://user.services.openoffice.org/en/ ... =39&t=2134
williaba
Posts: 55
Joined: Tue Jan 08, 2008 7:05 pm

Re: Running Forms

Post by williaba »

But, what is the answer?
How and where does one create the code?
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Running Forms

Post by Hagar Delest »

Copy the code given in the post and paste it in a module (Tools>Macros>...) and run it.

See here also: How to install a macro found here (on oooforum).

NB: add '[Solved]' in your first post title (edit button) if your issue has been fixed (not in the message).
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply