Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all 2218 articles
Browse latest View live

vsphere web client 6.7's plugin can not load the .properties resource file

$
0
0

Before 6.7, we can place the properties file under webapp/locales, then web client load the plugin, it can find the proper properties file according to the locale value, but now, this mechanism seems not to be working any more. 

The only way is set the resource file name  and then place the resource file without locale in the name to the locales.

Just like the sample custom-object-ui, all the other samples are not working now.

 

<resources  baseUrl="locales/">   <resource>com_vmware_samples_customobject</resource></resources>

How to locate the properties file in static method in vcenter 6.7?

$
0
0

We used to use getResourceAsStream to locate the .properties file in our jar, but, in 6.7, the classloader is KernelBundleClassLoader which is in the sythetic.context bundle, and it's classpath is the synthetic.context.jar folder, so it can not find the properties resides in our jar file.  

How can we locate the .properties file now?

thanks.

how to query registered plugin by prefix or keyword?

$
0
0

Hi,

I'm able to register/unregister a new plugin to the vcenter,  is it possible to get idea about already registered plugins so that I could batch unregistering them? Some of the plugin keys are dynamically generated so it's hard to track. Thanks.

Refresh background view from a dialog loaded from webPlatform.openModalDialog.

$
0
0

Hi,

I am working on a plugin. In the UI i have a datagrid showing list of arrays that are registered and user can register new arrays. Register array component is opened as dialog using the method webPlatform.openModalDialog. Once the registration is done i close the dialog using webPlatform.closeDialog. But i also need to refresh the list of arrays in the datagrid. 

So for this should i use the gs.getWebPlatform().setGlobalRefreshHandler?. But how to initiate a refresh for the background components in UI.

Please suggest, thank you.

Possible Virgo Server Issues in Eclipse

$
0
0

Hi all,

 

If you are developing an HTML Client plug-in  and you start your virgo server from Eclipse IDE, it is possible that the vSphere Client fails to display some of your plug-in views.

The issue does no happen if you use the provided startup.sh/bat scripts from the SDK zip. We recommend that you use these scripts for starting/stopping the virgo server since any needed fixes/modifications will be present there.

 

For Eclipse environment, the workaround is to add the following two arguments to the list of VM arguments in the launch configurations of the virgo server:

-Dweb.context.path.match=vsphere-client

-Dweb.context.path.replace=ui

 

Best Regards,

Denis

We recommend that you use these scripts for starting/stopping the virgo server since any needed fixes/modifications will be present there.
 
The workaround for the Eclipse environment is to add the following two arguments to the list of VM arguments in the launch configurations of the virgo server:
-Dweb.context.path.match=vsphere-client
-Dweb.context.path.replace=ui
 
Please let us know if the suggested workaround solves the issue on your side.
 
Best Regards,
Denis

VCenter SOAP API CALL

$
0
0

Hi Guys,

 

Could you guide or provide sample SOAP xml to create datastore cluster or Create cluster using SOAP API call. I am able to create datacenter using SOAP API call, but i am unable to perform any other additional operation using SOAP API Call..

 

Could you please let me know any documentation available to create SOAP call for the vcenter basic operation . Thanks

PluginSeed 0.9.8 Bug- GlobalRefresh Issue

$
0
0

Hi,

 

It seems a serious flaw\issue with the plugin-seed 0.9.8 code base.

If we have a listing view which had subscribed to global refresh event and there is a plugin based action (uses openModalDialog API).

On invoking the action, listing refresh event will no longer work. How to handle this issue?

 

Below are the reproducible steps for the issue with official plugin-seed as well.

Plugin_seed_globalRefresh_issue.gif

 

NOTE: To maintain compatibility with 6.5U1, we cannot use the new set of JS API's.

 

Thanks,

Kumar

Error seen while opening dialog - notificationService::handleError

$
0
0

Hi,

I am seeing error on UI when ever i open a dialog using the JS API webPlatform.openModalDialog. The error occurs while passing the object ID and JS code must be making a service call on this ID and erroring out. Is it possible to stop this service call within the JS code/API. PFA screenshots of the errors i am seeing.


Deployment Error java.lang.Exception: 'serviceName' missing

$
0
0

Hello,

I'm recieving an error when trying to deploy my vSphere HTML client plugin to my server. Invoking RegisterExtension properly returns void with no errors. However the plugin fails to deploy or populate the vspere-client-serenity directory with the cached plugin files.

In looking through the logs the only apparent error I see is in sca.log:

[Thread-4 WARN  com.vmware.sca.registration.Services] Failed to process service definition; file:'C:\ProgramData\VMware\vCenterServer\cfg\sca\services\e3f1a610-07df-42a6-bc82-8739d9b353da_com.xxx.xxx.properties' [java.lang.Exception: 'serviceName' missing]

