- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Here it is :
JS Script :
var enumId = 123456789 //xtk:enum ID
var domainsQuery = NLWS.xtkQueryDef.create({
queryDef : {
schema : "xtk:enumValue",
operation : "select",
select : {
node : [
{expr:"@label"},
{expr:"@name"}
]
},
where : {
condition : [
{expr : "[@enum-id] = " + enumId }
]
}
}
});
ctx.domains = new XML( domainsQuery.ExecuteQuery().toXMLString() );Parameters init context :
Init : From context,
options XPath : [enumValue-collection/enumValue]
label XPath : @label
values XPath : @name
You can change the xptah using aliases into the query.
Cedric
Views
Replies
0 Likes
Total Likes