I can open a dialog using CSJS reliably, using:
XSP.openDialog('#{id:dlgNextOwner}');
In SSJS, the following doesn't trigger anything at all (no errors; nothing!):
getComponent('dlgNextOwner').show();
So, I'm trying view.postScript to open the dialog:
view.postScript("XSP.openDialog('#{id:dlgNextOwner}');");
I get the following error using view.postScript:
TypeError: dlg is undefined
undefineddojo._scopeArgs = [undefined];
I have one form as a resource for the entire XPage, which includes the dialog in a custom control. In the dialog, there is an "OK" button, which uses SSJS to get values from the dialog and update the parent document.
Any ideas? If you need more information, please let me know.
Thanks, in advance!
Steve in NYC
"It hurts to be on the cutting edge."