On 2013-02-08, at 10:37 AM, Theodore Petrosky <[email protected]> wrote:

> 
> 
> --- On Fri, 2/8/13, David Holt <[email protected]> wrote:
> 
>> 
>> On 2013-02-08, at 8:44 AM, Theodore Petrosky <[email protected]>
>> 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?

Only if it is supported in the list page repetition. It doesn't look like it is 
supported in ERMDSimpleListPageRepetition.

In this case you need to use the actions array or modify the component. 

101 : (pageConfiguration like 'ListItem*' and session.user.isAdmin = 'true') => 
actions = {"left" = ("editAction"); "right" = ("deleteAction"); } [Assignment]


> 
> 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 protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>>> 
>>> This email sent to [email protected]
>> 
>> 

 _______________________________________________
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