Class GridRemoveSelectedDataTask
- All Implemented Interfaces:
HasHandlers
- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Can multiple records be removed? If not and multiple records are selected, therefuseMultiRemoveMessage
is shown as a warning and the workflow is terminated.Message shown to user to confirm deleting a single record on a bound grid.ID of the next sequence or element to proceed to if a failure condition arises from operation.Message shown to user to confirm deleting a group of records on a bound grid.static GridRemoveSelectedDataTask
getOrCreateRef
(JavaScriptObject jsObj) Message to be shown when multiple records are selected for removal butallowMultiRecordRemove
is not set.Additional properties to set on theremoveSelectedData
call to perform removal.Should we show a confirmation message before removal and allow the user to cancel the operation? If user cancels the removal the workflow is terminated.Message shwon to user to confirm deleting a single record on an unbound grid.Message shown to user to confirm deleting a group of records on an unbound grid.setAllowMultiRecordRemove
(Boolean allowMultiRecordRemove) Can multiple records be removed? If not and multiple records are selected, therefuseMultiRemoveMessage
is shown as a warning and the workflow is terminated.setConfirmationMessage
(String confirmationMessage) Message shown to user to confirm deleting a single record on a bound grid.setFailureElement
(String failureElement) ID of the next sequence or element to proceed to if a failure condition arises from operation.setMultipleConfirmationMessage
(String multipleConfirmationMessage) Message shown to user to confirm deleting a group of records on a bound grid.setRefuseMultiRemoveMessage
(String refuseMultiRemoveMessage) Message to be shown when multiple records are selected for removal butallowMultiRecordRemove
is not set.setRequestProperties
(DSRequest requestProperties) Additional properties to set on theremoveSelectedData
call to perform removal.setShowConfirmation
(Boolean showConfirmation) Should we show a confirmation message before removal and allow the user to cancel the operation? If user cancels the removal the workflow is terminated.setUnboundConfirmationMessage
(String unboundConfirmationMessage) Message shwon to user to confirm deleting a single record on an unbound grid.setUnboundMultipleConfirmationMessage
(String unboundMultipleConfirmationMessage) Message shown to user to confirm deleting a group of records on an unbound grid.Methods inherited from class com.smartgwt.client.util.workflow.ComponentTask
getComponentBaseClass, getComponentBaseClassAsStringArray, getComponentId, getComponentRequiresDataSource, getTargetBaseClass, getTargetBaseClassAsStringArray, getTargetComponent, getTargetComponent, getUnsupportedComponentMessage, setComponentBaseClass, setComponentBaseClass, setComponentId, setComponentRequiresDataSource, setTargetBaseClass, setTargetBaseClass, setUnsupportedComponentMessage
Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement
completeElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getComponentReferences, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getInvalidTaskMessage, getJsObj, getMockMode, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, getUndefinedComponentMessage, getUnresolvedComponentMessage, getWaitDuration, getWaitFor, getWaitLocator, isCreated, isValid, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, setUndefinedComponentMessage, setUnresolvedComponentMessage, setWaitDuration, setWaitFor, setWaitLocator, updateGlobalIDInCriteria, updateGlobalIDInTextFormula, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValues
Methods inherited from class com.smartgwt.client.core.BaseClass
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
-
Constructor Details
-
GridRemoveSelectedDataTask
public GridRemoveSelectedDataTask() -
GridRemoveSelectedDataTask
-
-
Method Details
-
getOrCreateRef
-
create
- Overrides:
create
in classComponentTask
-
setAllowMultiRecordRemove
public GridRemoveSelectedDataTask setAllowMultiRecordRemove(Boolean allowMultiRecordRemove) throws IllegalStateException Can multiple records be removed? If not and multiple records are selected, therefuseMultiRemoveMessage
is shown as a warning and the workflow is terminated.Default is true unless set to
false
.- Parameters:
allowMultiRecordRemove
- New allowMultiRecordRemove value. Default value is null- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getAllowMultiRecordRemove
Can multiple records be removed? If not and multiple records are selected, therefuseMultiRemoveMessage
is shown as a warning and the workflow is terminated.Default is true unless set to
false
.- Returns:
- Current allowMultiRecordRemove value. Default value is null
-
setConfirmationMessage
public GridRemoveSelectedDataTask setConfirmationMessage(String confirmationMessage) throws IllegalStateException Message shown to user to confirm deleting a single record on a bound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only three dynamic variables, dsTitle; dsPluralTitle and recordTitle, are available and represent the bound
DataSource.title
andDataSource.pluralTitle
and the value of theDataSource.titleField
from the first selected record.- Parameters:
confirmationMessage
- New confirmationMessage value. Default value is "Delete ${dsTitle} ${recordTitle}"- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getConfirmationMessage
Message shown to user to confirm deleting a single record on a bound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only three dynamic variables, dsTitle; dsPluralTitle and recordTitle, are available and represent the bound
DataSource.title
andDataSource.pluralTitle
and the value of theDataSource.titleField
from the first selected record.- Returns:
- Current confirmationMessage value. Default value is "Delete ${dsTitle} ${recordTitle}"
-
setFailureElement
public GridRemoveSelectedDataTask setFailureElement(String failureElement) throws IllegalStateException ID of the next sequence or element to proceed to if a failure condition arises from operation.- Parameters:
failureElement
- New failureElement value. Default value is null- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getFailureElement
ID of the next sequence or element to proceed to if a failure condition arises from operation.- Returns:
- Current failureElement value. Default value is null
-
setMultipleConfirmationMessage
public GridRemoveSelectedDataTask setMultipleConfirmationMessage(String multipleConfirmationMessage) throws IllegalStateException Message shown to user to confirm deleting a group of records on a bound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only two dynamic variables, dsTitle and dsPluralTitle, are available and represent the bound
DataSource.title
andDataSource.pluralTitle
.- Parameters:
multipleConfirmationMessage
- New multipleConfirmationMessage value. Default value is "Delete multiple ${dsPluralTitle}?"- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getMultipleConfirmationMessage
Message shown to user to confirm deleting a group of records on a bound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only two dynamic variables, dsTitle and dsPluralTitle, are available and represent the bound
DataSource.title
andDataSource.pluralTitle
.- Returns:
- Current multipleConfirmationMessage value. Default value is "Delete multiple ${dsPluralTitle}?"
-
setRefuseMultiRemoveMessage
public GridRemoveSelectedDataTask setRefuseMultiRemoveMessage(String refuseMultiRemoveMessage) throws IllegalStateException Message to be shown when multiple records are selected for removal butallowMultiRecordRemove
is not set.- Parameters:
refuseMultiRemoveMessage
- New refuseMultiRemoveMessage value. Default value is "Only one record may be removed at a time"- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getRefuseMultiRemoveMessage
Message to be shown when multiple records are selected for removal butallowMultiRecordRemove
is not set.- Returns:
- Current refuseMultiRemoveMessage value. Default value is "Only one record may be removed at a time"
-
setRequestProperties
public GridRemoveSelectedDataTask setRequestProperties(DSRequest requestProperties) throws IllegalStateException Additional properties to set on theremoveSelectedData
call to perform removal.Note that
willHandleError
will always be settrue
.- Parameters:
requestProperties
- New requestProperties value. Default value is null- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getRequestProperties
Additional properties to set on theremoveSelectedData
call to perform removal.Note that
willHandleError
will always be settrue
.- Returns:
- Current requestProperties value. Default value is null
-
setShowConfirmation
public GridRemoveSelectedDataTask setShowConfirmation(Boolean showConfirmation) throws IllegalStateException Should we show a confirmation message before removal and allow the user to cancel the operation? If user cancels the removal the workflow is terminated.Message to be shown is defined in the properties:
confirmationMessage
,unboundConfirmationMessage
,multipleConfirmationMessage
andunboundMultipleConfirmationMessage
. The appropriate message is chosen based on the grid configuration and the number of records being removed.- Parameters:
showConfirmation
- New showConfirmation value. Default value is null- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getShowConfirmation
Should we show a confirmation message before removal and allow the user to cancel the operation? If user cancels the removal the workflow is terminated.Message to be shown is defined in the properties:
confirmationMessage
,unboundConfirmationMessage
,multipleConfirmationMessage
andunboundMultipleConfirmationMessage
. The appropriate message is chosen based on the grid configuration and the number of records being removed.- Returns:
- Current showConfirmation value. Default value is null
-
setUnboundConfirmationMessage
public GridRemoveSelectedDataTask setUnboundConfirmationMessage(String unboundConfirmationMessage) throws IllegalStateException Message shwon to user to confirm deleting a single record on an unbound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only one dynamic variable, recordTitle, is available and represents the value of the
DataSource.titleField
from the first selected record.- Parameters:
unboundConfirmationMessage
- New unboundConfirmationMessage value. Default value is "Delete record?"- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getUnboundConfirmationMessage
Message shwon to user to confirm deleting a single record on an unbound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only one dynamic variable, recordTitle, is available and represents the value of the
DataSource.titleField
from the first selected record.- Returns:
- Current unboundConfirmationMessage value. Default value is "Delete record?"
-
setUnboundMultipleConfirmationMessage
public GridRemoveSelectedDataTask setUnboundMultipleConfirmationMessage(String unboundMultipleConfirmationMessage) throws IllegalStateException Message shown to user to confirm deleting a group of records on an unbound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only one dynamic variable, recordTitle, is available and represents the value of the
DataSource.titleField
from the first selected record.- Parameters:
unboundMultipleConfirmationMessage
- New unboundMultipleConfirmationMessage value. Default value is "Delete multiple records?"- Returns:
GridRemoveSelectedDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getUnboundMultipleConfirmationMessage
Message shown to user to confirm deleting a group of records on an unbound grid.This is a dynamic string - text within
${...}
are dynamic variables and will be evaluated as JS code when the message is displayed.Only one dynamic variable, recordTitle, is available and represents the value of the
DataSource.titleField
from the first selected record.- Returns:
- Current unboundMultipleConfirmationMessage value. Default value is "Delete multiple records?"
-