Yang711's Posts

I tried to get the users who belong to the user group  ■I tried to get the users who belong to the user group retrieveUserGroups just determines if it's a group. I don't know what users t... See more...
I tried to get the users who belong to the user group  ■I tried to get the users who belong to the user group retrieveUserGroups just determines if it's a group. I don't know what users the group has. So, How to vsphere aip determine which user group a user belongs to? Or can I get what users are in the user group? ■I searched for the following API, but I can't find it. Doesn't it support now? We are always investigating what the API can use: • vsphere-web-services-sdk-programming-guide-7.0.3.pdf https://developer.vmware.com/web/sdk/7.0/vsphere-management ⇒ https://vdc-download.vmware.com/vmwb-repository/dcr-public/b6123020-daa6-4907-8696-5c27e7510a8c/6061... guide-7.0.3.pdf. • vSphere Web Services API https://developer.vmware.com/apis/1192/vsphere   ■Purpose I want to get what role ID the user has, I can only retrieve a user group using RetrieveAllPermissions and I don't know what users are in that user group.
I have the same problem, but is it already solved? If you can solve it, please let me know.
Hi Martin, Thank you for your reply. >Are you trying to get the objectId of the previously selected object, namely the object from which the navigation was triggered or you are trying to ge... See more...
Hi Martin, Thank you for your reply. >Are you trying to get the objectId of the previously selected object, namely the object from which the navigation was triggered or you are trying to get the selectedTargets ? if i call the getNavigationData API , i can get the selectedTargets . But the getContextObjects API returns undefined, like this : ERROR TypeError: ""this.xxxxxxxx.htmlClientSdk.app.getContextObjects(...)[0] is undefined"" >The customData value is not a valid json { objectId, selectedTarget } Maybe my customData  is not a valid json, so I try to make a valid json for customData , and try again , but was same wrong. Can you give me some example of customData ? my example :  (by typeScript)     const obj = {};     this.selectedTargets.forEach(item => (obj[item.id] = item));     const selectedTargetJSON = JSON.stringify(obj);     this.xxxxxx.htmlClientSdk.app.navigateTo({       targetViewId: 'com.xxxxxxx.summary',       objectId: objectId,       customData: selectedTargetJSON     }); By the way I checked the network in vSphere 6.7 : (Have objectId=xxx) 1.request URL:https://xxxxx/ui/navigation/data/com.xxxxxxx.summary?objectId=urn:hsp:yyy:zzz:A_B_123 request  method:GET 2. request URL:https://xxxxx/ui/navigator/navigate/com.xxxxxxx.summary?context=urn:hsp:yyy:zzz:A_B_123&navigator=tree but in vSphere 7.0 : (Have not objectId=xxx) 1.request URL:https://ssssssss/ui/navigation/leaf/com.xxxxxxx.summary request  method:GET 2. request URL:https://ssssssss/ui/navigator/navigate/com.xxxxxxx.summary?context=urn:hsp:yyy:zzz:A_B_123&navigator=tree request  method:GET
Hi, I used vsphere 6.7 sdk , like this:   navigateToSummaryView(objectId): void {     const selectedTarget = this.selectedTargets;     this.storagepluginService.htmlClientSdk.app.navigateTo... See more...
Hi, I used vsphere 6.7 sdk , like this:   navigateToSummaryView(objectId): void {     const selectedTarget = this.selectedTargets;     this.storagepluginService.htmlClientSdk.app.navigateTo({       targetViewId: 'com.xxxxxxx.summary',       objectId: objectId,       customData: { objectId, selectedTarget }     });   } and i want to get "objectId" from "targetViewId", so i use 2 htmlClientSdk : 1. htmlClientSdk.app.getNavigationData() 2. htmlClientSdk.htmlClientSdk.app.getContextObjects()[0] they can worked. But 1. (getNavigationData) have probleme , they can't ued by browser's Refresh/Next Page/Back Page they will make getNavigationData() to be undefined so I used 2. getContextObjects()[0]. But In vSphere 7.0, [2. getContextObjects()[0]] can't work So I need to know, have any way to fix this?
------------------ vim25 API------------------------------- Make Java Services Available to the UI Components in the vSphere Web Client and the vSphere Client ... ... 4 Import the service w... See more...
------------------ vim25 API------------------------------- Make Java Services Available to the UI Components in the vSphere Web Client and the vSphere Client ... ... 4 Import the service where your extension references it. ・ For Flex-based extensions, import the service into the user interface plug-in module that contains your Flex components. ・ For HTML-based extensions, import the service in the controller module that services your extension data requests. 5 Establish a communication between your service and the user interface layer. ・ For Flex-based extensions, use ActionScript to create a proxy class in your Flex component. The proxy class is used to communicate between the user interface plug-in module and the service. ・ HTML-based extensions access the service by using a REST API that communicates with the controller module on the application server. ------------------------------------------------------------------- I saw the vim25 API, and I just did't understander 'interface plug-in module' & 'controller module' 'interface plug-in module' is like DataProviderAdapter ? 'controller module' is like DataAccessController? so , That is to sya,  HTML-based extensions will not use "DataProviderAdapter.getData()" ?
Hi,Denis Thank you for your reply. >In the same sample, we have also shown how to use a global view as a single entry point to the plugin. Yes, Now I used the  vise.global.views for my view.... See more...
Hi,Denis Thank you for your reply. >In the same sample, we have also shown how to use a global view as a single entry point to the plugin. Yes, Now I used the  vise.global.views for my view. Example:  vise.global.views  My Global View  /ui/globalview/resources/mainView.html hasTitlefalse That is to sya,  I will not use "DataProviderAdapter.getData()" ? And I hava a question. ex.  vsphere.core.${objectType}.summarySectionViews.html If I use the vise.global.views for my view, How can I define custom ${objectType} ? Best Regards, Yang
I used vsphere.core.inventory.objectViewTemplate/objectCollectionTemplate to created my ListView. And, I hava interface (DataProviderAdapter) to use for getData(). But now vsphere.core.inventor... See more...
I used vsphere.core.inventory.objectViewTemplate/objectCollectionTemplate to created my ListView. And, I hava interface (DataProviderAdapter) to use for getData(). But now vsphere.core.inventory.objectViewTemplate/objectCollectionTemplate will be deprecate , so they will can't be use. Now, i use the vise.global.views ,and call my html , but i cant use DataProviderAdapter.getData(). so can you tell me , How can I use getDate() By DataProviderAdapter, but we can not use the objectViewTemplate/objectCollectionTemplate. Please!! and Thanks!!