Re: Queryall page in D2W
Re: Queryall page in D2W
- Subject: Re: Queryall page in D2W
- From: Anjo Krank <email@hidden>
- Date: Wed, 28 Jan 2004 07:47:51 +0100
- Xx-reply-to: email@hidden
Am 28.01.2004 um 01:36 schrieb Steve Sharman:
I think it must be time for my nightly newbie question. I would like
to customise a Queryall page in D2W so that the list of attributes
that my users can search upon is restricted (e.g. in my entity Person,
I would like them to be able to run the query on LastName, but not on
EncryptPassword).
I'm assuming that to be able to do this I need to freeze the component
and then change the logic behind it. Can anyone point me in the right
direction for the change that I want to make? I'm assuming that the
way that D2W works out of the box is to carry out some kind of dynamic
analysis of the attributes of each entity and builds a list of those
that it finds (it looks like perhaps it only pulls out class
attributes?). I think what I need to be able to do is to control this
in some way, either in Java or through the rule system?
Although I never tried this, you should be able to set the entities to
show by setting "visibleEntityNames" = (entity1,...). The attributes
for each entity are set via a setting the displayPropertyKeys for the
query task of the respective entity.
Also take a look at the ERD2WQueryEntitiesPage from Project Wonder (its
in CVS, not in the 1.0.1 release).
Cheers, Anjo
_______________________________________________
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.