PDA

View Full Version : Placement of Menu item



Harsha Reddy
08-13-2013, 04:22 AM
Hi all,

I am trying create a menu item under a main menu item called FILE. I am facing problem in placing that menu item. In plugin.xml if i use an option of "how=Last_child", Menu Item will appear after "Log Out" but what i need is I need to place that item before Log out. So please can some one guied me to achive the task.

Thanks in advance
Harsha Reddy

Basavaraja
08-13-2013, 05:16 AM
Try this

how: This is used to specify how the menu item is added relative to the anchor. Valid values are: INSERT_BEFORE, INSERT_AFTER, FIRST_CHILD, LAST_CHILD, REPLACE, DELETE


Thanks,
Basavaraja

Harsha Reddy
08-13-2013, 05:35 AM
But how to use this options?? Only Last_child makes effect.. about rest other options there is no idea.

Basavaraja
08-13-2013, 05:50 AM
When I was using 3.8 the other options were not working. But It may work in the new versions.

Check pentaho-solutions/system/ui/menubar.xul or pentaho-solutions/system/default-plugin/plugin.xml. You may get some idea how to use it!

Thanks,
Basavaraja