• 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
Question about restrictedChoiceKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about restrictedChoiceKey


  • Subject: Question about restrictedChoiceKey
  • From: Farrukh Ijaz <email@hidden>
  • Date: Mon, 17 Oct 2011 13:02:17 +0300

Hi,

I've a situation. I've three entities:

Country
CountryGroup
Customer

The Customer has toOne relationship with Country and Country has toMany relationship with CountryGroup. The customer doesn't know about CountryGroup at all. In the Customer query page, I want to present the user list of CountryGroup for which following rules:

LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: componentName = 'ERD2WQueryToManyRelationship'
LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: restrictedChoiceKey = 'object.availableCountryGroups'

The availableCountryGroups() returns NSArray<CountryGroup> and is defined in Customer class.

It doesn't work as I guess in the query page, the object seems to be null.

What could be the possible solution. I don't want to define method in the session object so 'session.availableCountryGroups' is not desired.

Is there a way we can use FQCN instead of 'object' such as 'com.xyz.entity.CountryGroup.availableCountryGroups' so this could work generically? or is there a way I can extend my own D2WContext class such as MyD2WContext and tell the application to use this and I can resolve FQCN prefixed methods.

Thanks for any suggestions in advance.

Farrukh

 _______________________________________________
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

  • Follow-Ups:
    • Re: Question about restrictedChoiceKey
      • From: Ramsey Gurley <email@hidden>
  • Prev by Date: Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )
  • Next by Date: Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )
  • Previous by thread: Re: Embed a external command-line tool in bundle
  • Next by thread: Re: Question about restrictedChoiceKey
  • Index(es):
    • Date
    • Thread