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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to