when I click on the "gear icon" I call a JsClient function (I use
the last column of my View component computed with SSJS code for this) :
function OpenDialogToolTip(obj, idpanel,unid,formname)
where:
obj = node where I attach dijit.DialogToolTip
idpanel = id client of my Panel in Xpages (for example: view:_id1:cclayout:_id2:viewPanel1)
unid= string with the row UniversalID of my document
formname= name of the form of my document
So I write my function in JsClient:
But...Only the first time work well because after the first refresh, the dijit component is Broke...Have you any suggest for my scenario?
|?xml version="1.0" encoding="UTF-8"?|
|xp:view xmlns:xp="http://www.ibm.com/xsp/core" dojoParseOnLoad="true"
dojoTheme="true" xmlns:xe="http://www.ibm.com/xsp/coreex"|
|xp:this.resources|
|xp:dojoModule name="dijit.TooltipDialog"||/xp:dojoModule|
|/xp:this.resources|
|xp:div id="dialogToolTip" dojoType="dijit.TooltipDialog" style="display:none"|
|xp:panel id="contentToolTip"|
|xp:this.data|
|xp:dominoDocument action="openDocument"
documentId="#{javascript:compositeData.unid}"
formName="#{javascript:compositeData.form}" var="document1"|
|/xp:dominoDocument|
|/xp:this.data|
|ul|
|li|
|xp:link escape="true" text="Create contact"
id="link1"|
|/xp:link|
|/li|
|li|
|xp:link escape="true" text="Create ring"
id="link2"|
|/xp:link|
|/li|
|li|
|xp:link escape="true" text="Crate other" id="link3"|
|/xp:link|
|/li|
|li|
|xp:link escape="true" text="Outgoing mail"
id="link4"|
|/xp:link|
|/li|
|li|
|xp:link escape="true" text="etc..." id="link5"|
|/xp:link|
|/li|
|li|
|xp:link escape="true" text="other" id="link6"|
|/xp:link|
|/li|
|/ul|
|/xp:panel|
|/xp:div|
|xp:scriptBlock id="scriptBlock1" rendered="true"|
|xp:this.value||![CDATA[dojo.ready(function(){
var dialogWidget=dijit.byId("#{id:dialogToolTip}")
dojo.connect(dialogWidget,'onBlur',function(){
dijit.popup.close(dialogWidget);
console.log("clicca OnBlur");
//alert("pippo")
});
})]]||/xp:this.value|
|/xp:scriptBlock|
|/xp:view|