• 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: excelgeneration problem :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: excelgeneration problem :(


  • Subject: Re: excelgeneration problem :(
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 08 Feb 2017 10:37:08 -0500

thanks, I finally figured out it was my bad. I put in a bunch of log statements and I was just being stupid.

Nice to see someone on the list!!


On Feb 8, 2017, at 10:34 AM, Ralf Schuchardt <email@hidden> wrote:

Hi,

Am 6. Februar 2017 um 21:09:32, Theodore Petrosky (email@hidden) schrieb:
I hope someone can help


This top WO html works! Specifically, the second repetition in with the list array that comes from the outer loop!

<table name="Sheet 1" border="1" >
<tr>
      <th cellType = "CELL_TYPE_STRING" height = "24" class="header" width = "25">First Name</th>
      <th cellType = "CELL_TYPE_STRING" class="header" width = "25">Last Name</th>
      <th cellType = "CELL_TYPE_STRING" class="header" width = "25">Date Created</th>
</tr>
<wo:WORepetition list="$thePersonArray" item="$aPerson">
<tr>
        <td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$aPerson.firstName" /></td>
<td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$aPerson.lastName" /></td>
<td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$aPerson.creationDate" /></td>

<wo:loop list="$aPerson.personInstruments" item="$api">
     <td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$api.instrument.instrumentName" /></td>
</wo:loop>
</tr>
</wo:WORepetition>
</table>


This does not! it claims that $anEvent.eventPersons is empty! It correctly creates the proper number of sheets, the header are there, but the inside repetition is blank! Maybe I am just doing it wrong:


<wo:WORepetition list="$theEvents" item="$anEvent">
<webobject name="SheetsForDate">
<tr>
      <th cellType = "CELL_TYPE_STRING" height = "24" class="header" width = "25">First Name</th>
      <th cellType = "CELL_TYPE_STRING" class="header" width = "25">Last Name</th>
      <th cellType = "CELL_TYPE_STRING" class="header" width = "25">Salary</th>
      <th cellType = "CELL_TYPE_STRING" class="header" width = "25"><wo:WOString value = "$anEvent.show.showName"/></th>
</tr>
<wo:WORepetition list="$anEvent.eventPersons" item="$ePerson">
<tr>
      <td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$ePerson.person.firstName" /></td>
      <td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$ePerson.person.lastName" /></td>
      <td cellType = "CELL_TYPE_STRING" height = "20" width = "25"><wo:WOString value = "$ePerson.person.salary" /></td>
</tr>
</wo:WORepetition>
</webobject>
</wo:WORepetition>


SheetsForDate: WOGenericContainer {
elementName = "table";
name = anEvent.theEventDate;
border = 1;
}

I don’t believe you can mix inline and WOD styles in a component. You may try inlining SheetsForDate and emptying the WOD file.

Ralf


 _______________________________________________
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: 
 >excelgeneration problem :( (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: wiki information
  • Next by Date: Re: excelgeneration problem :(
  • Previous by thread: excelgeneration problem :(
  • Next by thread: Re: excelgeneration problem :(
  • Index(es):
    • Date
    • Thread