Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

this.relevant="+print";

$
0
0

Hi.

 

I understand that .presence controls screen appearance and .relevant controls printing. Here's a sample from the Scripting Basics guide:

 

switch(xfa.event.newText) {

case 'Invisible':

Subform1.nodes.item(nCount).presence = "invisible";

break;

case 'Hidden (Exclude from Layout)':

Subform1.nodes.item(nCount).presence = "hidden";

break;

case 'Visible (but Don\'t Print)':

Subform1.nodes.item(nCount).presence = "visible";

Subform1.nodes.item(nCount).relevant = "-print";

break;

case 'Invisible (but Print Anyway)':

Subform1.nodes.item(nCount).presence = "invisible";

Subform1.nodes.item(nCount).relevant = "+print";

break;

default:

Subform1.nodes.item(nCount).presence = "visible";

break;

 

So the example covers Hidden, Visible (but don't print and Invisible (but print anyway).

 

But how does a script set an object to be visible AND print? It appears that anything like:

 

this.relevant="+print";

 

causes an object to disappear from the screen, and

 

this.presence="visible";

 

will not bring it back.

 

Thanks.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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