VMware {code} Community
anujdixit
Contributor
Contributor

HTML5 : SDK 6.5u1 : Portlet is not working

Hello,

I am trying to set some Portlets on my Summary view tab using html bridge (SDK 6.5u1). I tried to follow the instruction as mentioned in SDK doc. However, it is not working and Portlet is not visible on vSphere Client under Summary View. Also there is no error on web console..

My XML code is below :

   <!-- summary view. -->

   <extension id="com.company.vcplugin.fi.SummaryView">

      <extendedPoint>com.company.vcplugin.fi.summaryViews</extendedPoint>

      <object>

         <name>FISummary</name>

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

            <object>

               <root>

                  <url>/vsphere-client/html/index.html?view=fi-summary</url>

               </root>

            </object>

         </componentClass>

      </object>

   </extension>

     

      <!--  summary view section. -->

   <extension id="com.company.vcplugin.fi.Summary2">

      <extendedPoint>>vsphere.core.fi.summarySectionViews.html</extendedPoint>

      <object>

         <name>Status</name>

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

            <object>

               <root>

                  <url>/vsphere-client/html/index.html?view=status-details-section-view</url>

                   <dialogTitle>WSSDK Summary Sample</dialogTitle>

                   <dialogSize>440,400</dialogSize>

               </root>

            </object>

         </componentClass>

      </object>

   </extension>

I have also tried with <namespace>.summarySectionViews.html as extendedPoint but that is also not working.

Can someone please help here?

Reply
0 Kudos
3 Replies
laurentsd
VMware Employee
VMware Employee

Is the problem happening the Flex client or HTML client or both?

The browser console only shows Javascript errors once a plugin view is loaded, or if the URL returns a 404.  If the plugin view is not visible at all it's best to start looking in the Virgo logs (search for your plugin name).

It looks like you defined custom objects so it's important to follow exactly the modal of the chassis example, you may have missed something.  If you can package your project in a way that it is easy for me to rebuild I can have a closer look.

> <extendedPoint>com.company.vcplugin.fi.summarySectionViews.html</extendedPoint>

This is not a valid extension point for custom objects, summarySectionViews is for extending the Summary page of vSphere objects.

> <url>/vsphere-client/html/index.html?view=fi-summary</url>

If your plugin short name "html"??

Reply
0 Kudos
anujdixit
Contributor
Contributor

Hi Laurentsd, Sorry for the late reply!. I was seeing this issue in HTML client as am working on HTML plugin seed 6.5u1.
i understand that summarySectionViews is mainly for vsphere objects.  And I was trying to use that for our Custom Objects. I tried all posible combinations but nothing worked. So i gaveup and removed the summarySectionViews with Angular Child component.

I will create some temporary project with your. But please first let me know if Portlet is possible with custom objects or not?

your custom object

Reply
0 Kudos
_vladi_
VMware Employee
VMware Employee

Hi,

The supported extension point for custom objects is only ${namespace}.summaryViews. See the documentation here.

Essentially, it is your object and your summary view so you own the whole page. If you want portlets there you can use Clarity cards or any other web component that fits your needs.

The same is not true for VM summary view which is owned by the vSphere Client. Hence, there the extension point is summarySectionViews that allows you to extend only part of the whole summary view.

Hope this helps.

Cheers,

Vladi

Reply
0 Kudos