Tray Service
The tray service enables you to add a menu item to an iView or page tray, and to specify a Web Dynpro action to execute when the menu item is selected.
The following is an example of adding an iView and page menu item:
|
IWDTrayServicetrayService=(IWDTrayService) WDPortalUtils.getService(WDPortalServiceType.TRAY_SERVICE); if (trayService!= null ){ // Add iView tray menu item trayService.addIViewItem( "addItemComment" , "AddComment" , wdThis.wdGetAddItemCommentAction(), null ); // Add page tray menu item trayService.addPageItem( "addItemComment" , "AddComment" , wdThis.wdGetAddItemCommentAction(), null );} |