Thanks for your reply,
Actually I am designing application where my back end is DB2 and front end is XPages. I have requirement where my data needs to get refreshed when I click on the Tabs. So I have to use SSJS.
I tried custom attribute onShow of djTabPane and its working. By using this custom attribute I clicks the button inside of that TabPane which partially refreshes my panel inside djTabPane.
You can see below code (Not the all but just for your reference):
<xe:djTabContainer id="djTabContainer1" title="LEGAL SCRUTINY REPORT"
tabPosition="top" style="color:rgb(183,0,0);font-weight:bold;font-size:10pt;width:100%" doLayout="false">
<xe:djTabPane id="djTabPane3"
title="PART III (Flow Of Title Of Property - (History Of Title))"
onShow="document.getElementById('#{id:ClickMe3}').click();">
<xp:panel id="panelClickMe3">
<xp:inputTextarea id="FLOW_OF_PRO_REMs" style="display:none">
</xp:inputTextarea>
<xp:inputTextarea id="FLOW_OF_PRO_REMsBy" style="display:none">
</xp:inputTextarea>
<xp:button value="ClickMe" id="ClickMe3" style="display:none">
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="panelClickMe3" onComplete="stoploading();">
<xp:this.script><![CDATA[
loading();]]></xp:this.script>
<xp:this.action><![CDATA[#{javascript:frmDocLSRReport.getDocument();
var agentName:String = "agtProcessLSR";
var agent:NotesAgent = database.getAgent(agentName);
if (agent != null)
{
if(!context.getUrlParameter("LSR_SR_NO"))
{
}
else
{
frmDocLSRReport.replaceItemValue("ActionUsed","TAB3")
agent.runWithDocumentContext(frmDocLSRReport.getDocument(true));
getComponent("FLOW_OF_PRO_REMs").setValue(frmDocLSRReport.getDocument().getItemValue("FLOW_OF_PRO_REMs"))
getComponent("FLOW_OF_PRO_REMsBy").setValue(frmDocLSRReport.getDocument().getItemValue("FLOW_OF_PRO_REMsBy"))
}
}
else
{
print ("Can not find AFTERPAGELOAD Agent");
}
}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
:
:
:
:
:
:
:
</xp:panel>
</xe:djTabPane>
</xe:djTabContainer
(http://stackoverflow.com/questions/7526052/dojo-click-on-the-tab)