Replace info from data source with conditions using macro

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
zynder
Posts: 4
Joined: Fri Jul 19, 2013 7:28 pm

Replace info from data source with conditions using macro

Post by zynder »

Hi Guys,

I'm fairly new to Openoffice and I need your help.
I have a document here in openoffice with datasource. What I want to accomplish is to replace the sub template field with the description. See screenshot below.
291kwe8.png
For the first line of the doc file i want

Patient reports Fluctuations
change to
Patient reports Client notices fluctuations with his overall functioning.

So basically I want to replace Sub Template field values with Description field values depending on the Main Template field, which are the bold fonts on the document.

Can we do it just like that? Or do we need to put markings? I'm really out of ideas.
Does it need macro or just a simple formula? By the way, I don't know how to do macros either I'm really new to Openoffice.

Any help is greatly appreciated. Thanks. :)
OpenOffice 3.4.1 / Windows XP PRO SP3
zynder
Posts: 4
Joined: Fri Jul 19, 2013 7:28 pm

Re: Replace info from data source with conditions using macr

Post by zynder »

Bump. Any help guys? Can you give me some useful links that i can study?
OpenOffice 3.4.1 / Windows XP PRO SP3
Post Reply