-
Hello,
I believe the XPath, when expanded, should look like this:
xdXDocument:GetDOM("test")/phrases[@value = current()/dfs:dataFields/d:RATABLE8D/@REASONCODE]
with just @value after the opening bracket.
-
Are you sure that users are able to modify the value in the DTP? I just tried this, and while I can select the text in a disabled DTP, I can't modify the value. Is this in the rich client or the browser?
-
What do you mean when you say it pulls all the phrase values? Could you attach a screenshot to this thread?
-
You should use the Select field... button to pick the phrase field from the data source, then click Show XPath to add the [@value = current()] part.
I made a mistake in the XPath in my previous post. It should just be:
/phrases/phrase[@value = current()/dbField]
Naturally, you would replace dbField with the actual name of the field ...
-
There are two things you can do here:
Bind the field to a Dropdown Box and set up the combobox to have the appropriate display values correspond to all of the numerical "value" values. You can make the dropdown readonly if you don't want anyone changing the value.
Create a secondary data source from an XML file that has ...
-
That blog post seems to describe precisely what you're asking about here - only showing one row of a repeating section at a time. So what is it that you need assistance with?
-
I typically advise against using code when it's not absolutely necessary, but if your validation logic does get convoluted and needs to involve many fields, I have demonstrated a way to alleviate this using code:
http://www.infopathdev.com/forums/p/19504/67770.aspx#67770
But I want to stress that this will only be worth your time if you ...
-
If you make the change I showed, you can access the hashtable just like any other hashtable:
_VehicleLicense["803-445"] = "yes";
-
Typically, the set accessor is only invoked in a statement that assigns directly to the property, as in:
_VehicleLicense = new Hashtable();
_VehicleLicense = otherHashtable;
Anything that accesses the property's fields, methods, or indexers, even within an assignment statement, will use the get accessor, as the property's value needs ...
-
In InfoPath 2010 you can copy rules (including validation rules) between fields, but in other versions, yes that's basically what you need to do. Shouldn't take more than about 2 minutes though, should it?