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 protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to