Hi Guys,

I hope I can get some help over here...

My test codes below and I can change the background color of the view. I like to create an effect of highlighting the
the row as the mouse passes by.

current error is null setters on #rowOfData bgcolor

if I remove the id attr i got the error that the rowOfData is undefined.

Thanks in advance.

Richard

---------------------------

<canvas height="600" width="500">
  <dataset name="myData" src=""/>

    <tabs x="10">
        <tabpane selected="true"  >List Of Accounts
            <view name="accountsTable">
                <simplelayout axis="y" />
                <view name="rowOfData" bgcolor="blue" id="rowOfData">
                        <datapath
                            xpath="myData:/accounts[1]/person"
                            sortpath="firstName/text()"
                        />
                    <simplelayout axis="x" />
                    <text datapath="firstName/text()" />
                    <text datapath="lastName/text()" />
                    <text datapath="@show" />
                        <method event="onmouseover">
                            rowOfData.setAttribute("bgcolor","blue")
                        </method>
                        <method event="onmouseout">
                            rowOfData.setAttribute("bgcolor","white")
                        </method>
              </view>
            </view>
    </tabpane>
    <tabpane visible="false">List Of Studies</tabpane>
    </tabs>

</canvas>

Reply via email to