Personal tools
You are here: Home Forum Nice Office Access (NOA) How to insert a variable?

 • How to insert a variable?

Replies: 3   Views: 112
Up one level

 • How to insert a variable?

Posted by edvjacek at 2010-03-04 18:01:37
Hi,

my scenario:

1. configuration phase:
in the editor the user creates the template. In the other view there is the list of variables. When the user double clicks on the one of the variables I want to insert the variable (not simply text) in the current position of the cursor.

2. normal (later) phase:
user prints the document with current values of the variables.

The question is against configuration phase. Is this possible with NOA or I have to use UNO (like in TextFieldExample() function in TextDocuments.java example of the Developers Guide)?

Greetings,
Jacek
edvjacek Member
Posts: 6

 • Re: How to insert a variable?

Posted by Markus Krueger at 2010-03-05 10:38:06
Hi Jacek,

I hope the attached examples helps.

Regards,

Markus
Markus Krueger Manager
Posts: 507

 • Re: How to insert a variable?

Posted by edvjacek at 2010-03-10 09:33:02
Thanks!

Is it possible to do the same with drag and drop?

Jacek
edvjacek Member
Posts: 6

 • Re: How to insert a variable?

Posted by Markus Krueger at 2010-03-10 11:12:01
Should be,

we are doing the same thing with ubion.ORS.
We kind of fake a DnD as it doesn't work out of the box. We use a TextTransfer which OOo can receive and the replace the text in OOo with whatever we want to when drop is finished.

Regards,
Markus
Markus Krueger Manager
Posts: 507

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: