• 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: table name bound to item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: table name bound to item?


  • Subject: Re: table name bound to item?
  • From: Farrukh Ijaz <email@hidden>
  • Date: Wed, 21 Jul 2010 21:42:58 +0300

Instead of <table name="$theUser.username">, use <wo:WOGenericElement elementName="table" name="$theUser.username">

Farrukh

Sent from my iPad

On 21-Jul-2010, at 9:25 PM, Theodore Petrosky <email@hidden> wrote:

> I am playing with the excel export of data and need some help.
>
> I have a WORepetition around a table... that's correct I want many tables with name = "$theUser.username" (the item object for the repetition.)
>
> It looks like <table name = "$theUser.username"> will not accept the 'item' object. I get an error:
>
> Error:	 java.lang.IllegalArgumentException: The workbook already contains a sheet of this name
> Reason:	 The workbook already contains a sheet of this name
>
> I guess that is the question. Can I use the item from the repetition in the table name binding?
>
> <webobject name = "aWrapper">
>  <p>
>    <webobject name = "BackLink">Back</webobject>
>  </p>
>  <wo:loop list = "$userList" item = "$theUser">
>    <table name = "$theUser.username">
>    <tr>
>    <th cellType = "CELL_TYPE_STRING"><wo:WOString value = "$theUser.username"/></th><th></th>
>    </tr>
>      <tr>
>        <td cellType = "CELL_TYPE_STRING">some</td>
>        <td cellType = "CELL_TYPE_STRING">info</td>
>      </tr>
>    </table>
>  </wo:loop>
> </webobject>
>
>
>
> aWrapper : EGWrapper {
> 	enabled = enabled;
> 	styles = application.data.Styles; //VALID
> 	fonts = application.data.Fonts; //VALID
> }
>
>
> BackLink: WOHyperlink {
> 	pageName = "Main";
> }
>
>
>
>
> Ted
>
>
>
>
> _______________________________________________
> 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

  • Follow-Ups:
    • Re: table name bound to item?
      • From: Theodore Petrosky <email@hidden>
References: 
 >table name bound to item? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: table name bound to item?
  • Next by Date: Re: table name bound to item?
  • Previous by thread: table name bound to item?
  • Next by thread: Re: table name bound to item?
  • Index(es):
    • Date
    • Thread