Dynamic addition of text fields?

Discuss the word processor
Post Reply
Daedalus357
Posts: 2
Joined: Wed Jan 17, 2018 3:43 am

Dynamic addition of text fields?

Post by Daedalus357 »

I would like to create a Technical Design Document template form for my future projects where I work. The problem, however, is that not all projects have the same number of key components / component sets. I would need to be able to dynamically adjust the number of form fields based on the entries in the components list. I *could* do something like this in Excel or Calc... but that's just not very clean and is rather painful to look at with all those cells... I would much rather be able to do this in a text document.

Is it possible to dynamically create textfields based on the number of entries made in another field or fields? If so, how exactly can I achieve this?

Details of what I would like to be able to achieve:


-A user enters the names or IDs of parts in this field-

1. Part A556
2. Part B69
3. Part A103
4. Shell


-Acrobat dynamically creates text field sets for each entry above-

1.0 Component Identifier
  • Part A556
1.1 Type
  • <blank form field>
1.2 Purpose
  • <blank form field>
1.3 Function
  • <blank form field>
-etc... to 1.10-

2.0 Component Identifier
  • Part B69
2.1 Type
  • <blank form field>
2.2 Purpose
  • <blank form field>
2.3 Function
  • <blank form field>
-etc... to 1.10-

Until the last item of the first mentioned field. Each component could begin its own page, but that is just an option.


Thank you for your time and I look forward to your responses and help.
OpenOffice 4.1.3
Windows 10 Home 64 Bit Edition
AMD A10-7850K APU w/ Radeon R7 @ 3.7GHz
8GB RAM
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Dynamic addition of text fields?

Post by Zizi64 »

-A user enters the names or IDs of parts in this field-

1. Part A556
2. Part B69
3. Part A103
4. Shell
Where and how you want to enter these data?
In a macro related Input box?
You can achieve (almost) anything with a well organized macro. But you must write it.

Or these data come from some Database?
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Daedalus357
Posts: 2
Joined: Wed Jan 17, 2018 3:43 am

Re: Dynamic addition of text fields?

Post by Daedalus357 »

Zizi64, Thank you for your reply.

I would like the data to come from an input box. If possible, I would like a multi-line input box and read each line as an input.

Thank you for the hint, I will research Macros and post again after I find some info on how to accomplish this.
OpenOffice 4.1.3
Windows 10 Home 64 Bit Edition
AMD A10-7850K APU w/ Radeon R7 @ 3.7GHz
8GB RAM
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Dynamic addition of text fields?

Post by Zizi64 »

I would like a multi-line input box and read each line as an input.
There is an one line inputbox only. (if I know it exactly).

But you van create your own Form with some Form control elements. And then you can control the entered data by your macro. You can achieve this in the writer, but...


... Maybe this task related to the Base component of the AOO but not to the Writer. Maybe it is easier to achieve the desired result in the Base - unfortunatelly I never used the Base application: therefore I can not help you...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Dynamic addition of text fields?

Post by robleyd »

It is a scenario where a database would be the best tool for managing the process; use the database to produce a report based on selected criteria.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Post Reply