Ask Your Question
1

Writer: prompt for data? [closed]

asked 2017-04-10 02:55:33 +0100

LibreGuy gravatar image

updated 2017-04-12 00:17:26 +0100

Bump: Does anyone know a solution ... or is what I want impossible ?

Hi guys,

I would like to create a Writer template file in which each time after opening I would like to change some data (like a name and address).

Of course I could put something like this in the file:

{NAME}

{STREET}

and so on ... and then manually overwrite is.

But ... I wonder if it possible to have the file prompt for this information as soon as I open it. So I open the file and then a pop-up box appears asking for the name ... I enter the name and then a new pop-up box appears asking for the street and so on. After I've entered all data in the pop-up boxes, this data is used in the file to replace the name, street and so on. Is that possible ... if so, could someone explain how to do something like that and/or maybe post a file with an example? I would appreciate it very very much!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-09-29 17:13:38.603027

Comments

Interesting question, definitely following.

rautamiekka gravatar imagerautamiekka ( 2017-04-10 16:20:41 +0100 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2017-04-12 08:23:46 +0100

pierre-yves samyn gravatar image

Hi

If I understand the question correctly, what you ask is the normal operation of the input fields inserted in a template.

In the PromptForData.ott attached I uses InsertFieldMore FieldsFunctions tab▸Input Field

  • When creating a document based on this template, two dialog boxes open to enter the fields.
  • When opening a document (not the template) already created, dialogs do not open by default. You can trigger the opening by pressing Shift+Ctrl+F9.

It is also possible (but not mandatory) to store this action in a macro associated with the Open document event as in the attached example.

Regards

edit flag offensive delete link more

Comments

Thanks very much!! This works very nice and was exactly what I was looking for.

I don't need to set any macro at all. As soon as I create a new document based on the template, it automatically prompts for input. Very nice!

LibreGuy gravatar imageLibreGuy ( 2017-04-12 21:24:53 +0100 )edit
0

answered 2017-04-12 06:39:17 +0100

Ratslinger gravatar image

I don't see any value to this but here is one solution. Use a table and a macro attached to the Open Document. The macro is simple. Use input box to get information & move it into the table.

Sample: InsertText.odt

Sample contains a table with one column & four rows. Left the outer border visible so you can see where it is.

The are other ways to do this using macros & cursors. This was easiest to post. For further info, refer to Writer section in OOME.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-04-10 02:55:33 +0100

Seen: 477 times

Last updated: Apr 12 '17