• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Someone? Rule help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Someone? Rule help?


  • Subject: Re: Someone? Rule help?
  • From: Jesse Tayler <email@hidden>
  • Date: Fri, 02 Mar 2012 16:40:19 -0500

what's your rule look like?

I mean, are you certain you are logging out the value and the class being returned by your d2wcontext? did you set a custom assignment?

for reasons I no longer recall exactly, I don't use booleans or integers in rules, but rely on strings mostly.

wantsHidden = "YES"

I think if you want to change the assignment class used in your rule you can get bools and ints to work, but my desire for simplicity leads me to use strings for flags like that.

maybe that helps




On Mar 2, 2012, at 2:05 PM, James Cicenia <email@hidden> wrote:

> Here is the code in ERModRequiredWrapper:
> 	/**
> 	 * Show the form for only those pages that need it.
> 	 */
> 	public Boolean showForm() {
> 		if (_showForm == null) {
> 			Integer temp = (Integer)d2wContext().valueForKey("hasForm");
> 			boolean hideForm = booleanValueForBinding("hideForm");
> 			boolean result = (!hideForm && temp != null && temp.intValue() > 0);
> 			_showForm = Boolean.valueOf(result);
> 		}
> 		return _showForm;
> 	}
>
> I have tried everything to hide the form via rules:
>
> hasForm -- false
> hideForm -- true
> showForm -- false
>
> Nothing seems to work
>
> Thanks
> James
> _______________________________________________
> 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


 _______________________________________________
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


References: 
 >Someone? Rule help? (From: James Cicenia <email@hidden>)

  • Prev by Date: binary property lists --
  • Next by Date: Re: Server side includes in components?
  • Previous by thread: Someone? Rule help?
  • Next by thread: binary property lists --
  • Index(es):
    • Date
    • Thread