L
Lance M
Hi all,
I am trying to programatically execute a complex XPath query that will
filter a field for me. I have 2 dataconnections (connectionA and
ConnectionB), each linking to a form library with over 1500 infopath
forms each. Both of these forms (for A and B) have the same field
(BatchNum). The scenario is this: form A is completed before form B,
and I want to figure out which BatchNums from form A are ready to be
used within form B. What I want to do is execute a single XPath query
to filter these out, something like:
selectNodes("/dfs:myFields/dfs:dataFields/dsf:A[@BatchNum " + _
"!= /dfs:myFields/dfs:dataFields/dsf:B/@BatchNum]")
This query of course does not work (but it gives you the idea). Are
there any good examples out there for filtering with XPath? This
problem requires nested queries (one of which must reference a node
outside of it). Is this possible? Are there any good examples of XPath
out there that are more involved than the simple book/title/@crapiola?
Also, so as not to limit the feedback, are there any other ways to
filter that would be as fast as XPath? I can iteratively filter, but
that takes time because there are a lot of documents to scroll through.
Any thoughts would be appreciated. Also, if you need more info let me
know.
Lance M.
I am trying to programatically execute a complex XPath query that will
filter a field for me. I have 2 dataconnections (connectionA and
ConnectionB), each linking to a form library with over 1500 infopath
forms each. Both of these forms (for A and B) have the same field
(BatchNum). The scenario is this: form A is completed before form B,
and I want to figure out which BatchNums from form A are ready to be
used within form B. What I want to do is execute a single XPath query
to filter these out, something like:
selectNodes("/dfs:myFields/dfs:dataFields/dsf:A[@BatchNum " + _
"!= /dfs:myFields/dfs:dataFields/dsf:B/@BatchNum]")
This query of course does not work (but it gives you the idea). Are
there any good examples out there for filtering with XPath? This
problem requires nested queries (one of which must reference a node
outside of it). Is this possible? Are there any good examples of XPath
out there that are more involved than the simple book/title/@crapiola?
Also, so as not to limit the feedback, are there any other ways to
filter that would be as fast as XPath? I can iteratively filter, but
that takes time because there are a lot of documents to scroll through.
Any thoughts would be appreciated. Also, if you need more info let me
know.
Lance M.