cancel
Showing results for 
Search instead for 
Did you mean: 

xfa model scripting

Former Member
0 Kudos

hello,

I'm trying to do some scripting via the xfa model

this works ok, but not for a table via a web service response

I've found several thread's about e.g. rootXml but I can't get it to work

I would like to display the values of the first item in the table in a messagebox (just as test)

my script is like this

try

{

var string = rootXml.ZGetAirportInfoResponse.AirportInfoTab.item[1].Airportcode.value;

xfa.host.messageBox(string,"code",1);

}

catch(err)

{

xfa.host.messageBox(err,"error",1);

}

I'v put this in the PostExecute event and I can see a popup with an empty error

any suggestions ?

regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

it seems that you should use () instead of [] !