Help with creating a template...unique feature

Using them, Making them, Finding them
Post Reply
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Help with creating a template...unique feature

Post by michael4444 »

This problem may not be possible with libre-office and my asking the question may only serve to illuminate my ignorance of libre-office. I have poured over the forums and wiki without finding what I am looking for.

I'm trying to make a template to use when a patient visits me. For example one of the template lines might be:

"Patient follows up for treatment of - depression anxiety ADHD."

When I open the template, I want to be able to click one or multiple choices (depression anxiety or ADHD) and have a final document with what I clicked.

If I click depression and ADHD, the output on final document should be:

Patient follows up for treatment of - depression ADHD.

I hope that makes sense.
OpenOffice 4.1.4 on Windows 10 64bit
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Help with creating a template...unique feature

Post by RoryOF »

You could write an OO BASIC macro to offer you a dropdown selection of a number of options; once selected that could be pasted at the cursor location. It will take longer to write and debug this macro than to handtype the desired word, even on hundreds of letters.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Re: Help with creating a template...unique feature

Post by michael4444 »

I wish I could go back in time. I once worked in an outpatient office and the documentation was basically what I describe above. it was so fast and provided all I needed. It was faster than even drop down boxes because all I had to do was click through the whole template and then save.

Thank you for replying though. That's encouraging!
OpenOffice 4.1.4 on Windows 10 64bit
User avatar
Lupp
Volunteer
Posts: 3542
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Help with creating a template...unique feature

Post by Lupp »

michael444 wrote:I wish I could go back in time. I once worked in an outpatient office and the documentation was basically what I describe above. it was so fast and provided all I needed. It was faster than even drop down boxes because all I had to do was click through the whole template and then save.
Do you think that was made using some general-purpose Office software. Which one? Done without user code?
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Re: Help with creating a template...unique feature

Post by michael4444 »

Gee...I cant remember...too bad. It was openoffice is all I remember.
What is "user code"?
Any suggestions of software that might do this?
OpenOffice 4.1.4 on Windows 10 64bit
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Help with creating a template...unique feature

Post by Villeroy »

Insert>Fields>Other...
Tab "Functions"
Type "Input list"
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
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Help with creating a template...unique feature

Post by acknak »

Here's a sample OO Writer template with a couple of input fields, as Villeroy suggested.

When you open a template file (File > Open > ... will do), Writer will step through each field in the file and pop up a window where you can select from a list. You can always go back and click on the field to change it.
Attachments
input_list_sample.ott
(8.65 KiB) Downloaded 430 times
AOO4/LO5 • Linux • Fedora 23
User avatar
Lupp
Volunteer
Posts: 3542
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Help with creating a template...unique feature

Post by Lupp »

@michael4444:
It isn't "illegal" to cross-post a question in two or even more places. It is, however, regarded "netiquette" to link-in the alternative postings. Otherwise contributors may miss informazion or waste their time on solved problems.
See https://ask.libreoffice.org/en/question ... plication/
In addition you should thoroughly choose your subject. In this case you used two very different wordings. Wouldn't have expected the same question under both of them.
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Help with creating a template...unique feature

Post by RoryOF »

This article may be helpful, in particular the legal example file linked off it.
https://www.techrepublic.com/blog/linux-and-open-source/three-great-ways-to-use-variables-in-libreoffice-and-openoffice/

 Edit: 2023-09-07: The information about variables in that link is no longer available -- MrProgrammer, forum moderator  
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Re: Help with creating a template...unique feature

Post by michael4444 »

Lupp wrote:@michael4444:
It isn't "illegal" to cross-post a question in two or even more places. It is, however, regarded "netiquette" to link-in the alternative postings. Otherwise contributors may miss informazion or waste their time on solved problems.
See https://ask.libreoffice.org/en/question ... plication/
In addition you should thoroughly choose your subject. In this case you used two very different wordings. Wouldn't have expected the same question under both of them.
Lupp,
I appreciate this. I initially spent way too much time trying to figure it out on my own. Coming to some sense of my limitations, I decided to post to the community forums to see if someone could help. After posting I kept looking around on the internet and playing around with libre-office (which is what I have used for the past few years). This helped me formulate an improved question which would help me better describe what I am looking for. I also remembered that I had used openoffice for way longer than I had used libre-office, so I decided to download openoffice again and try...which lead me to this forum.

What your saying makes sense and I will keep it in mind.

*I edited the post over at libre-office to link my post over here. Thanks again.

Best,
mike
Last edited by michael4444 on Thu Nov 23, 2017 4:07 pm, edited 1 time in total.
OpenOffice 4.1.4 on Windows 10 64bit
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Re: Help with creating a template...unique feature

Post by michael4444 »

Villeroy wrote:Insert>Fields>Other...
Tab "Functions"
Type "Input list"

This feature seems really handy. Im really looking for a one click solution. Such as the document shows the input list without a box pop-up to choose the text. Thanks for pointing out though I think it will be handy in other parts of my template!
OpenOffice 4.1.4 on Windows 10 64bit
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Re: Help with creating a template...unique feature

Post by michael4444 »

acknak wrote:Here's a sample OO Writer template with a couple of input fields, as Villeroy suggested.

When you open a template file (File > Open > ... will do), Writer will step through each field in the file and pop up a window where you can select from a list. You can always go back and click on the field to change it.

Thanks, this is is really helpful and I will use it in another part of the template that I am building, but for this problem I am looking for the words to be next to each other on the template to choose from without a box popping up. I appreciate the reply with the sample.
OpenOffice 4.1.4 on Windows 10 64bit
michael4444
Posts: 7
Joined: Wed Nov 22, 2017 6:29 pm

Re: Help with creating a template...unique feature

Post by michael4444 »

RoryOF wrote:This article may be helpful, in particular the legal example file linked off it.
https://www.techrepublic.com/blog/linux ... penoffice/

Thank you very much. Lots to learn/review in this sample. I appreciate it.
OpenOffice 4.1.4 on Windows 10 64bit
StudioJill
Posts: 1
Joined: Fri Sep 08, 2023 12:31 am

Re: Help with creating a template...unique feature

Post by StudioJill »

RoryOF wrote: Thu Nov 23, 2017 11:22 am This article may be helpful, in particular the legal example file linked off it.
https://www.techrepublic.com/blog/linux ... penoffice/
I went to this link and it rerouted me to "https://www.techrepublic.com/topic/microsoft/" Is the link old or am I just blind for not finding a "legal example file linked off it?"

Or, can anyone tell me how to accomplish the "click and insert" features as described here? Thank you!
OpenOffice 4.1.7, Windows 11 64bit
FJCC
Moderator
Posts: 9248
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Help with creating a template...unique feature

Post by FJCC »

That link seems to be dead. To insert an Input List field:
Position the cursor where you want the "click and insert" field to be. Select the menu item Insert -> Fields -> Other. Choose the Functions tab. From the Type list on the left, choose Input List. In the Item box on the right side, type a word and then click the Add button. Continue typing words and clicking Add until your list is complete. Enter a name for the list in the Name box at the lower right. Click the Insert button and then the Close button.
You can now click on the field to bring up the list. It helps to turn on the menu item View -> Field Shadings to see where the field is. The shading does not print. If you have several input fields, you can press the key combination Ctrl + Shift + F9 to go through all of the fields. The name you gave the field is displayed at the top of the input dialog, so using a meaningful name will be helpful.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Post Reply