Share

SmartTemplate

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

loop within a loop

You are viewing a single message from this topic. View all messages.

  1. 2008-08-12 20:10:34 UTC
    I am attempting to loop through an array that is already part of a loop.. eg loop within a loop. When I do a print out to see what is actually being sent to the templates from the data collection, everything appears accordingly, however I cannot execute the inside BEGIN END statement. The data just isn't there.

    [code]
    <!-- IF REQUEST_UPDATES -->
    <table summary="Documentation request updates">
    <tr>
    <th>User</th>
    <th>Date</th>
    <th>Changes</th>
    </tr>
    <!-- BEGIN REQUEST_UPDATES -->
    <tr>
    <td>{U_FNAME} {U_LNAME}</td>
    <td>{F_UPDATE_DT}</td>
    <td>
    <ul class="update_changes">
    [b]<!-- BEGIN F_UPDATE_CHANGE -->
    <li>... {F_UPDATE_CHANGE}</li>
    <!-- END F_UPDATE_CHANGE -->[/b]
    </ul>
    </td>
    </tr>
    <!-- END REQUEST_UPDATES -->
    </table>
    <!-- ENDIF -->
    [/code]

    the three dots in the inner loop is simply just checking whether the variable is there, that would be removed once working correctly. I have troubleshooted using these syntax changes on the inner loop

    [list]top.F_UPDATE_CHANGE[/list]
    [list]top.REQUEST_UPDATES.F_UPDATE_CHANGE[/list]
    [list]parent.F_UPDATE_CHANGE[/list]
    [list]REQUEST_UPDATES.F_UPDATE_CHANGE[/list]

    Any suggestions would be appreciated. Thanks
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.