Hi David,
thank you, great !!

Matthias


Am 30.03.2011 um 14:56 schrieb David LeBer:

> 
> On 2011-03-30, at 8:19 AM, Matthias Jakob wrote:
> 
>> Hi David,
>> thank you for your help.
> 
> Please keep replies on the list.
> 
>> 
>> No, my application must have c r u d  rights. So i need somthing like 
>> actions = {'inspect','edit'} or actions = {'delete'}.
>> It's a user role thing ... it is configured by the administrator ... so i 
>> need all options, also create and search ...
>> 
>> Is this possible and if how can i do that?
>> 
>> But i don't know how to disable only one button i.e. delete ... and i need 
>> it for all buttons, inspect, edit, delete, search and new - this would be 
>> the best ...
> 
> Action for the list items are controlled by the actions dictionary, this is 
> the rule that sets the default actions:
> 
> 40 : ((task = 'list' and (parentPageConfiguration like '*Edit*' or 
> parentPageConfiguration like '*Create*')) or pageConfiguration like 
> 'EditRelationship*') => actions = {"right" = ("inspectAction", "editAction", 
> "removeRelatedAction"); } [com.webobjects.directtoweb.Assignment]
> 
> You could add similar rules that set the actions dictionary based on user 
> role.
> 
> 100: (pageConfiguration like 'EditRelationship*' and 
> session.currentUser.isAdmin = 0) => actions {"right" = ("inspectAction")}; 
> [com.webobjects.directtoweb.Assignment]
> 
> Search button can be hidden with the 'shouldShowQueryRelatedButton' key. i.e:
> 
> 100 : (pageConfiguration = 'EditRelationshipEmbeddedSong' and 
> parentPageConfiguration like 'Edit*Band') => shouldShowQueryRelatedButton = 
> "false" [com.webobjects.directtoweb.BooleanAssignment]
> 
> New button can be hidden with the 'isEntityCreatable' key. i.e:
> 
> 100 : (pageConfiguration = 'EditRelationshipEmbeddedSong' and 
> parentPageConfiguration like 'Edit*Band') => isEntityCreatable = "false" 
> [com.webobjects.directtoweb.BooleanAssignment]
> 
>> 
>> Thank you,
>> Matthias
>> 
>> 
>> Am 30.03.2011 um 13:51 schrieb David LeBer:
>> 
>>> Matthias,
>>> 
>>> If you don't want any action buttons in the related obj list:
>>> 
>>> 100 : pageConfiguration = 'EditRelationshipEmbeddedENTITY'  => actions = {} 
>>> [com.webobjects.directtoweb.Assignment]
>>> 
>>> But maybe you don't want to actually edit the relationship and an embedded 
>>> list page is what you are looking for instead?
>>> 
>>> On 2011-03-30, at 4:22 AM, Matthias Jakob wrote:
>>> 
>>>> Hi list,
>>>> I'm a bit confused about EditRelationshipEmbeddedENTITY.
>>>> 
>>>> I try to disable Inspect, Edit, Delete Search or New Button.
>>>> 
>>>> 100 : pageConfiguration = 'EditRelationshipEmbeddedENTITY' => 
>>>> isEntityCreatable = "false" [com.webobjects.directtoweb.Assignment]
>>>> 
>>>> does not work, but 
>>>> 
>>>> 100 : pageConfiguration = 'EditRelationshipEmbeddedENTITY' => 
>>>> isEntityEditable = "false" [com.webobjects.directtoweb.Assignment]
>>>> 
>>>> works. The Edit-Button is gone.
>>>> 
>>>> shouldShowQueryRelatedButton works ...
>>>> 
>>>> But Delete i.e. ... i dont know ... ;-( 
>>>> 
>>>> so please can someone post me the right roles or what I'm doing wrong... ?
>>>> 
>>>> Thank you all!
>>>> Matthias
>>> 
>>> ;david
>>> 
>>> --
>>> David LeBer
>>> Codeferous Software
>>> 'co-def-er-ous' adj. Literally 'code-bearing'
>>> site:       http://codeferous.com
>>> blog:       http://davidleber.net
>>> profile:    http://www.linkedin.com/in/davidleber
>>> twitter:    http://twitter.com/rebeld
>>> --
>>> Toronto Area Cocoa / WebObjects developers group:
>>> http://tacow.org
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> ;david
> 
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site:         http://codeferous.com
> blog:         http://davidleber.net
> profile:      http://www.linkedin.com/in/davidleber
> twitter:      http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
> 
> 
> 
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to