-
You could change that to a field w/ a default value and then have a rule that runs when the field changes. Attach a sample if you'd like a hand tho. :)
-
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?
-
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.
-
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?
-
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);
-
So, your form is bound to a SQL DB? If you go to the fields task pane, and right click the query field PART_DIMENSION and select copy XPath, what is the resulting XPath? I'm thinking your XPath Navigator xnSuppliersQuery is null. Do you know how to run your code in debug? If not, I have a blog post that may help you - ...
-
I can't see your screenshot - can you post more of your code? Maybe a screenshot of the schema in question? You can attach your screenshot under the Options tab in a reply.
-
So - there are actually breaks in there, you just can't see them. I double checked my form where I've used this command, and what I did was add a text box bound to the (single) field I copied the rules into. I'm including a screenshot of the settings for that control and how the errors look - remove the borders on the text box so users ...
-
Hi - I've not seen this specific issue before. Can you review the SharePoint logs and see if there is more to the error message? I know I have seen a similar error message if I use filters on a repeating table and have an expression box on the form above it (I know, crazy, right?) but there should be more info in the logs that may help us ...
-
Hi, Shane - the GetErrors command does this - I usually copy the result into another field so that another command doesn't overwrite the info. Let me know if you need more help!