Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: How can I use an ACL code inside the APP?

$
0
0

In APP JS variables can be initialised 'global' and reused later with things like:
var global = {};
or
template.globalVar1 = 'foo';

 

But for XPath tests when NOT formatting you can use something like this in JS:

 

var stream = template.content.getStream('mainText');

//'mainText' would be the standard editorDOM from styler i'd guess

var tree = stream.xmlDocument;

var result = tree.evaluateXpath(stuff...);

 

But presumably your coding this from Styler and source edits not APP GUI?

 

Regards

Chris


Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>