Class FormSaveDataTask
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.ComponentTask
com.smartgwt.client.util.workflow.FormSaveDataTask
- All Implemented Interfaces:
HasHandlers
Saves changes made in a form (validates first).
- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
The default message to be shown when a target form is bound to a DataSource.The form will becleared
after a successful save unless this property is set tofalse
.ID of the next sequence or element to proceed to if a failure condition arises from operation.The message to be shown when save completes ifshowNotification
is set.Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center.NotifyType fornotifyMessage
.static FormSaveDataTask
getOrCreateRef
(JavaScriptObject jsObj) Does this processElement pass through output from the last executed task (i.e.Additional properties to set on the DSRequest that will be issued to perform save.Should a notification message (defined as notifyMessage) be shown after save completes successfully?The default message to be shown when a target form is not bound to a DataSource.setBoundNotifyMessage
(String boundNotifyMessage) The default message to be shown when a target form is bound to a DataSource.setClearAfterSave
(Boolean clearAfterSave) The form will becleared
after a successful save unless this property is set tofalse
.setFailureElement
(String failureElement) ID of the next sequence or element to proceed to if a failure condition arises from operation.setNotifyMessage
(String notifyMessage) The message to be shown when save completes ifshowNotification
is set.setNotifyPosition
(String notifyPosition) Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center.setNotifyType
(String notifyType) NotifyType fornotifyMessage
.setPassThruOutput
(Boolean passThruOutput) Does this processElement pass through output from the last executed task (i.e.setRequestProperties
(DSRequest requestProperties) Additional properties to set on the DSRequest that will be issued to perform save.setShowNotification
(Boolean showNotification) Should a notification message (defined as notifyMessage) be shown after save completes successfully?setUnboundNotifyMessage
(String unboundNotifyMessage) The default message to be shown when a target form is not bound to a DataSource.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, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, getUndefinedComponentMessage, getUnresolvedComponentMessage, getWaitDuration, getWaitFor, getWaitLocator, isCreated, isValid, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, 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
-
FormSaveDataTask
public FormSaveDataTask() -
FormSaveDataTask
-
-
Method Details
-
getOrCreateRef
-
create
- Overrides:
create
in classComponentTask
-
setBoundNotifyMessage
public FormSaveDataTask setBoundNotifyMessage(String boundNotifyMessage) throws IllegalStateException The default message to be shown when a target form is bound to a DataSource.- Parameters:
boundNotifyMessage
- New boundNotifyMessage value. Default value is "${dsTitle} saved successfully"- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getBoundNotifyMessage
The default message to be shown when a target form is bound to a DataSource.- Returns:
- Current boundNotifyMessage value. Default value is "${dsTitle} saved successfully"
-
setClearAfterSave
The form will becleared
after a successful save unless this property is set tofalse
.- Parameters:
clearAfterSave
- New clearAfterSave value. Default value is true- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getClearAfterSave
The form will becleared
after a successful save unless this property is set tofalse
.- Returns:
- Current clearAfterSave value. Default value is true
-
setFailureElement
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:
FormSaveDataTask
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
-
setNotifyMessage
The message to be shown when save completes ifshowNotification
is set. If no message is configured a default message is used based on the whether the form is bound to a DataSource or not:boundNotifyMessage
orunboundNotifyMessage
.- Parameters:
notifyMessage
- New notifyMessage value. Default value is null- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getNotifyMessage
The message to be shown when save completes ifshowNotification
is set. If no message is configured a default message is used based on the whether the form is bound to a DataSource or not:boundNotifyMessage
orunboundNotifyMessage
.- Returns:
- Current notifyMessage value. Default value is null
-
setNotifyPosition
Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center. The message will be shown at the center of the edge specified (or the very center for "C").- Parameters:
notifyPosition
- New notifyPosition value. Default value is "T"- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getNotifyPosition
Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center. The message will be shown at the center of the edge specified (or the very center for "C").- Returns:
- Current notifyPosition value. Default value is "T"
-
setNotifyType
NotifyType fornotifyMessage
.- Parameters:
notifyType
- New notifyType value. Default value is "message"- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created- See Also:
-
getNotifyType
NotifyType fornotifyMessage
.- Returns:
- Current notifyType value. Default value is "message"
- See Also:
-
setPassThruOutput
Does this processElement pass through output from the last executed task (i.e. transient state)?See
taskInputExpressions
for details on the transient state outputs.Note that this property does not affect the task at all but is an indicator to the user and to the workflow editor of the behavior of the task as coded (See
Process.passThruTaskOutput()
).- Overrides:
setPassThruOutput
in classProcessElement
- Parameters:
passThruOutput
- New passThruOutput value. Default value is false- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getPassThruOutput
Does this processElement pass through output from the last executed task (i.e. transient state)?See
taskInputExpressions
for details on the transient state outputs.Note that this property does not affect the task at all but is an indicator to the user and to the workflow editor of the behavior of the task as coded (See
Process.passThruTaskOutput()
).- Overrides:
getPassThruOutput
in classProcessElement
- Returns:
- Current passThruOutput value. Default value is false
-
setRequestProperties
public FormSaveDataTask setRequestProperties(DSRequest requestProperties) throws IllegalStateException Additional properties to set on the DSRequest that will be issued to perform save.Note that
willHandleError
will always be settrue
.- Parameters:
requestProperties
- New requestProperties value. Default value is null- Returns:
FormSaveDataTask
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 the DSRequest that will be issued to perform save.Note that
willHandleError
will always be settrue
.- Returns:
- Current requestProperties value. Default value is null
-
setShowNotification
Should a notification message (defined as notifyMessage) be shown after save completes successfully?- Parameters:
showNotification
- New showNotification value. Default value is null- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getShowNotification
Should a notification message (defined as notifyMessage) be shown after save completes successfully?- Returns:
- Current showNotification value. Default value is null
-
setUnboundNotifyMessage
public FormSaveDataTask setUnboundNotifyMessage(String unboundNotifyMessage) throws IllegalStateException The default message to be shown when a target form is not bound to a DataSource.- Parameters:
unboundNotifyMessage
- New unboundNotifyMessage value. Default value is "Saved successfully"- Returns:
FormSaveDataTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getUnboundNotifyMessage
The default message to be shown when a target form is not bound to a DataSource.- Returns:
- Current unboundNotifyMessage value. Default value is "Saved successfully"
-