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



Nov 1, 2011, 2:35 PM
37 Posts
topic has been resolvedResolved

Change dinamically Content...dijit.TooltipDialog and partialrefresh

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
I have realized this example:http://dojo-sandbox.net/public/fa36d/7
 
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?
 
This is my custom component that implement the ToolTip
 
|?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| 
 
Nov 2, 2011, 1:07 PM
37 Posts
Re: Change dinamically Content...dijit.TooltipDialog and partialrefresh
 I have resolved
Work very well now!! 

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