XPATH

O

oakridge

Followed Greg Collins suggestions for Filtering Unique Values from a dropdown
list from a secondary data source.

Using the following "not(. = ../preceding-sibling::SW-VERSIONS/@MACHINE)"
Where in SW-VERSIONS is the Secondary Data SQL Table with the field MACHINE.
This is represented on the main screen as
/dfs:myFields/dfs:dataFields/d:SW-VERSIONS/@MACHINE["not(. =
.../preceding-sibling::SW-VERSIONS/@MACHINE)"]
I have tried this with and without quotes and neither of them work.

What am I missing?

Ann Compton
 
S

S.Y.M. Wong-A-Ton

Hi,

Have you already tried asking Greg Collins at the infopathdev.com forum?

I think your final expression should look something like the following:
......SW-VERSIONS[not(@MACHINE = preceding-sibling::SW-VERSIONS/@MACHINE)]

Note: You must not use quotes around the filter condition between the
brackets.

Hope this helps.

Regards,
S.Y.M. Wong-A-Ton
 
G

Greg Collins [InfoPath MVP]

Hi. It looks like you are missing your namespace (d:), and there are quotes
where there shouldn't be any:

BEFORE:
/dfs:myFields/dfs:dataFields/d:SW-VERSIONS/@MACHINE["not(. =
.../preceding-sibling::SW-VERSIONS/@MACHINE)"]

AFTER:
/dfs:myFields/dfs:dataFields/d:SW-VERSIONS/@MACHINE[not(. =
.../preceding-sibling::d:SW-VERSIONS/@MACHINE)]


S.Y.M. Wong-A-Ton said:
Hi,

Have you already tried asking Greg Collins at the infopathdev.com forum?

I think your final expression should look something like the following:
.....SW-VERSIONS[not(@MACHINE = preceding-sibling::SW-VERSIONS/@MACHINE)]

Note: You must not use quotes around the filter condition between the
brackets.

Hope this helps.

Regards,
S.Y.M. Wong-A-Ton


oakridge said:
Followed Greg Collins suggestions for Filtering Unique Values from a
dropdown
list from a secondary data source.

Using the following "not(. = ../preceding-sibling::SW-VERSIONS/@MACHINE)"
Where in SW-VERSIONS is the Secondary Data SQL Table with the field
MACHINE.
This is represented on the main screen as
/dfs:myFields/dfs:dataFields/d:SW-VERSIONS/@MACHINE["not(. =
../preceding-sibling::SW-VERSIONS/@MACHINE)"]
I have tried this with and without quotes and neither of them work.

What am I missing?

Ann Compton
 

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