You have a bit of a workflow going on in that requirement. - If property is null, provide selectable list of string values obtained from an arbitrary entity. - If property is not null allow its string value to be edited free from.
In addition you will need to handle: - Do you need to be able to supply a qualifier to restrict the list of values - Do you need the ability to clear the selected value, and pick a new one from the list As such, I don't believe there is a pre-baked D2W component that will do exactly what you want. So you are probably gonna have to create a custom one, the simplest route is documented in step 7 here: <http://wiki.objectstyle.org/confluence/display/WO/D2W+Rules+Reference+-+Cookbook+-+FAQ> Alternately, you could subclass ERDCustomComponent. On 2011-02-16, at 1:00 PM, Joe Little wrote: > I won't be setting a relationship to that Person type, but want to > fill in the values. I can't assume these will be set on creation > either, just if the properties are null (whether on creation of entity > or later when editing). My thinking is the modern approach is some > sort of ajax live search on the text field, where the search is made > against self.company.affiliates.fullName, but also where any of > company, affiliates, etc is potentially null at this point of the > search. > > My mind can grok how to setup something like this in the standard WO > component model, but all I have to work with are derived pages from > rules, and thus not sure how either the non-search approach I > originally laid out (trivial) or this ajax approach is doable in the > D2W world. > > > On Tue, Feb 15, 2011 at 11:50 PM, Mark Wardle <m...@wardle.org> wrote: >> Hi Joe. >> >> I may have interpreted this incorrectly but I'll try some suggestions. >> >> I don't think your issue is a D2W problem per se. >> >> I would consider this a modelling one - if a membership is linked to a >> user but you want some details copied in to the membership on >> creation, then can't you do that as part of the setUser() setter in >> your membership with a check not to overwrite if there's already a >> value for that (those) properties. >> >> Mark >> >> -- >> Dr. Mark Wardle >> Specialist registrar, Neurology >> (Sent from my mobile) >> >> >> On 16 Feb 2011, at 05:49, Joe Little <jmlit...@gmail.com> wrote: >> >>> Ok, I'll try to give a more specific example. >>> >>> I have a Membership entity with such properties as beginDate, endDate, >>> company (relationship) and primaryContactName and primaryContactEmail. >>> The end users want to select these last two values from a pull down >>> list of known company.Affiliates, where Affiliates are people with >>> name, email, etc. >>> >>> However, affliates move around so they want to store those values >>> relative to one this membership whenever its created, so five years >>> from now, those values stick. A slightly better example is Projects >>> who have among other thing a String property of VisitingScholar or >>> Fellow, which is just the name of an Affiliate again. In the same way, >>> they want this name to stick with project even if that Affiliate >>> changes companies or disappears altogether. I've done this before, but >>> have no clue of how to do this with D2W. I want one to be able to set >>> the value when say primaryContactName == null via a pull down of >>> current company.Affiliates if company itself is != null, and then >>> later, allow for just standard text field manipulation. >>> >>> >>> On Tue, Feb 15, 2011 at 9:17 PM, David Holt <programming...@me.com> wrote: >>>> I'd love to help but this makes no sense to me at all. >>>> >>>> Can you be more specific? What are your entities? >>>> >>>> >>>> On 2011-02-15, at 8:49 PM, Joe Little <jmlit...@gmail.com> wrote: >>>> >>>>> I want the certain fields (String) to take the values from a pull down >>>>> from another Entity, inserting Entity.name or Entity.type for the >>>>> string on selection. I don't want a relation since the choices are to >>>>> be archival and not reflect what Entity.type is presently, but what it >>>>> was at time of creation/edit. I was wondering how this is normally >>>>> done with D2W rules. Also, I was hoping to do this on initial setting >>>>> of the property only, but allow free-form editing when not null. I'm >>>>> presuming pull downs like this are par for the coarse, but haven't >>>>> found ready examples to point me to the right d2w keys. >>>>> _______________________________________________ >>>>> Do not post admin requests to the list. They will be ignored. >>>>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>>>> Help/Unsubscribe/Update your Subscription: >>>>> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com >>>>> >>>>> This email sent to programming...@mac.com >>>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/mark%40wardle.org >>> >>> This email sent to m...@wardle.org >> > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com > > This email sent to dleber_wo...@codeferous.com > ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com