-
I have multiple nested repeating sections. Within each section I have an expression box
that counts each time a new item is inserted. I want the text box in field 1 to
be read only and auto populate based on the expression box value. If expression box value is "a."
then "Paragraph 1", if "b." then ...
-
XPath is case sensitive - gotta watch those caps! Glad you solved it - you'll sleep well tonight.
Isn't it fun when you bend the computer to your will?
-
/dfs:myFields/dfs:queryFields/q:PART_DIMENSION/@PART_ID
That was it!!!!!!!!!!!!! Problem solved. You are a Goddess! Thank You very much! This has been a stickler of a problem here and this will make me look very good! Thank you so much. If you have written any books, send me some links!
WAKGTECH
(another thankful customer)
-
You just have a : before Part_ID - there would be something before that- just right click the query field and copy the XPath - paste it in a reply.
-
I turned on a few watches and this is what I got. Any Ideas?
-
when I hover over xnSuppliersQuery, it is NOT null. I am thinking the full xpath is
"/dfs:myFields/dfs:queryFields/q:PART_DIMENSION/:Part_ID)
-
Hover your cursor over xnSuppliersQuery - is it null? If not, what is the full XPath to the field you are trying to set the value of?
-
OK, I did find that I had to change my code for the var xnSuppliersQuery. But it still hangs at the same place.
Bill
-
xnMain.SelectSingleNode is not using that XPath tho, right? :)
Edited to add the line of code, I was being lazy -
XPathNavigator xnSuppliersQuery = xnMain.SelectSingleNode(""/dfs:myFields/dfs:queryFields/q:PART_DIMENSION", this.NamespaceManager);
-
This is my resulting XPath "/dfs:myFields/dfs:queryFields/q:PART_DIMENSION" is this not correct? I will now look at your blog post! Thanks for your assistance!