Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi All,
I have an small issue with respect to reading XML Datasource node. Initially I had done the same thing using the Dropdown list box change event by using the below code:
-------
var stateDataNode = $record.resolveNode("StatesAndCities.SAPDetails.(SAPCode.value == " + this.boundItem(xfa.event.change) + ")");
-------
Now I have requirement as the selecting the nodes from same XML Datasource based on the value entered in the TextField. So, I am using the below code in the 'Exit' event of the TextField to accomplish but it's not working. I am using this code in FormCalc :
-------
var stateDataNode = $record.resolveNode("StatesAndCities.SAPDetails.(SAPCode.value == " + this.rawValue + ")");
-------
Using the this.rawValue I am able to read the value in MessageBox, but not in the above code.
So, I am looking for the further help you guys. Please help regarding this.
Regards!
Sree Harshavardhana
Views
Replies
Total Likes
I believe you need to use the dropdown's newText or some property like that in order to access it's new value. this.rawValue on a Change event will get you what it previously was...to use rawValue, you could put the code in the exit event instead of the change event, or as I stated previously, using the newText attribute
Views
Replies
Total Likes
Dear AK,
Thanks!
As you said, I have my code with in the Exit event of the TextField itself and even I tried to use the newText property of the TextField but no luck!!!
Any other thoughts?
Regards.
Views
Replies
Total Likes