Re: D2W Query Relationship with multiple values
Re: D2W Query Relationship with multiple values
- Subject: Re: D2W Query Relationship with multiple values
- From: David Avendasora <email@hidden>
- Date: Thu, 25 Nov 2010 09:52:33 -0500
Hi Ramsey,
Happy Thanksgiving!
I've tried every combination of parenthesis on the displayPropertyKeys, but I always get:
Java.lang.IllegalArgumentException: While trying to invoke the set method "public void er.directtoweb.components.repetitions.ERDAttributeRepetition.setPropertyKey(java.lang.String)" on an object of type er.modern.directtoweb.components.repetitions.ERMDQueryPageRepetition we received an argument of type com.webobjects.foundation.NSMutableArray. This often happens if you forget to use a formatter.
Which says to me that displayPropertyKeys isn't the place to do this, it apparently expects only a string and not an array.
I'm heading off for the holiday and will get back to this tomorrow.
Thanks!
Dave
On Nov 25, 2010, at 9:25 AM, Ramsey Lee Gurley wrote:
> I think the ERD2W has a sectioned query repetition so you could do something like
>
> displayPropertyKeys = ("(person)","firstName", "lastName","(passport)","passport.country","passport.idNumber")
>
> or maybe
>
> sectionsContents =((person, firstname, lastname), (passport, passport.country, passport.idNumber))
>
> Ramsey
>
> On Nov 25, 2010, at 8:44 AM, David Avendasora wrote:
>
>> Hi D2Wers,
>>
>> I the following entity relationship:
>>
>> Person -> Passport
>>
>> I have multiple attributes of Passport that I want to search on when searching for a Person.
>>
>> Some are text fields, some are drop-downs.
>>
>> I'd like to be able to have them all be under one <label> tag that displays "Passport" and then has nested <labels> and <divs> that are for each of the Passport Attributes.
>>
>> I don't think that D2W currently supports this, but maybe I'm wrong. Am I missing something or looking at it from the wrong way?
>>
>> Here's the basic structure I'm looking for:
>>
>> <label>Passport</label>
>> <div>
>> <label>First Name</label>
>> <div><TextField></div>
>> <label>Last Name</label>
>> <div><TextField></div>
>> <label>Country</label>
>> <div><PopUp></div>
>> </div>
>>
>> Any tips or pointers would be greatly appreciated!
>>
>> Dave
>
> _______________________________________________
> 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