This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 7, 2013, 12:54 PM
11 Posts
topic has been resolvedResolved

Extension library Dojo Tab Container events

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: Extension library Dojo Tab Container events
  • Replies: 2
Hi All,
 
I am having trouble with extension library Dojo Tab Container (djTabContainercontrol) with events. 
Currently I am designing one application where I have an extension library Dojo Tab Container and I want to execute some js when I click on a tab's title bar.
 
I can't seem to figure out how to add an event to that. 

Please suggest. 
 
 
 
Regards, 
Yogesh Kashid 
May 8, 2013, 2:53 PM
13 Posts
Re: Extension library Dojo Tab Container events
 how about hooking into djTabPane.onFocus?


Johnny 
May 9, 2013, 6:13 AM
11 Posts
Re: Extension library Dojo Tab Container events
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)

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal