Re: rules that don't seem to want to fire
Re: rules that don't seem to want to fire
- Subject: Re: rules that don't seem to want to fire
- From: Theodore Petrosky <email@hidden>
- Date: Fri, 08 Feb 2013 10:37:16 -0800 (PST)
--- On Fri, 2/8/13, David Holt <email@hidden> wrote:
>
> On 2013-02-08, at 8:44 AM, Theodore Petrosky <email@hidden>
> wrote:
>
> > OK now I have two instances where rules that should
> fire just don't do anything.
> >
> > 100 : propertyKey = 'abstract' => qualifierOperators
> = ("contains", "starts with", "like")
> [com.webobjects.directtoweb.Assignment]
>
> this was an example from my app. Do you have a propertyKey
> called 'abstract'?
I swear I tried:
100 : *true* => qualifierOperators = ("contains", "starts with", "like") [com.webobjects.directtoweb.Assignment]
which should alway fire and it did nothing. so on trying it again I was surprised to have it work. Then of course the dummy light went on. Thank you, I get it now.
Any idea why I still can not get the isEntityInspectable to work on an embedded entity.
I tried:
102 : *true* => isEntityInspectable = "false" [com.webobjects.directtoweb.BooleanAssignment]
now this did what I thought. It eliminated the Inspect button everywhere except on a list of entities that are a toMany relationship.
shouldn't the above remove ALL inspect buttons from my app?
Ted
> >
> > this should fire when a ERD2WQueryStringOperator
> component is used. I know the component is used because I
> started mucking with the .java and sure enough the page is
> displayed and the java has:
> >
> >
> NSLog.out.appendln("*** allQualifierOperators
> " + qualifierOperatorsOverrideFromRules());
> >
> > which is returning:
> >
> > *** allQualifierOperators null
> >
> > in the .java:
> >
> > public NSArray<String>
> qualifierOperatorsOverrideFromRules(){
> > return
> (NSArray<String>)d2wContext().valueForKey("qualifierOperators");
> > }
> >
> > so the rule is NOT passing in the array.
> >
> >
> >
> > then there is the issue of isEntityInspectable.
> >
> > nothing I do will turn off the Inspect button on
> a ERMODEditRelationshipPage
> >
> > this rule will turn off ALL inspect buttons except on
> the ERMODEditRelationshipPage
> > 102 : *true* => isEntityInspectable = "false"
> [com.webobjects.directtoweb.BooleanAssignment]
> >
> > the pageConfiguration is listed as
> EditRelationshipEmbeddedPWOMileStone
> > 102 : pageConfiguration =
> 'EditRelationshipEmbeddedPWOMileStone' =>
> isEntityInspectable = "false"
> [com.webobjects.directtoweb.BooleanAssignment]
> >
> > to no avail. I have been looking over the
> ERMODEditRelationship template. I have spent two hours
> looking at every template to see where the condition is set
> and I can not find it.
> >
> > Could it be that there is no isEntityInspectable key in
> ERMODEditRelationshipPage?
> >
> > 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
>
>
_______________________________________________
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