• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: qualifying my user list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >qualifying my user list (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: RE: WebObjects 5.4.3 and Java 7
  • Next by Date: Re: exchange server and javamail
  • Previous by thread: qualifying my user list
  • Next by thread: exchange server and javamail
  • Index(es):
    • Date
    • Thread