• 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: Example needed for ERD2WEditToOneRelationshipWithFilter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Example needed for ERD2WEditToOneRelationshipWithFilter


  • Subject: Re: Example needed for ERD2WEditToOneRelationshipWithFilter
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 10 Mar 2011 11:16:40 -0700

Hi Markus,

I think a regular ERD2WEditToOneRelationship should do the trick for you.

100: task = 'edit' and smartRelatinship.isToMany != 1 and smartRelationship.destinationEntity.name = "TechnicalDoc" => componentName = ERD2WEditToOneRelationship [Assignment]

That will give you the full list.  To filter that list, you would either use restrictedChoiceKey or restrictingFetchSpecification RHS key. In this case, you'd probably use the restrictingFetchSpecification and supply the name of a fetch spec

100: task = 'edit' and smartRelatinship.isToMany != 1 and smartRelationship.destinationEntity.name = "TechnicalDoc" => restrictingFetchSpecification = ReadyDocs [Assignment]

Then in entity modeler add a fetch spec named ReadyDocs on your TechnicalDocs entity that will fetch the values you want.

Ramsey


On Mar 10, 2011, at 12:51 AM, Markus Ruggiero wrote:

>
> On 09.03.2011, at 12:00, Markus Ruggiero wrote:
>
>> Could someone please give me a short example for the use of ERD2WEditToOneRelationshipWithFilter? The minimalist documentation is (to me) of not much help. Lets say I need to create a toOneRelationship to entity TechnicalDoc where the attribute isReady is true. Relationship to technical docs that are not ready should not be allowed. What would the rules be? I am particularly interested in the ERD2WDelayedBooleanAssignment rule.
>>
>> Thanks a lot
>> ---markus---
>
> Any takers? My problem is not so much how to use ERD2WEditToOneRelationshipWithFilter but how to specify the necessary rule(s) with the ERD2WDelayedBooleanAssignment.
>
> The doc for the editToOne... only says
>
> Adds a filter for the select list. How to use: Set a delayed boolean assignment on restrictedChoiceKey or restrictedFetchSpecification based on the condition key defined by filterKey
>
> For me this is not enough. What is restrictedChoiceKey? What is and how do I specify condition key and filterKey? I found an example rule in one of the ERFramework's rule file but I cannot "translate" the pattern of that rule into my problem space.
>
> Thanks
> ---markus---
>
>
>
> _______________________________________________
> 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: 
 >Example needed for ERD2WEditToOneRelationshipWithFilter (From: Markus Ruggiero <email@hidden>)
 >Re: Example needed for ERD2WEditToOneRelationshipWithFilter (From: Markus Ruggiero <email@hidden>)

  • Prev by Date: Re: [OT] Play! Framework
  • Next by Date: Re: [OT] Play! Framework
  • Previous by thread: Re: Example needed for ERD2WEditToOneRelationshipWithFilter
  • Next by thread: Indexes on Postgresql using EOF Modeler
  • Index(es):
    • Date
    • Thread