3 Replies Latest reply on Oct 23, 2003 5:39 PM by 291243

    How create table with variable number of columns?

    391584
      I am creating table data in Java. Number of columns is variable. How I can write <table> in UIX.

      Here is code of one of my unsuccessful attempt:
      ...
      <provider>

      <!- get table data like DataObjectList-->
      <data name="ReportTableData">
      <method class="app.ReportTableData" method="getTableData"/>
      </data>

      <!- get names of columns like DataObjectList-->
      <data name="ColumnNames">
      <method class="app.ReportTableData" method="getColumnNames"/>
      </data>

      </provider>
      ...
      <table data:tableData="@ReportTableData">
      <contents data:childData="@ColumnNames">
      <text data:text="nameColumn"/>
      </contents>
      </table>
      ...

      I hoped that I can get cell data by key, where key is name of column. But cells of table contain only names of columns.

      Please help me, where I mistaken?
      Thank you.