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

Problem in embeding XML data

Avatar

Level 9

Hello All,

I have a form which has 4 pages. For Page -1 I need one XML data to be embeded . But from Page -2 onwards to page - 4 I need one more XMl data (same for all) to be embeded in those pages. Can any one please say me how to do that ?

Thanks.

Bibhu.

0 Replies

Avatar

Level 9

Hi,

One more thing I would like to add. Suppose I have 3 fields.

ItemNo (DropDown)

ItemTitle(TextField)

ItemPrice(TextField)

XML data are embeded to it.My problem is it's only showing the first ItemNo and the corresponding ItemTitle and ItemPrice.But the drop down sows only the first vale.If I click it it's not showing any more value.Can anybody please tell what's the problem ?

Thanks.

Bibhu.

Avatar

Level 4

AFAIK you can only bind one value per field.

This means that you cannot import the list of values directly to a combobox.

What I usually do is:

1 - create a hidden field

2 - in my XML i send a CSV type string to that field

3 - in the initialize event I put some code to read the hidden field and load the values to the bombobox.

ex:

field: form1.aux.field1

Xml

Initialize comobo code

Avatar

Level 9

Hi,

Thanks for the code. Somehow I managed to do this by following Stefan's link.http://forms.stefcameron.com/2006/07/29/dynamic-properties

Here stefan explained about one dependent field, But I have two. Somehow I managed to work by taking hidden fields.

Now I faced a weird kind of problem.I found some nodes are missing for the title value. So when a user selects a particular item no which has no title node then all the enire field goes blank. I am scrating my head. Could you please say where am I wrong ?

Thanks.

Bibhu.

Avatar

Level 4

I'm not proficient with data connections, so I'm not really able to help you.

I usually do this by script alone.