Preventing duplicates in Dropdown

O

oakridge

I am currently using dropdowns to pull in secondary data into my main
datasource. Using SQL as the data source. I am pulling in a list of vendors
by name. The problem is that the Vendor Name may repeat in the list and I
only want the dropdown to show only one listing of any choice. Is there a
way to have it only show the selection once?

Thanks.
 
O

oakridge

Greg,

I entered in the following rule after viewing your example.

/dfs:myFields/dfs:dataFields/d:VENDOR-ADDRESS/@VEND-NAME[. = not(. =
.../preceding::dfs:myFields/dfs:dataFields/d:VENDOR-ADDRESS/@VEND-NAME) and .
= not(. = current()/..//dfs:myFields/dfs:dataFields/d:RTV-HEADER/@VEND-NAME)]

This appears to be correct but I am still getting errors. Does one have to
create an XML sheet for this from the XSN?
 

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