06-03-2009 09:32 AM
I am able to load a custom smart part as a dialog, using the following server side code.
DialogService.SetSpecs(0, 0, 200, 600, "SmartPartDialogTest");
DialogService.ShowDialog();
Is there any equivalent to doing this via JavaScript?
The 7.5p1 Quick Lookup appears to launch in a dialog. The following is used to launch such dialog via javascript.
mgr = new Sage.GroupLookupManager();Sage.Services.addService("GroupLookupManager", mgr);
mgr.showLookup();
06-17-2009 11:56 AM - edited 06-17-2009 12:00 PM
The Dialog Workspace has a client-side javascript API, as follows:
The dialog workspace supports this directly:
/* simple */
DialogWorkspace.show('InsertNote');
/* with additional parameters */
DialogWorkspace.show({
id: 'InsertNote',
width: '500',
height: '500'
});
/* full parameter object */
{
id: 'SmartPartId',
width: '500',
height: '500',
top: '200',
left: '200',
entityType: 'type, assembly',
entityId: 'DEMO12345678',
caption: 'My Title',
keyNames: 'key1,key2',
parameters: {
paramA: 'one',
paramB: 'two'
}
}
This will be included in our new 7.5.2 documentation.
John Perona
Director, Infor CRM DevelopmentInfor CRM
07-16-2009 02:02 PM
Hey John,
Thanks, it worked great. Just one question:
I noticed that the top and left parameters are being ignored. The dialog is always opening in the center. Any ideas?
Thanks!
~ Henry
07-20-2009 12:02 PM
That's a defect and it's been logged for 7.5.2. Defect# 1-69861
John Perona
Director, Infor CRM DevelopmentInfor CRM
12-02-2009 09:37 AM
@jperona wrote:The Dialog Workspace has a client-side javascript API, as follows:
The dialog workspace supports this directly:
/* simple */
DialogWorkspace.show('InsertNote');
/* with additional parameters */
DialogWorkspace.show({
id: 'InsertNote',
width: '500',
height: '500'
});
/* full parameter object */
{
id: 'SmartPartId',
width: '500',
height: '500',
top: '200',
left: '200',
entityType: 'type, assembly',
entityId: 'DEMO12345678',
caption: 'My Title',
keyNames: 'key1,key2',
parameters: {
paramA: 'one',
paramB: 'two'
}
}
This will be included in our new 7.5.2 documentation.
Message Edited by jperona on 06-17-2009 12:00 PM
Did this make it in 7.5.2? I forgot to check in the RC... until today when I actually need some documentation on the client-side services...
The DialogWorkspace is not too bad but manipulating the group list is not trivial - would be nice to have some doc on how to do the basic tasks.
12-10-2009 09:41 AM - edited 12-10-2009 12:00 PM
02-18-2010 07:20 AM
Hi,
Does anybody know if it is possible to resize a dialog whilst you are in the dialog (by either server side or client side)? I know when you call the dialog you can use SetSpecs and give it the int values for height and width, but calling that from the dialog itself does not work (obviously too late in the dialog lifecycle).
This may seem like a bizarre thing to want to do, but my scenario is complicated due to the fact you can only have one dialog window open in the dialog workspace.
I have two divs on a dialog, and I am showing and hiding them according to various selections (I would ideally like to open and close different dialog windows but this didnt work at all!). When I show Div A I want the dialog window to shrink accordingly and look the correct size. Vice versa, when I show Div B I want to expand the dialog window.
Any help greatly appreciated!
Thanks,
Nick
03-23-2011 09:16 AM
Nick, Did you ever figure out how to resize a dialog while you are already in it? Thanks
12-10-2012 07:40 AM
Hi John,
How can we open smartparts as Dialogs in SalesLogix 8 from the client side?
Regards,
Marcos
08-11-2014 02:11 AM
As Marco said. Does anyone know how to open a smartpart via javascript in V8.x?