VMware {code} Community
kumartade
Enthusiast
Enthusiast
Jump to solution

Is it possible to pass some custom data in openModalDialog API?

Hi,

Can someone tell me how we could pass custom data for openModalDialog(title, url, width, height, objectId)?

As I need to maintain my plugin compatible with vCenter 6.5U1 GA.

I could not use the new set of API's.

Thanks,

Kumar

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
Denis_Chorbadzh
VMware Employee
VMware Employee
Jump to solution

Hi Kumar,

 

It is not possible to pass custom data using the openModalDialog() API.

However, since you are providing a url for your view, you can use it to pass custom data.

Have in mind that this approach is not secure and thus not recommended. This is why we have implemented such functionality in the new set of APIs.

 

Best Regards,

Denis

View solution in original post

Reply
0 Kudos
2 Replies
Denis_Chorbadzh
VMware Employee
VMware Employee
Jump to solution

Hi Kumar,

 

It is not possible to pass custom data using the openModalDialog() API.

However, since you are providing a url for your view, you can use it to pass custom data.

Have in mind that this approach is not secure and thus not recommended. This is why we have implemented such functionality in the new set of APIs.

 

Best Regards,

Denis

Reply
0 Kudos
eink
Contributor
Contributor
Jump to solution

With the release of the vSphere Client SDK in vSphere 6.7, the new call (with custom data available) is described here:

https://code.vmware.com/doc/preview?id=6612#/doc/GUID-C15C1A31-7E1E-4C96-85A8-7CF6E66398E7.html

Reply
0 Kudos