Project with user-interaction

Oxygen general issues.
matze
Posts: 9
Joined: Wed Jan 23, 2008 2:57 pm

Project with user-interaction

Post by matze »

Hello,
is it possible to have a certain degree of user interaction, if a project is opened? What I mean concretely is: If a user opens a project, that contains file0, file1, file2, file3, he should be able to say: I need file0 once, file1 none, file2 three times and file3 six times. So these files should be created automatically with the correct number of instances and appropriate names, e.g. file0-1, file1-0, file1-1, file1-2, ...
Is there a programming-interface, that allows me to customize a project?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Project with user-interaction

Post by sorin_ristache »

Hello,

Do you mean you want to display the same file more than one time in a project? Why don't you create copies of that file and add the copies to the project? Can you give us more details about the real situation where you need that?


Regards,
Sorin
matze
Posts: 9
Joined: Wed Jan 23, 2008 2:57 pm

Re: Project with user-interaction

Post by matze »

The intention of my effort is the following. I have an empty "address.xml" file (simple example):

<address>
<name> </name>
<familyname> </familyame>
...
</address>

Now there are a lot of people that fill data in this xml-structure. Every address has to go into a single file. One person needs to save ten address, another one only a single one. So I would like to have a dialogue, that asks the user how many instances of the address-file he wants to have. It had also been possible that the user opens an address-file and use "save-as" and then open an empty address-file again (and so on). But if a user uses "save", instead of "save as", the template xml-file is overwritten. Then the user has to call an admin to copy a new template file from the backup server. This is as well very annoying and time consuming and not very user-friendly. As we want to avoid scenarios as described above, I would like to "program" a dialog, that starts after the user opened the project, and asks how many instances of the template-file should be created.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Project with user-interaction

Post by sorin_ristache »

Hello,

You can use the Generate XML Instances tool for generating the number of XML instance files that you need. Just open the dialog Generate Sample XML files and enter the URL of the XML Schema from which the XML instances are generated in the field URL of the dialog.

Also an XML file containing just tags can be generated with the New action available on the File toolbar and on the File menu. The default shortcut of the action is Ctrl + N. The action displays a dialog with the built-in file types. Select the XML file type and in the Create an XML document dialog select the schema for the file. Also you can select the options Add optional content and Add first Choice particle if you need them.


Regards,
Sorin
Post Reply