Re: JavaClient and D2W-Rulesystem
Re: JavaClient and D2W-Rulesystem
- Subject: Re: JavaClient and D2W-Rulesystem
- From: "B. Shank" <email@hidden>
- Date: Mon, 19 May 2003 11:53:48 -0700
I think frozen XML is the most efficient mechanism to accomplish what
you want. Create a new D2WComponent for each group of entities and
write a rule to identify each component. Each D2WComponent contains
frozen XML for a subset of your application's main entities. You can
then invoke
EOControllerFactory.sharedControllerFactory().openWindowForTaskName("<ru
leIdentifyingComponent") to display a window for a particular group.
Since the frozen XML contains a description of a query controller, the
window displayed is a query window.
This link discusses this mechanism:
http://developer.apple.com/techpubs/webobjects/DesktopApplications/
NonnibStaticControllers/chapter_9_section_1.html .
Does that make sense?
Brent
On Monday, May 19, 2003, at 11:30 AM, Carsten Czichos wrote:
Hi Brent,
I meant something slightly different. I understand the difference
between
main and enumeration entities. Basically I want to have not all "main
entities" in one queryWindow but two or more windows with "main
entities"
grouped together in a way that makes sense. For example I have "main
entities" like company, person, offer and invoice. I want to have one
window
that looks like the "queryWindow" with company and person and a second
one
with offer and invoice. I want to open the to windows from a
"non-direct"
window, i.e. nib-file. If I understood the tutorial correctly, I should
define a task via the rule-system and open the window by calling
EOControllerFactory.sharedControllerFactory().openWindowForTaskName("gr
oup1"
) or
EOControllerFactory.sharedControllerFactory().openWindowForTaskName("gr
oup2"
)
and have the right rules set up. But I can't figure out, what the rules
should look like. I suppose, it needs several rules to immitate the
way the
"queryWindow" works and supply different groups of "main entities".
Of course I could also try frozen XML or nib files and add Controllers
generated programatically by the EOControllerFactory, but that's only
second
best.
Last chance might be setting up a Component that uses
EOSwitchComponent, but
I haven't found a good example yet.
If you have any ideas please HELP ME.
Best regards, Carsten
--
Carsten Czichos
czichos.net GmbH
Waldsdngerpfad 5
14129 Berlin
fon: +493080491175
fax: +493080491177
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.