Re: D2WEditRelationship
Re: D2WEditRelationship
- Subject: Re: D2WEditRelationship
- From: Mark Wardle <email@hidden>
- Date: Tue, 16 Feb 2010 20:59:01 +0000
Hi.
I was trying to work out why I didn't know about BASMasterDetailPage,
NEUMasterDetailPage or WOLMasterDetail or indeed their superclass
D2WMasterDetailPage.
It is because there isn't a Wonder equivalent. Wen generating a new
look using the (helpfully supplied) Wonder scripts, one doesn't end up
with a MasterDetailPage subclass automatically.
Which makes me think.... I must be doing something wrong here. I know
(by now) that if I start ruminating on starting some new body of code
in Webobjects/Wonder then I'm usually on the *wrong* track!
Therefore, let me rephrase the question please!
I have a custom component displaying patient information. These are
sometimes editable and so there is an edit button with a component
action. This action creates and returns a D2W page. For instance, each
patient may have any number of "telephone" entities (a one to many).
It doesn't make sense for users to search (like that seen in
EditRelationship) - hence my prior post - but I do want users to add,
edit, and delete telephone numbers for that patient. If other people
aren't using a MasterDetailPage (its not in Wonder) then what are
people using?
What is the correct D2W component for handing one to many
relationships such as these?
Thank you,
Mark
On 16 February 2010 02:17, Ramsey Lee Gurley <email@hidden> wrote:
>
> On Feb 15, 2010, at 5:32 PM, Mark Wardle wrote:
>
>> Dear all,
>>
>> I'm trying to subclass and customise D2WEditRelationshipPage to create
>> a custom look (in fact, I'm subclassing ERNEUEditRelationshipPage).
>>
>> Specifically, I want to be able to customise the page using the rule system.
>>
>> Firstly, I want to hide the "query" button and the "query" panel.
>>
>> In the WOD file, I can see:
>>
>> DisplayQuery: WOConditional {
>> condition = displayQuery;
>> }
>>
>> but the displayQuery attribute of the component is part of
>> D2WEditRelationshipPage, and I don't have the source code to that.
>
>
> Jadclipse is your friend (^_^)
>
> http://wiki.objectstyle.org/confluence/display/WOL/Useful+Eclipse+Plugins
>
> That isn't rule based. It is simply a boolean returning internal page state.
>
>
>> Secondly, I want to customise the browser component - in fact, replace
>> it with an embedded D2WList instead but all of the actions link into
>> D2WEditRelationshipPage and without decent documentation (and the
>> source code), it is very difficult.
>
>
> I'm not sure I follow you exactly, but it sounds like you may want to look into subclassing a master-detail type of page. It looks a bit like an edit relationship page with no query.
>
> http://developer.apple.com/legacy/mac/library/documentation/WebObjects/Developing_With_D2W/WalkThrough/WalkThrough.html#//apple_ref/doc/uid/TP30001015-DontLinkChapterID_5-TPXREF104
>
> Or perhaps a edit list page from Wonder.
>
>
>> This is an issue with subclassing more generally obviously.
>>
>> Am I missing some obvious source of documentation for these
>> components, should I fire up a java decompiler, and is there a rule
>> that is checked by D2WEditRelationshipPage to disable/enable querying?
>>
>> Thanks,
>>
>> Mark
>
>
> If you ever want to see *all* the rules (And you're using Wonder), just paste
>
> log4j.logger.er.directtoweb.rules=DEBUG
>
> into your properties file.
>
> Ramsey
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
_______________________________________________
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