• 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: WORepetition in Columns instead of Rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WORepetition in Columns instead of Rows


  • Subject: Re: WORepetition in Columns instead of Rows
  • From: Nathan Walker <email@hidden>
  • Date: Wed, 24 Aug 2005 00:05:04 -0400

Use Project Wonder, insert a custom component and choose ERXTable, it allows you to specify exactly how many columns you will allow the table to expand out to and when that maximum is reached then and only then will it go to the next row and again repeat through <td> columns to the max that you specified again.

It's great !!


On Aug 23, 2005, at 10:48 PM, LD wrote:

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:
40visionworxpro.com


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: 
 >WORepetition in Columns instead of Rows (From: Drew Thoeni <email@hidden>)
 >Re: WORepetition in Columns instead of Rows (From: LD <email@hidden>)

  • Prev by Date: Re: WORepetition in Columns instead of Rows
  • Next by Date: WOComponent api inheritance?
  • Previous by thread: Re: WORepetition in Columns instead of Rows
  • Next by thread: AW: WORepetition in Columns instead of Rows
  • Index(es):
    • Date
    • Thread