Class ReportWSDelete
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.ReportWSDelete
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class ReportWSDelete extends ContextMenu.DefaultContextMenuItemBuilder
- Since:
- MicroStrategy Web 8.0.1
-
-
Constructor Summary
Constructors Constructor Description ReportWSDelete(Shortcut s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextMenuItem
createItem(TransformContext context)
ExtendscreateItem
by setting the image-type of the context-menu to be remove.boolean
isItemAvailable(TransformContext context)
ExtendsisItemAvailable
in the context of the working set by disabling this item in view mode when the working set has only one item.-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript
-
-
-
-
Constructor Detail
-
ReportWSDelete
public ReportWSDelete(Shortcut s)
-
-
Method Detail
-
isItemAvailable
public boolean isItemAvailable(TransformContext context)
ExtendsisItemAvailable
in the context of the working set by disabling this item in view mode when the working set has only one item. Any time you remove the last template unit from a REPORT (not just grid), you'll get the 'template unit is empty' error when executing it. If you're already in view mode (e.g. the report has been executed), when removing this unit the user will get the error, therefore we want to prevent it, therefore we will not allow users to remove if its the las unit in the working set.- Specified by:
isItemAvailable
in interfaceContextMenuItemBuilder
- Overrides:
isItemAvailable
in classContextMenu.DefaultContextMenuItemBuilder
- Parameters:
context
- TransformContext- Returns:
- boolean
-
createItem
public ContextMenuItem createItem(TransformContext context)
ExtendscreateItem
by setting the image-type of the context-menu to be remove.- Specified by:
createItem
in interfaceContextMenuItemBuilder
- Overrides:
createItem
in classContextMenu.DefaultContextMenuItemBuilder
- Parameters:
context
- TransformContext with context information.- Returns:
- a new instance of a
ContextMenuItem
.
-
-