Welcome to the IBM Collaboration Solutions Community IQJam.
UsernamePassword
Reset Password | Register
   
Home | Leader Board | Tags | Help
From CSJS refresh a panel dijit.TooltipDialog 

I would develop a action button in all my View like facebook....

You can see the example in this link

When you click on the "gear" image you see a dijit.TooltipDialog connected to my Panel Xpages

I would change the content of my panel if I click on document with a FORMA or FORMB ..etc...

so that I have created in the last column SSJS code that call a  CSJS function :
 

function OpenDialogToolTip(obj, unid, targetPanel, form)

Now I need in the JS Client to refresh my panel dinamically and I use this:

function OpenDialogToolTip(obj, unid,idpanel,formname){
    XSP.partialRefreshGet(idpanel, {
                  params: {
                'IdDoc': unid,
                'FormName':formname
                  },onComplete: function () {
                      dijit.popup.open({
                          popup: dijit.byId(idpanel),
                          around: dojo.byId(obj)
                      });
                      var dlg=dijit.byId(idpanel);
                      dlg.focus();
     
                 }
            });
   
}

 

But I have problem after the first click for rendering the dijit.TooltipDialog....because the dijit component is Damaged!

The solution is to capture the response of Ajax call partialRefreshGet and write the response with the native dijit function of dijit.TooltipDialog setContent() but I don't know how

 

Can someone help me with suggestion?

Domino Development / XPages
daniele grillo - 4 months ago |  |  | Viewed 133 times

There is 1 answer

0votes

Resolved:

The really problem is the target node of dijit widjet.

Now work weel!



daniele grillo - 4 months ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community