Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > multiple Nested Repeaters View modes: 
User avatar
Member
Member
eagleag - 9/19/2010 3:32:25 PM
   
multiple Nested Repeaters
HI,
I have 2 repeaters webpart that are nested.
I followed this tutorial: http://www.kenticodeveloper.com/Matthew-Lee/December-2010/Nested-Repeaters.aspx

THese are the structure of doc types in tree:
- stateNumber
-cityNumber
-Numbers2Know
-Numbers2Know
-cityNumber
-Numbers2Know
-Numbers2Know
- stateNumber
-cityNumber


The page has 3 repeaters and this is the code:

ID: StateRepeater
Document types: Site.StateNumbers
Transformation: Site.StateNumbers.Default
Nested controls ID: CityRepeater

Transformation:
<br /><br /><%# Eval("state") %> -  
<cms:CMSRepeater
ID="CityRepeater"
runat="server"
ClassNames="Site.CityNumbers"
TransformationName="Site.CityNumbers.Default"
Path="./%"
SelectOnlyPublished="true" />



-----
ID: CityRepeater
Document types: Site.CityNumbers
Transformation: Site.CityNumbers.Default
Nested controls ID: NumbersRepeater

Transformation:

<%# Eval("city") %><br /><br />


<cms:CMSRepeater
ID="NumbersRepeater"
runat="server"
ClassNames="Site.Numbers2Know"
TransformationName="Site.Numbers2Know.Default"
Path="./%"
SelectOnlyPublished="true" />
<br />


-----
ID: NumbersRepeater
Transformation:

<table>
<tr>
<td>Name:</td>
<td><%# Eval("name") %></td>
</tr>
<tr>
<td>Site:</td>
<td><%# Eval("site") %></td>
</tr>
<tr>
<td>Phone:</td>
<td><%# Eval("phone") %></td>
</tr>
</table>

---

It's not showing the results the I thought it would. I know something small is missing or needs to be deleted but can't seem to find what.
ANY IDEAS?

This is what the resulat looks like:

Michigan - Detriot

Name: David Koll
Site: www.google.com
Phone: 555.555.5555
Name: Jaime Koll
Site: www.google.com
Phone: 444.555.3364
Name: Jojo wad
Site: www.google.com
Phone: 568.265.4631
Name: Howard Stern
Site: www.google.com
Phone: 659.267.4689
Name: Koll Steel
Site: www.google.com
Phone: 444.685.2356

Springfield

Name: David Koll
Site: www.google.com
Phone: 555.555.5555
Name: Jaime Koll
Site: www.google.com
Phone: 444.555.3364
Name: Jojo wad
Site: www.google.com
Phone: 568.265.4631
Name: Howard Stern
Site: www.google.com
Phone: 659.267.4689
Name: Koll Steel
Site: www.google.com
Phone: 444.685.2356



New York - Albany

Name: David Koll
Site: www.google.com
Phone: 555.555.5555
Name: Jaime Koll
Site: www.google.com
Phone: 444.555.3364
Name: Jojo wad
Site: www.google.com
Phone: 568.265.4631
Name: Howard Stern
Site: www.google.com
Phone: 659.267.4689
Name: Koll Steel
Site: www.google.com
Phone: 444.685.2356

Detriot

Name: David Koll
Site: www.google.com
Phone: 555.555.5555
Name: Jaime Koll
Site: www.google.com
Phone: 444.555.3364
Name: Jojo wad
Site: www.google.com
Phone: 568.265.4631

Springfield

Name: Howard Stern
Site: www.google.com
Phone: 659.267.4689

Albany

Name: Koll Steel
Site: www.google.com
Phone: 444.685.2356


THANKS :)




User avatar
Member
Member
eagleag - 9/20/2010 5:41:39 AM
   
SOLVED - RE:multiple Nested Repeaters
SOLVED will post it a bit later