8 Replies Latest reply on Sep 22, 2009 10:06 AM by _Natasha_

    how to make the variable working in dataField?

    wendy888

      in XML file, I have

           <list>

             <event_id>EMB10</event_id>

            <col1EMB10>ALL</col1EMB10>
            <col2EMB10>0</col2EMB10>

            <col1EMB10>HON</col1EMB10>
            <col2EMB10>1</col2EMB10>

         </list>

         <list>

             <event_id>EMB11</event_id>

             <col1EMB10>HON</col1EMB10>
             <col2EMB10>1</col2EMB10>

         </list>


      I want the datagrid to display above value.

      When the ComboBox select event_id EMB10, the dataField should be like below
        dataField="col1EMB10"
        dataField="col2EMB10"

       

      I did this, but they are not working:

       

      dataField="

      col1||''||{cboActivities.selectedItem.event_id}||' "

      dataField="col2||''||{cboActivities.selectedItem.event_id}||' "

       

       

       

      Pleas help!
      Thank you in advance!