Looking through Google/forums I saw this error come up for somebody else who narrowed it down to an invalid bundle id in plugin-package.xml ... I've tripple checked that those bundle IDs match the Bundle-SymbolicName in my Manifest.MF. The service bundle is also listed first in the bundlesorder element. 

I ended up building one of the samples included with the SDK and trying to deploy that and actually recieved the same error in sca.log ... this is leading me to believe it's something in my environment ... assuming those included samples should require no modificaiton to succesfully deploy. I'll include the xml for the vim.extension I used to register the sample plugin below.

Is there some sort of configuration I'm missing on the vSphere side to enable these extensions/plugins?

Any help would be appreciated!

<extension>
<description>
<label>Global View</label>
<summary>Testing</summary>
</description>
<key>com.vmware.samples.globalview-html</key>
<company>xxx</company>
<version>6.5.0.10000</version>
<lastHeartbeatTime>2018-01-01T00:00:00Z</lastHeartbeatTime>
<client>
<version>6.5.0.10000</version>
<description>
<label>Global View</label>
<summary>Testing</summary>
</description>
<company>xxx</company>
<type>vsphere-client-serenity</type>
<url>http://172.20.58.42/globalview-sample.zip</url>
</client>
</extension>

General availability of vSphere Client SDK 6.7 !!!

$
0
0

Hi folks,

I am delighted to announce that vSphere Client SDK 6.7 is GA. You can access it from:

 - https://code.vmware.com/web/sdk/67/client for the vSphere Client SDK (HTML-only)

 - https://code.vmware.com/web/sdk/67/web-client for the vSphere Web Client SDK (Flex, Flex+HTML)

Some highlights:

 - vSphere Web Client SDK is deprecated and 6.7 is its terminal release. The relevant APIs are still supported in this release but will not be extended and will be removed in the future. Use this if you need to build a plugin that supports both Clients or old Client versions.

 - vSphere Client SDK contains new Javascript APIs (tech-previewed in the Fling). For now they support versions 6.7 and above (stay tuned for updates on this). The old Bridge APIs are deprecated but maintained for backward compatibility. See the documentation for more details on the new API.

 - Many extension points have been deprecated to streamline recommended plugin integration within the Client. See the list of extension points for more details.

 - A single html-sample plugin has been introduced to showcase the most common use cases, UX recommendations and API usage.

 - Programming guide is rewritten as a single source of truth focusing on vSphere Client (HTML), clarity of setup steps and available APIs/extensibility.

There is a lot more in vSphere 6.7 so just try it out!

As always - your feedback is greatly appreciated! :)

Cheers,

Vladimir

How can I get the MO from UID passed from browser?

$
0
0

The browser passes the UID, such as HostSystem:host-31 to the controller, but, when we get it, we need to split the string and set the MO's type and value with the splited list.

This is really ugly, if there is some change in the UID structure, programe would fail.

Is there any official tool to convert or construct a MO , or to get the MO with the referrence service from the UID?

0,0 is not working HTML5 however works in flex

$
0
0

Hi ,

 

I am using sdk-6.0.0.2559419 for developing webclient plugin which works on both flex/html5.

 

I have a use case where I want to invoke an action from the context menu of datastore and after that operation completes, I want to perform another action(navigation).

for which I need to delegate the action to a script using WEB_PLATFORM.sendNavigationRequest.

 

On UI i do not want to display the HTML page so i kept the size of HTML as 0,0   <dialogSize>0,0</dialogSize>  in plugin xml.

 

It works fine in Flex however in HTML5 it is not working and displaying default size html

 

 

 

 

<extendedPoint>vise.actions.sets</extendedPoint>

      <object>

         <actions>

         

            <com.vmware.actionsfw.ActionSpec>

               <uid>chassis.navigate</uid>

               <label>Navigate to chassis</label>

               <icon>#{chasisicon}</icon>

               <delegate>

                  <className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>

                  <object><root>

                     <!-- execute the action on client-side (html view in a modal dialog) -->

                     <actionUrl>/vsphere-client/chassisui/resources/my-navigate.html</actionUrl>

                     <dialogTitle>Datastore Test</dialogTitle>

                     <dialogSize>0,0</dialogSize>

                      <dialogIcon>#{chassisicon}</dialogIcon>

                  </root></object>

               </delegate>

            </com.vmware.actionsfw.ActionSpec>

HTML Client (GA) - Null pointer exception when selecting vCenter

$
0
0

Hi, I have downloaded the GA version of the HTML Client, and have started testing my plug-in.  Things seem to work pretty much as in older fling versions - but unfortunately when I have my plug-in attached the following happens.

1) I navigate to Global Inventory Lists -> vCenter Servers. It shows me my vcenter (I have only one in this sso).  When I click on the vCenter  nothing happens, so I looked in the virgo.log and found this exception:

[2018-04-20T10:06:38.774+02:00] [ERROR] https-jsse-nio-9443-exec-22  70001765 100025 200006 com.vmware.vise.mvc.exception.GlobalExceptionHandler            

