on 09-29-2009 9:59 PM
I have a propertie call it "country" in my "Data View" and I need access its value from javascript code to use in a IF sentence.
I try thinks such as "xfa.node.getAttribute("country")" but doens't work.
How can I access it?
Thanks.
--> get values from the data view if you don't have them in your form (hierarchy) -->
in javascript: xfa.record is access to the upper node in your dataview (the name of your form in most cases)
dataview:
-Formname
--structure1
---field1
access field1 --> xfa.record.structure1.field1.rawValue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try like this:-
if(country.rawValue == "IN")
{
xfa.host.messageBox ("You selected India"); // This will display a pop-up
}
else
{
xfa.host.messageBox ("You selected some other country");
}
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.