We need to look at your full code, since there is nothing suspicious in the specified piece of code. I made a small example and there is no highlighting of the last line:
Source code
Class dс.test Extends %ZEN.Component.page
{
XData Contents [ XMLNamespace = "http://www.intersystems.com/zen" ]
{
<page xmlns="http://www.intersystems.com/zen">
<tablePane
width="1200px"
id="ItemsTable"
OnCreateResultSet="GetLog"
maxRows="20000"
pageSize="20"
showRowNumbers="false"
showRowSelector="false"
showZebra="false"
valueColumn="ID"
nowrap="false"
showValueInTooltip="true"
showFilters="true"
autoExecute="true"
initialExecute="false"
useSnapshot="true"
onselectrow="">
<parameter />
<parameter />
<parameter />
<parameter />
<parameter />
<parameter />
<parameter />
<column colName="Sit" header="Sit name" width="50%" style="text-align:left;" filterType="text" filterOp="[" />
<column colName="Label" header="Label" width="10%" filterType="text" filterOp="["/>
<column colName="userno" header="Packed By" width="10%" filterType="text" filterOp="["/>
<column colName="LogedDate" header="Packed Date" width="10%" />
<column colName="LogedTime" header="Packed Time" width="10%" />
<column colName="TimeSpent" header="Spent Time" width="10%" style="text-align:left;"/>
</tablePane>
<tableNavigatorBar tablePaneId="ItemsTable"/>
</page>
}
Method GetLog(
ByRef pSC,
ByRef tParams)
{
s sql = 5
s sql(1)="SELECT 0 ID,'Sit' Sit,'Label' Label,'userno' userno,current_date LogedDate,current_date LogedTime,null TimeSpent"
s sql(2)="union"
s sql(3)="SELECT 1,'Sit','Label','userno',current_date,current_date,null"
s sql(4)="union"
s sql(5)="SELECT 2,'Sit','Label','userno',current_date,current_date,null"
s st=##class(%SQL.Statement).%New()
s st.%SelectMode=2
q ##class(%SQL.Statement).%ExecDirect(st,.sql)
}
}- Log in to post comments