Filtering on secondary datasources

M

Mike Surface

I don't see the filter options on secondary datasources like I do on
the Main datasource (when looking at properties of repeating tables).
My scenario is this: I have a list of search results which contain
many sub nodes which contain sub nodes, etc. When a users chooses one
item, I make a copy into the Main datasource of just the top level
nodes (the others aren't aren't needed for final output). I then have
an edit page that displays the items they have selected to which they
can make edits. The client would still like to see the sub nodes that
aren't editable - I was thinking of just showing the master results
list (secondary datasource) and filter on which item they are
currently looking at. I can do this easily in xsl, but when I apply a
filter to the xsl, infopath doesn't recognize it and I can't choose a
filter option on the repeating table like I can on the Main
datasource.

Ideas?
 
M

Mike Surface

I've discovered that filtering works fine if you edit the xsl by hand.
But, your filters must be at the end of your xpath expression.

For example:

<for-each select="/A/B/C[../@b != '']"> is valid
<for-each select="/A/B[@b != '']/C"> is not valid

....
 

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