Re: Help with subclassing a EOQueryController!
Re: Help with subclassing a EOQueryController!
- Subject: Re: Help with subclassing a EOQueryController!
- From: Alexander Lamb <email@hidden>
- Date: Wed, 09 Apr 2003 09:31:04 +0200
This is amazing... It works!
Now, what I don't understand is why, by adding a condition, should it work.
Indeed, by adding a condition we are just slightly more restrictive so even
without the added condition the rule should have fired.
The only explanation is that my rule might have fired "too many times" and
confused the system?
Thanks anyway...
D2JC is really powerfull, but rather complicated to understand because there
are so many ways to achieve things!
Alex
On 8.4.2003 23:33, "Brent Shank" <email@hidden> wrote:
> Try adding "AND controllerType = 'entityController'" to the LHS.
>
> Brent
>
> On Tuesday, April 8, 2003, at 08:32 AM, Alexander Lamb wrote:
>
>> Hello,
>>
>> Even after reading several times the documentation, I can't get the
>> following to work:
>>
>> If I call:
>>
>>
>> EOControllerFactory.sharedControllerFactory().queryWithEntityName("DicM
>> edica
>> 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("qu
>> eryWi
>> 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.
_______________________________________________
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.