Re: restrictedChoiceKey to return currentClients ??
Re: restrictedChoiceKey to return currentClients ??
- Subject: Re: restrictedChoiceKey to return currentClients ??
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 11 Feb 2013 20:51:24 -0800 (PST)
so I go to bed and of course can't sleep thinking of this crap and it dawns on me:
object.client.clientName
duh
sorry for the answering my own question again.
Ted
--- On Mon, 2/11/13, Theodore Petrosky <email@hidden> wrote:
> From: Theodore Petrosky <email@hidden>
> Subject: restrictedChoiceKey to return currentClients ??
> To: "WebObjects Development" <email@hidden>
> Date: Monday, February 11, 2013, 10:58 PM
> I have a method in my Client object:
>
> public NSArray<Client> currentClients() {
>
> NSLog.out.appendln("
> *currentClients
> ");
> return
> Client.fetchClients(editingContext(),
> Client.IS_ACTIVE.eq(true), Client.CLIENT_NAME.ascs());
> }
>
> and of course there are attributes isActive, and
> clientName.
>
> I want my Client popup to show a list of active clients. So
> I have:
>
> 100 : (propertyType = 'r' and
> relationship.destinationEntity.name = 'Client') =>
> keyWhenRelationship = "clientName"
> [com.webobjects.directtoweb.Assignment]
>
> 100 : ((pageConfiguration like 'Edit*' or pageConfiguration
> like 'Create*') and (propertyKey = 'client' or propertyKey =
> 'briefLogo')) => componentName =
> "ERD2WEditToOneRelationship"
> [com.webobjects.directtoweb.Assignment]
>
> so far so good, my popup displays the clientName of entity
> Client.
>
> 102 : propertyKey = 'clientName' => restrictedChoiceKey =
> "object.currentClients"
> [com.webobjects.directtoweb.Assignment]
>
> obviously there is something wrong with the LHS as
> currentClients() is never fired.
>
> What am I leaving out?
>
> 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