- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
You can use the following for loops:
var query = NLWS.xtkQueryDef.create(
<queryDef schema="search:country" operation="select">
<where>
<condition expr={"@codigo_iata='" + iataCode + "'"}/>
</where>
</queryDef>
);
query.SelectAll(false);
var results = query.ExecuteQuery();
for each(var result in results.getElements()){
logInfo(result.$id_region);
}
And the following for 1 record:
var query = NLWS.xtkQueryDef.create(
<queryDef schema="search:country" operation="get">
<where>
<condition expr={"@codigo_iata='" + iataCode + "'"}/>
</where>
</queryDef>
);
query.SelectAll(false);
var result = query.ExecuteQuery();
logInfo(result.$id_region);
Regards
Views
Replies
0 Likes
Total Likes