Re: Queryall page in D2W
Re: Queryall page in D2W
- Subject: Re: Queryall page in D2W
- From: Steve Sharman <email@hidden>
- Date: Wed, 28 Jan 2004 10:52:07 +0000
Anjo,
I actually achieved this by freezing the component (which I needed to
do anyway because I'm using that page as a sort of "portal" to
summarise some data from the application as well as the query all
part), and then manually editing the Java source. When the component is
frozen, an NSArray is created that lists all of the query attributes
available for each entity. I will try your suggestion as well though -
I would like to think that I'm doing things in the right way, not just
the way that I stumble across....
Many thanks,
-- Steve
On 28 Jan 2004, at 06:47, Anjo Krank wrote:
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.
_______________________________________________
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.