Exception handled:  java.lang.NullPointerException: null

at com.vmware.vise.mvc.controllers.NavigationServiceController.excludePluginExtensions(NavigationServiceController.java:496)

at com.vmware.vise.mvc.controllers.NavigationServiceController.navigate(NavigationServiceController.java:200)

at com.vmware.vise.mvc.controllers.NavigationServiceController.getNavigationData(NavigationServiceController.java:148)

 

My plug-in does have an extension to the vCenter->Monitor, but that has been working all the time.  We have a vSphere Client Version 6.6.3.150  together with our plug-in, and I can not reproduce this  effect.

Does anyone have an idea?

"Related Objects" are changed to "More Objects" in 6.5

$
0
0

Are there any changes the way plugin tabs are organized in 6.5 vs 6.0 web client.

Previously all the plugin tabs are displayed under the "related Object" category.?.

Now it is inside "More Objects"

 

 

 

Solutions menu not showing separators and submenus

$
0
0

I have been regression testing using the new Html SDK.  One of the problems I have stumbled over is that the entries in the Actions menu are not being shown propery.  I have submenus and separators in my Actions menu.  They have always worked before, also in the older versions of the html Client.  So to make sure that my plugin is not doing anything impossible, I used the sts vmware tools to create a test plugin-   In that plugin.xml I added separator items, and a submenu to the action  - I've attached the plugin.xml.

Could someone possible tell me what I am doing wrong?  Or is this functionality no longer supported?

 

thanks

cathy

 

 

ActionsMenu.png


Multiple Selection of custom objects in vsphere.core.inventorylist.objectCollectionTemplate

$
0
0

Hi,

I have noticted that in the new HTML SDK (RC Version), multiple selection of my custom objects no longer seems to work.  When a user selects one row, and holding the shift key while selecting the others the following happens:

1) the "odd" rows remain white - do no look like they are selected

2) the content menu only offers actions which are created for only one node - for example

     5 Nodes are selected - In the context menu I would expect "Delete nodes" - instead I only see "Delete node" - and only one node is actually deleted.

 

This works fine in the WebClient - does it no longer work in the Html Client?

Thanks

Cathy

 

P.S. I looked at the "Hosts" Inventory table - here multiple selection works as expected.

Prioritized Actions which need a custom object selected are not show at the top of the table

$
0
0

Hi,

I have that changes have also been made to the prioritzed actions in the inventory lists for custom objects.

I use the vsphere.core.inventorylist.objectCollectionTemplate to display the objects.

I have two sets of prioritized actions:

1) One set which contains general actions like "add", "discover", "import"

2) One set which contains actions depending on the selected object(s) :

     ->If one is selected "edit" and "delete"

     ->If multiple selection "delete"

 

I see the first general set of actions at the top of the list, but even if I select an object, I do not see the second set of actions.  They are seen however in the context menu (at least the items pertaining to single selection).

 

As with my other discussion, this functions correctly with the WebClient - but not in the HTML Client.

Do I have to add anything, or is this no longer supported?

Thanks for the info

Cathy

VMware6.5 html console page

$
0
0

I don't know how to get the tickets to the virtual machine,

If you have any thoughts, please let me know. Thank you very much.

vSphere Client SDK 6.5U2 is available!

$
0
0

Hi guys,

I am pleased to inform you that vSphere Client SDK 6.5U2 is available now for download (https://code.vmware.com/web/sdk/65/client)

The update brings many new features, such as:

- vSphere Client SDK contains new Javascript APIs (tech-previewed in the Fling).  The old Bridge APIs are deprecated but maintained for backward compatibility. See the documentation for more details on the new APIs.

- A single html-sample plug-in has been introduced to showcase the most common use cases, UX recommendations and APIs usage.

 - Programming guide has been rewritten as a single source of truth focusing on vSphere Client (HTML), clarity of setup steps and available APIs/extensibility.

and many more!

 

Please try the vSphere Client SDK 6.5U2 and share your feedback with us so we can improve it even more.

 

Best Regards,

Denis

- vSphere Client SDK contains new Javascript APIs (tech-previewed in the Fling). For now they support versions 6.7 and above (stay tuned for updates on this). The old Bridge APIs are deprecated but maintained for backward compatibility. See the documentation for more details on the new API.
 

With 6.7 SDK, plugin-seed-0.9.8 fails to build with error saying playerglobal.swc not found

$
0
0

We made progress in 6.5 HTML5 plugin development with the help of seed project “plugin-seed-0.9.8”. We are trying to deploy this plugin in 6.7 HTML5 SDK setup but the build has failed saying 'setup is incomplete'  - “cannot find file  11.5/playerglobal.swc”.

Looks like plugin-seed-0.9.8 is not compatible with 6.7 SDK. Is there a new seed-plugin available for 6.7?  Or is it advisable to fix these the issues and continue using plugin-seed-0.9.8?

Did anyone face similar issue?

Viewing all 2218 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>