Spark View Engine Table Help

Discussion in 'General troubleshooting' started by balilk4u, Nov 25, 2010.

  1. Hi Guys,

    I'm very new to this MVC so just trying to get my head around it.

    I already have a table in my view that gets data from the model (i think). Now the problem is, I want to add another column which gets data from another model.

    Below is my table code..

    <table width="100%" cellpadding="0" cellspacing="0" class="user-management-tbl" id="reportTable">
    <thead>
    <tr class="user-management-tbl-col-head">
    <th>
    Next Ex Date
    </th>
    <th>
    Dividend Currency
    </th>
    <th>
    Effective Date
    </th>
    </tr>
    </thead>
    <tbody>
    <tr class='' each="var portfolio in Model">
    <td class="">
    <div class="data NextExDate">$!{portfolio.NextExDate}</div>
    </td>
    <td class="">
    <div class="data DividendCurrency">$!{portfolio.DividendCurrent}</div>
    </td>
    <tr class='' each="var circular in Model">
    <td class="">
    <div class="data EffectiveDate">$!{circular.Effectivedate}
    </div>
    </td>

    </tr>
    </tbody>
    </table>

    The lines highlighted in bold is what I want to add to the table. I get an error saying "EffectiveDate" is not part of portfolio.

    Basically I am trying to get information from two models in one table.

    Any help will be much appreciated.

    Thanks.
     

Share This Page