Re: [D2W] How can I make all references in the model read only?
Fabian Peters <[email protected]> Fri, 14 Mar 2014 19:11:51 +0100
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
This will depend on the look you use and the relationship components configured. For modern look, these should remove all edit actions from relationships:
200 : ((look = 'ERModernLook' and (task = 'list' and (parentPageConfiguration like '*Edit*' or parentPageConfiguration like '*Create*'))) or pageConfiguration like 'EditRelationship*') => actions = {"right" = ("inspectAction"); } [com.webobjects.directtoweb.Assignment]
200 : ((look = 'ERModernLook' and (task = 'list' and (parentPageConfiguration like '*Edit*' or parentPageConfiguration like '*Create*'))) or pageConfiguration like 'EditRelationship*') => isEntityCreatable = "false" [com.webobjects.directtoweb.BooleanAssignment]
200 : ((look = 'ERModernLook' and (task = 'list' and (parentPageConfiguration like '*Edit*' or parentPageConfiguration like '*Create*'))) or pageConfiguration like 'EditRelationship*') => shouldShowQueryRelatedButton = "false" [com.webobjects.directtoweb.BooleanAssignment]
Am 14.03.2014 um 18:23 schrieb Giancarlo Dessena <[email protected]>:
> Hi Fabian,
>
> Thank you for your reply :)
>
> what i meant was to just make the relationships between 2 Objects editable.
> For example you have two entities called User and Group
> User has a 1-n relationship to the group.
> I do not want this relationship to be editable in D2W and for this single case writing a rules is indeed easy.
>
> Obviously I don't want to write a rule for every relationship inside my model,
> so I'am trying to come up with a general rule to make all relations read only.
>
> But how do I write a general rule that makes all these relationships not editable in D2W?
>
> Carlo
>
>
> Am 14.03.2014 um 18:14 schrieb Fabian Peters <[email protected]>:
>
>> Hi Carlo,
>>
>> If by "relations" you mean "entities", then this should do it:
>>
>> 100 : *true* => isEntityEditable = "false" [com.webobjects.directtoweb.BooleanAssignment]
>>
>> Fabian
>>
>> Am 14.03.2014 um 17:53 schrieb Giancarlo Dessena <[email protected]>:
>>
>>> Hello everybody,
>>>
>>> I'm trying to make all relations in my D2W application read only.
>>> Can anybody tell me how a rule to achieve that looks like?
>>>
>>> Greetings Carlo
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and their
>>> applications. Written by three acclaimed leaders in the field,
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/13534_NeoTech
>>> _______________________________________________
>>> Wonder-disc mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech