Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES
Hook: Removing Items From Container - Button
Requirement
A data container's contents is displayed as a single table, and the ability to remove the selected item is needed.
Method of Adaptation
Enable Feature
Level of Support
Parameter Pattern
HotSpot
Standard User Interaction for Data Management
Hooks used
Define New Strategy For Add Or Remove Button
Participants
SingleTableFormSheet
, formSheet ,
DefaultRemoveCatalogItemStrategy
, strategy ,
FormSheetContentCreator
, NewContentCreator
Changes
instance formSheet of SingleTableFormSheet.
if formSheet displays Catalog's contents:
instance strategy of DefaultRemoveCatalogItemStrategy.
else:
instance strategy of
Define New Strategy For Add Or Remove Button
[NewStrategy].
subclass NewContentCreator Of FormSheetContentCreator.
NewContentCreator.createFormSheetContents overrides
FormSheetContentCreator.createFormSheetContents
:
call
formSheet.addRemoveButton
with parameter strategy.
Constraints
This hook may only be invoked from the
Display Contents Of Container
hook.
Comments
By overriding other methods in DefaultRemoveCatalogItemStrategy you can customize the CatalogItem's removal sub-process.
If there are both, an add and a remove button, you can also use
data.stdforms.SingleTableFormSheet.addEditingButtons
.
Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES