setting boolean value from a rule
setting boolean value from a rule
- Subject: setting boolean value from a rule
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 01 Oct 2012 10:20:58 -0700 (PDT)
I cloned the ERMDSimpleListPageRepetition and added a conditional at the top of the page to allow help text to be either visible or not:
<webobject name = "InstructionComponentCondition">
<webobject name = "InstructionComponent" />
</webobject>
InstructionComponent : WOSwitchComponent {
WOComponentName = d2wContext.headerInstructionComponentName;
}
my conditional:
InstructionComponentCondition : WOConditional {
condition = d2wContext.showHeaderInstructionComponent;
}
each user that logs in has a security setting "showsHelpText". so I can access it at: session.user.showsHelpText
so I created a rule:
100 : (task = 'list' and session.user.showsHelpText = 1) => showHeaderInstructionComponent = "true" [com.webobjects.directtoweb.Assignment]
Do I have to worry about the 'false' setting?
Should there be a rule:
10 : *true* => showHeaderInstructionComponent = "false" [com.webobjects.directtoweb.Assignment]
What is best 'form' for setting the state of d2wContext.showHeaderInstructionComponent?
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden