Re: qualifying my user list
Re: qualifying my user list
- Subject: Re: qualifying my user list
- From: Fabian Peters <email@hidden>
- Date: Tue, 16 Apr 2013 21:19:00 +0200
Hi Ted,
Assuming your object is a "User", this should work:
100 : (task = 'edit' and entity.name = 'User' and propertyKey = 'user') => restrictedChoiceKey = "object.currentUsers" [com.webobjects.directtoweb.Assignment]
Fabian
Am 16.04.2013 um 15:33 schrieb Theodore Petrosky:
> I am using these two rule to create the list that populates my popup. However it is not exactly what I want.
>
> 100 : (pageConfiguration like '*EmbeddedProjectUser' and propertyKey = 'user') => componentName = "ERD2WEditToOneRelationship" [com.webobjects.directtoweb.Assignment]
>
> 100 : (propertyType = 'r' and relationship.destinationEntity.name = 'User') => keyWhenRelationship = "fullName" [com.webobjects.directtoweb.Assignment]
>
> I have a method in my User.java that returns an array of current users:
>
> public NSArray<User> currentUsers() {
> EOQualifier qual = User.IS_ACTIVE.eq(true);
> return User.fetchUsers(editingContext(), qual, null);
> }
>
> how can I create a rule to use this array to populate the popup? You can see that I want the list of available users, not all users. Is this the right approach?
>
> Ted
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden