public class GridEditRecordTask extends ComponentTask
criteria
is specified. Alternatively, if editFirstRecord
is specified, the first record
is edited. If criteria is provided and the criteria matches more than one record, the first matched record is edited. Additionally, if the record to be edited is not visible, the record will be scrolled into view.
Note that the record to be matched must already be loaded in the grid - no fetch will be performed.
config, configOnly, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
GridEditRecordTask() |
GridEditRecordTask(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
Criteria |
getCriteria()
Criteria (including AdvancedCriteria) used to locate the record to be edited.
|
java.lang.Boolean |
getEditFirstRecord()
When neither
initialValues nor Criteria are provided should the first record in the grid be edited? If not set, a new record
is added. |
Record |
getInitialValues()
Initial values for a new edit record.
|
static GridEditRecordTask |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
GridEditRecordTask |
setCriteria(Criteria criteria)
Criteria (including AdvancedCriteria) used to locate the record to be edited.
|
GridEditRecordTask |
setEditFirstRecord(java.lang.Boolean editFirstRecord)
When neither
initialValues nor Criteria are provided should the first record in the grid be edited? If not set, a new record
is added. |
GridEditRecordTask |
setInitialValues(Record initialValues)
Initial values for a new edit record.
|
getComponentBaseClass, getComponentBaseClassAsStringArray, getComponentId, getComponentRequiresDataSource, getTargetComponent, getTargetComponent, setComponentBaseClass, setComponentBaseClass, setComponentId, setComponentRequiresDataSource
completeElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getJsObj, getMockMode, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, isCreated, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, updateGlobalIDInCriteria, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValues
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
public GridEditRecordTask()
public GridEditRecordTask(com.google.gwt.core.client.JavaScriptObject jsObj)
public static GridEditRecordTask getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
create
in class ComponentTask
public GridEditRecordTask setCriteria(Criteria criteria) throws java.lang.IllegalStateException
Data values in this criteria prefixed with "$" will be treated as dynamic expressions
which can access the inputs to this task as $input - see TaskInputExpression
.
Specifically, this means that for simple criteria, any property value that is a String and is prefixed with "$" will be
assumed to be an expression, and for AdvancedCriteria, the same treatment will be applied to Criterion.value
.
This property supports DynamicCriteria
- use Criterion.valuePath
to refer to values in the Process.ruleScope
.
criteria
- New criteria value. Default value is nullGridEditRecordTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic Criteria getCriteria()
Data values in this criteria prefixed with "$" will be treated as dynamic expressions
which can access the inputs to this task as $input - see TaskInputExpression
.
Specifically, this means that for simple criteria, any property value that is a String and is prefixed with "$" will be
assumed to be an expression, and for AdvancedCriteria, the same treatment will be applied to Criterion.value
.
This property supports DynamicCriteria
- use Criterion.valuePath
to refer to values in the Process.ruleScope
.
public GridEditRecordTask setEditFirstRecord(java.lang.Boolean editFirstRecord) throws java.lang.IllegalStateException
initialValues
nor Criteria
are provided should the first record in the grid be edited? If not set, a new record
is added.editFirstRecord
- New editFirstRecord value. Default value is nullGridEditRecordTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getEditFirstRecord()
initialValues
nor Criteria
are provided should the first record in the grid be edited? If not set, a new record
is added.public GridEditRecordTask setInitialValues(Record initialValues) throws java.lang.IllegalStateException
Data values prefixed with "$" will be treated as a TaskInputExpression
excluding "$input" and "$inputRecord" references.
initialValues
- New initialValues value. Default value is nullGridEditRecordTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic Record getInitialValues()
Data values prefixed with "$" will be treated as a TaskInputExpression
excluding "$input" and "$inputRecord" references.