I am working on a zen page in 2013.1.1 (Build 501 + Adhoc 14230) 25-JUL-2014 17:18:08.43 on OpenVMS/IA64 V8.4 (Itanium) .
I have a tablePane displaying data from a fairly static table. However, from time to time I do have to update the data. The data is populated by a ClassMethod, the data itself is pulled from mulitple namespaces via ECP and from a few globals. So it takes a while for the data to update. While that is happening, the data is incomplete, so I want to hide the tablePane and show an HTML section that tells the user that the data is being updated and to come back later. But when I try to do this, nothing shows. I am hoping someone can help me.
Oh, there are three tabs in a tabGroup.
Here is an example of my code for one tab:
<tab caption="SRT Namespaces" onshow="zenPage.showSelectedTab('SRT');">
<tablePane id="SRTinterfaceTable"
sql="SELECT OrigSite,ReferralNWID,ResulterProcess,ReferralPSCDexist,ReferralDestID,
ReferralClientNo,ReferralClientExist,ReferralAutodial,ReturnPSCDexist,
ReturnDestID,OEProcess,hasDatabase
From UT_XITE.Interfaces
WHERE SystemType = 'SRT'
Order By OrigSite,ReferralNWID"
showRowNumbers="false"
showRowSelector="false"
>
<column colName="ReferralNWID" header="NWID"/>
<column colName="ResulterProcess" header="Resulter"/>
<column colName="ReferralPSCDexist" header="PSCD?" OnDrawCell="DrawYesNo"/>
<column colName="ReferralDestID" header="Dest"/>
<column colName="ReferralClientNo" header="ClientNo"/>
<column colName="ReferralClientExist" header="ClientDef?" OnDrawCell="DrawYesNo"/>
<column colName="ReferralAutodial" header="Autodial"/>
<column colName="ReturnPSCDexist" header="PSCD?" OnDrawCell="DrawYesNo"/>
<column colName="ReturnDestID" header="Dest"/>
<column colName="OEProcess" header="OEP"/>
<column colName="hasDatabase" header="Database?" OnDrawCell="DrawYesNo"/>
</tablePane>
<html id="SRTupdatingMessage"><H1> The data is currently being updated. Please check back later</H1></html>
</tab>
Method %OnAfterCreatePage() As %Status
{
If $Get(^UT.XITE.InterfacesUpdate)=1 {
Set %page.%GetComponentById("SRTupdatingMessage").visible="true"
Set %page.%GetComponentById("VALupdatingMessage").visible="true"
Set %page.%GetComponentById("UPGupdatingMessage").visible="true"
Set %page.%GetComponentById("SRTinterfaceTable").visible="false"
Set %page.%GetComponentById("VALinterfaceTable").visible="false"
Set %page.%GetComponentById("UPGinterfaceTable").visible="false"
} Else {
Set %page.%GetComponentById("SRTupdatingMessage").visible="false"
Set %page.%GetComponentById("VALupdatingMessage").visible="false"
Set %page.%GetComponentById("UPGupdatingMessage").visible="false"
Set %page.%GetComponentById("SRTinterfaceTable").visible="true"
Set %page.%GetComponentById("VALinterfaceTable").visible="true"
Set %page.%GetComponentById("UPGinterfaceTable").visible="true"
}
Quit $$$OK
}
The utility obviously sets ^UT.XITE.InterfacesUpdate to '1' when it starts collecting the data and to '0' when it finishes.