XML File Structure for InfoPath dropdown

M

Matt

I am creating a dropdown control on an InfoPath form, and am only getting one
entry showing up in the dropdown. I believe the structure of the XML file I'm
using to populate the dropdown needs to be changed, but before I request that
change, I'd like to verify that it is necessary.

The XML file looks like this:
- <lookuptypeid ID="1044" lookuptypedesc="Environment" Area="Application">
<lookupid lookupdesc="Windows">1804</lookupid>
<lookupid lookupdesc="Unix (flavor)">1805</lookupid>
<lookupid lookupdesc="Java VM">1806</lookupid>
</lookuptypeid>

In the Entries box for the dropdownlist properties, I have the following:
/xml/lookuptypeid[@ID = 1044]

In the Value box I have:
lookupid

In the Display Name box I have:
lookupid/@lookupdesc

With these values set, the dropdown displays only one entry (Windows)

Is there some trick to showing all three values (Windows, Unix and Java), or
does the XML file have to be reconfigured? If it has to be reconfigured, can
you suggest what it would look like?

Thanks,
Matt
 
E

em

hi,
try the following change to the Entries box:
/xml/lookuptypeid/lookupid[../@ID = 1044]
regards
em
 
M

Matt

Thank you so much. It was exactly what I needed.

em said:
hi,
try the following change to the Entries box:
/xml/lookuptypeid/lookupid[../@ID = 1044]
regards
em

Matt said:
I am creating a dropdown control on an InfoPath form, and am only getting one
entry showing up in the dropdown. I believe the structure of the XML file I'm
using to populate the dropdown needs to be changed, but before I request that
change, I'd like to verify that it is necessary.

The XML file looks like this:
- <lookuptypeid ID="1044" lookuptypedesc="Environment" Area="Application">
<lookupid lookupdesc="Windows">1804</lookupid>
<lookupid lookupdesc="Unix (flavor)">1805</lookupid>
<lookupid lookupdesc="Java VM">1806</lookupid>
</lookuptypeid>

In the Entries box for the dropdownlist properties, I have the following:
/xml/lookuptypeid[@ID = 1044]

In the Value box I have:
lookupid

In the Display Name box I have:
lookupid/@lookupdesc

With these values set, the dropdown displays only one entry (Windows)

Is there some trick to showing all three values (Windows, Unix and Java), or
does the XML file have to be reconfigured? If it has to be reconfigured, can
you suggest what it would look like?

Thanks,
Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top