Help with subclassing a EOQueryController!
Help with subclassing a EOQueryController!
- Subject: Help with subclassing a EOQueryController!
- From: Alexander Lamb <email@hidden>
- Date: Tue, 08 Apr 2003 17:32:05 +0200
Hello,
Even after reading several times the documentation, I can't get the
following to work:
If I call:
EOControllerFactory.sharedControllerFactory().queryWithEntityName("DicMedica
ment");
And nothing else is configured (e.g. No special rule for queries, etc...), I
get the perfect queryWindow with the fields to query on and the table view
to see the results and select a record.
If I create a subclass of EOQueryController (as explained in the
documentation) to simply add an action, and then add the rule:
LHS ((task='query') AND (entity.name='DicMedicament'))
KEY className
RHS "OrMedEditor.client.QueryController"
I then get the window, with my additional action as I specified in my
QueryController class, but no way to get the query fields. I only get the
table view!
I tried several permutations such as calling:
EOControllerFactory.sharedControllerFactory().openWindowForTaskName("queryWi
ndow");
But no change!
Do I really need to freeze my XML to achieve this?
Thanks,
Alex
--
Alexander Lamb
Groupe Serveurs Applicatifs
Division d'Informatique Midicale
Htpitaux Universitaires de Genhve
21 rue Micheli-du-Crest
CH-1211 Genhve 4 / Switzerland
Tel: +41-22 372.48.46 Fax: +41-22 382.86.80
email@hidden / http://www.hcuge.ch
_______________________________________________
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.