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 protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
