Hi,

Am 6. Februar 2017 um 21:09:32, Theodore Petrosky (tedp...@yahoo.com) 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


Attachment: signature.asc
Description: Message signed with OpenPGP using AMPGpg

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to