Re: WORepetition in Columns instead of Rows
Re: WORepetition in Columns instead of Rows
- Subject: Re: WORepetition in Columns instead of Rows
- From: LD <email@hidden>
- Date: Wed, 24 Aug 2005 12:48:05 +1000
Hi there,
On 24/08/2005, at 12:28 PM, Drew Thoeni wrote:
I'm trying to apply the WORep to a series of columns (each record
is listed veritcally in a column instead of horizontally in rows).
A good example of this is the "compare" web pages that allow a user
to select two, say, cars, and compare their features side-by-side.
Data labels on left, data records running vertical.
Any suggestions on how to get WORep to do this?
Besides Ray's suggestion, you could also stick with the row-based
repetition and for each row utilise items.valueForKeyPath
RowRepetition: WORepetition {
list = comparisonKeys;
item = aKey;
}
ColumnRepetition: WORepetition {
list = rowAttributes;
item = anAttribute;
}
ACell: WOString {
value = anAttribute;
}
-- component.java --
NSArray comparisonKeys; // attributes to compare
public String aKey;
public String anAttribute;
public NSArray rowAttributes() {
return ( NSArray )objectsToCompare.valueForKey( aKey );
}
with regards,
--
LD
_______________________________________________
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