VMware {code} Community
vManav
Enthusiast
Enthusiast

summary portlet data refresh



Hi,


I need to add a refresh button in my summary portlet displayed in the summary section of the VM. I do not see any footer  in the portlet that I have created using the vsphere.core.vm.summarySectionViews. Is it possible to add a footer in the custom portlet

Reply
0 Kudos
1 Reply
laurentsd
VMware Employee
VMware Employee

The portlet frame cannot be customized. Any UI has to be part of the summarySectionView content.

Are you sure you need your own Refresh button?   Instead the user can click on the global refresh icon in the top bar, and your mediator can respond to DataRefreshInvocationEvent as shown in samples/chassis-app/chassis-ui/swf/src/main/flex/com/vmware/samples/chassisui/views/ChassisSummaryViewMediator.as

   /**

    * Handles the global refresh event when the user clicks the Refresh button.

    */

   [EventHandler(name="{com.vmware.core.events.DataRefreshInvocationEvent.EVENT_ID}")]

   public function onGlobalRefreshRequest(event:DataRefreshInvocationEvent):void {

      // _contextObject should be null if the view is not visible

      if (_contextObject != null) {

         requestData();

      } else {

         clearData();

      }

   }

Reply
0 Kudos