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?