VMware {code} Community
skodiya
Contributor
Contributor

Unable to get nested sub menu via plugin-xml

Hi all,

I am trying to achieve nested sub menu via plugin.xml , I have achieved the child menu but unable to get child of child sub menu .

I have share the code snippet and view .

kindly give needful suggestion.

Thanks in advance.

6 Replies
stoevm
VMware Employee
VMware Employee

Hi skodiya,

I think this should work.

<extension id="__packageName__.chassis.menu">
   <extendedPoint>vsphere.core.menus.solutionMenus</extendedPoint>
   <object>
      <label>dummy1</label>
      <children>
         <Array>
            <com.vmware.actionsfw.ActionMenuItemSpec>
               <type>separator</type>
            </com.vmware.actionsfw.ActionMenuItemSpec>
            <com.vmware.actionsfw.ActionMenuItemSpec>
               <uid>sub-menu</uid>
               <label>other-actions</label>
               <children>
                  <Array>
                     <com.vmware.actionsfw.ActionMenuItemSpec>
                        <type>action</type>
                        <uid>__packageName__.otherAction</uid>
                     </com.vmware.actionsfw.ActionMenuItemSpec>
                  </Array>
               </children>
            </com.vmware.actionsfw.ActionMenuItemSpec>
            <com.vmware.actionsfw.ActionMenuItemSpec>
               <type>action</type>
               <uid>com.vmware.samples.actionextensions.headlessAction3</uid>
            </com.vmware.actionsfw.ActionMenuItemSpec>
         </Array>
      </children>
   </object>
   <metadata>
      <objectType>sample:Chassis</objectType>
   </metadata>
</extension>

I guess you have rea uids for the __package__Name__.otherAction

Cheers,
Martin

0 Kudos
skodiya
Contributor
Contributor

hi @stoevm I have try the code which is suggested by you ,Still it is working same as our previous code no change in the view.

0 Kudos
kumartade
Enthusiast
Enthusiast

stoevm​ our requirement is to show menu inside a menu (nested submenu) not just submenu.

can you provide snippet for nested submenu?

0 Kudos
stoevm
VMware Employee
VMware Employee

Hi,

The code snipped that I sent is creating the following (menu/submenu) structure. 
Please let me know if you had something different in mind.

Martin

0 Kudos
kumartade
Enthusiast
Enthusiast

we are using the same snippet on vSphere 6.5U2

but it is not working.

Could you confirm on vSphere 6.5U2 client once?

Could you share share your full plugin.xml file once?

0 Kudos
stoevm
VMware Employee
VMware Employee

Hi,

This is a known issue on vSphere 6.5U2 and is not working, this problem was fixed in 6.7U1.

Sorry for the misunderstanding.

Martin