VMware {code} Community
RayKao
Contributor
Contributor

Does "Providing Filtering Metadata" function work well in HTML5 client??

Hi,

I use this function on my flex plugin before and run it in flex client, It work well.

But now, I start to develop html5 plugin by using using html client SDK6.5. I encounter some problems.

When I add following paragraph in plugin.xml of HTML5 plugin same with my flex-plugin and run it in HTML client , it not work. 

<metadata> 

<privilege>Company.View</privilege> 

</metadata> 

The plugin's name was always existing on the vsphere client,

even if the user doesn't have Company.View privilege. (It should auto-hide like my flex-plugin running in flex client)

Does it can fix in HTML5 plugin?

Thanks

I use this function on my flex plugin and run it in flex client, It work well. 
But when I add following same paragraph in plugin.xml of HTML5 plugin and run it in HTML client , it not work. 
The view was always existing, even if the user doesn't have privilege. Does it can fix? 
<metadata> 
<privilege>Supermicro CIM Provider.View</privilege> 
</metadata> 
0 Kudos
5 Replies
laurentsd
VMware Employee
VMware Employee

Can you provide the whole extension xml snippet to see what you are filtering out?

HTML Client 6.5 released last November is not  complete yet, so this could be something still missing.  Have you tried the newer 6.5b version, or even a recent HTML Client Fling available at vSphere HTML5 Web Client ?

0 Kudos
faithjb
Contributor
Contributor

Hi laurenforster​, where to get the 6.5b version?

0 Kudos
laurentsd
VMware Employee
VMware Employee

The 6.5b Client is part of the vSphere 6.5b patch that you can download on the VMware site.

If you want to try an even newer Client without having to install vSphere the best is to use a recent Fling version at vSphere HTML5 Web Client

0 Kudos
faithjb
Contributor
Contributor

Thanks!

0 Kudos
RayKao
Contributor
Contributor

Hi laurentsd,

Thanks for your reply , I'll  try newest  fling version.

 ';;  <!-- Main view -->
   <extension id="com.company.mytestui.mainView">
      <extendedPoint>vsphere.core.host.monitorViews</extendedPoint>
      <object>
         <name>MyPlugin</name>
         <componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">
            <object>
               <root>
                  <url>/vsphere-client/mywebplugin/resources/mainView.html</url>
               </root>
            </object>
         </componentClass>
      </object>
      
      <metadata>
<privilege>Company.View</privilege>
 </metadata>
   </extension>

And this is my extension xml snippet, Is there something error that I made? 

   <!-- Main view -->

   <extension id="com.company.mytestui.mainView">

      <extendedPoint>vsphere.core.host.monitorViews</extendedPoint>

      <object>

         <name>MyPlugin</name>

         <componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">

            <object>

               <root>

                  <url>/vsphere-client/mywebplugin/resources/mainView.html</url>

               </root>

            </object>

         </componentClass>

      </object>

      <metadata>

              <privilege>Company.View</privilege>

      </metadata>

 

   </extension>

0 Kudos