Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Nickel Contributor
Posts: 47
Registered: ‎05-25-2011

Re: Invoke a smart part as a dialog, via JavaScript

You can use the following call:

 

Sage.Utility.loadDetailsDialog({
    entityType: 'Sage.Entity.Interfaces.IContact, Sage.Entity.Interfaces',
    smartPart: 'MySmartPartId',
    dialogTitle: 'My Dialog',
    isCentered: true
});

 

 

The SLX 8.x API call to display dialogs from javascript seems to be more limited to the one that used to exist in 7.5.x though. At least when we investigated on this a while ago (SLX 8.0) parameters for the dialog where not supported, for example.

 

Regards.

Copper Super Contributor
Posts: 99
Registered: ‎07-04-2009

Re: Invoke a smart part as a dialog, via JavaScript

Thanks works a charm.

 

Cheers


Cheers
Chris Grant
Plus Consulting
Highlighted
Nickel Contributor
Posts: 47
Registered: ‎05-25-2011

Re: Invoke a smart part as a dialog, via JavaScript

I'm glad it helped you. Feel free to add kudos!