Your XML must have more than one element and/or attribute in your repeating
nodes to be able to set a value that differs from the display name.
Try the following structure:
<dds>
<dd1 FirstDropDownList="Value1">
<dd2 id="123" SecondDropDownList="ABC123" />
<dd2 id="345" SecondDropDownList="ABC345" />
</dd1>
<dd1 FirstDropDownList="Value2">
<dd2 id="678" SecondDropDownList="ABC678" />
</dd1>
</dds>
Settings for the first dropdown:
Entries: Select "dd1" node
Value and display name are automatically set to @FirstDropDownList since
"dd1" has only 1 attribute (FirstDropDownList).
Settings for the second dropdown:
Entries: Select "dd2" node and filter data on FirstDropdownList = <field in
the main DOM representing first dropdown list on InfoPath form>
Value: Select "id" under "dd2" node
Display name: Select "SecondDropDownList" under "dd2" node
You could also use a structure like the following:
<dds>
<dd1 FirstDropDownList="Value1">
<dd2 id="123"><SecondDropDownList>ABC123</SecondDropDownList></dd2>
<dd2 id="345"><SecondDropDownList>ABC345</SecondDropDownList></dd2>
</dd1>
<dd1 FirstDropDownList="Value2">
<dd2 id="678"><SecondDropDownList>ABC678</SecondDropDownList></dd2>
</dd1>
</dds>
Or one like:
<dds>
<dd1 FirstDropDownList="Value1">
<dd2><id>123</id><SecondDropDownList>ABC123</SecondDropDownList></dd2>
<dd2><id>345</id><SecondDropDownList>ABC345</SecondDropDownList></dd2>
</dd1>
<dd1 FirstDropDownList="Value2">
<dd2><id>678</id><SecondDropDownList>ABC678</SecondDropDownList></dd2>
</dd1>
</dds>
Does this work for you?
Regards,
S.Y.M. Wong-A-Ton
> I have what I assume is a newbie problem when I have created a cascading
> repeating table from an XML source. I want one value to be displayed and
[quoted text clipped - 16 lines]
>
> Thnks in advance
Johan Nilsson - 07 Dec 2005 14:46 GMT
Excellent, this was exactly the information I was looking for.
Much appreciated =)
> Your XML must have more than one element and/or attribute in your repeating
> nodes to be able to set a value that differs from the display name.
[quoted text clipped - 68 lines]
> >
> > Thnks in advance