Re: D2W master-detail handling question
Re: D2W master-detail handling question
- Subject: Re: D2W master-detail handling question
- From: Markus Ruggiero <email@hidden>
- Date: Thu, 07 Apr 2011 09:29:58 +0200
Thanks, only after posting my question I realised that D2W distinguishes between "EditDetail" and "CreateDetail" page configs. You just confirmed my findings.
This list (and all the folks that answer to postings) is just great. Eventually I'll be able to give answers myself.
Have fun
---markus---
On 06.04.2011, at 19:01, David Holt wrote:
> Hi Markus,
>
> On 2011-04-05, at 11:14 PM, Markus Ruggiero wrote:
>
>> I have a one-2-many relationship from "master" to "detail". The user selects a "detail" from a ListDetail page configuration, then clicks "edit" on a given "detail". In page configuration EditDetail I have a ERD2WEditToOneRelationship as a popup for the toMaster relationship. Now the user thinks/wants to select a different "master" from this popup and switch to that master. Of course this makes no sense. And it also makes no sense business wise to re-assign that particular "detail" to a different "master". However on "new detail" the user must be able to select the "master".
>
> Change your PropertyLevel component to an uneditable string for that relationship in the "edit" page configuration.
>
> In the "create" page configuration leave it as is.
>
> David
>
>
>>
>> How can I easily distinguish between the cases where the detail is not yet saved (in case of new) and where a saved detail is edited so that the relationship toMaster can be made edit/non-edit accordingly?
>
> Use 2 different page configurations?
>
>
>>
>> Thanks
>> ---markus---
>>
>> _______________________________________________
>> 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