Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Is it possible to addItem to a list and export the new value(s) via XML?

Avatar

Level 5

Greetings:

I have a dynamic form.

I am using designer 8.2

I have a drop-down list bound to the schema.

I can import data into the form via dataconnection.

The drop-down displays the data from the dataconnection.

I have a button that uses addItem() to append a value into the drop-down.

All looks well.

If I save the form, or export the XML, the newly added value is not saved.

Is there any way to add items to a list, and have them become part of the XML?

Thank You

Mark

0 Replies

Avatar

Level 6

Try using appendChild() method using JS when you exicute addItem() code.

Avatar

Level 5

Would you be able to provide an example?

It appears appendChild is not documented in the scripting reference.

I am having difficulty setting the object reference to the XML data

Thank You for your assistance.

Mark