public class ERD2WEditableListPage extends ERD2WListPage implements ERXExceptionHolder, ERDObjectSaverInterface
ERDMassModifyButton
class that may be more appropriate depending on your needs)
To enable the mass change feature on an editable list page, do the following:
1/ Add a "showMassChange" rule that returns "true" for your edit list page
2/ If you want to restrict the keys that can be "mass edited", add a displayPropertyKeys rule with a restricted set of keys with the qualifer "(massChangeEntityDisplay = 1)"
Known Issues:
changing the number of items per batch causes problems (the display group's batch is updated too soon in the request/response loop)Name | Description |
---|---|
showBanner | showBanner |
object | object |
isEntityInspectable | isEntityInspectable |
shouldValidateBeforeSave | shouldValidateBeforeSave |
shouldSaveChanges | shouldSaveChanges |
shouldRecoverFromOptimisticLockingFailure | shouldRecoverFromOptimisticLockingFailure |
saveLabelTemplateKey | saveLabelTemplateKey |
displayNameForEntity | displayNameForEntity |
showMassChange | showMassChange |
Modifier and Type | Class and Description |
---|---|
class |
ERD2WEditableListPage.ERDMassChangeGenericRecord |
ERD2WPage.Keys, ERD2WPage.ValidationDelegate
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected WODisplayGroup |
_massChangeDisplayGroup |
protected ERD2WEditableListPage.ERDMassChangeGenericRecord |
_massChangeEO |
String |
dummy |
static org.apache.log4j.Logger |
log |
static String |
MassChangeEntityDisplayKey |
_displayGroup, _hasToUpdate, _rowFlip, _sessionID, _shouldRefetch, dataSourceState, referenceEO
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationDelegate, validationDelegateInited, validationLog
_eo, _localContext, currentObjectKey
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERD2WEditableListPage(WOContext context) |
_fetchDisplayGroup, alternatingColorForRow, alwaysRefetchList, appendToResponse, backgroundColorForRow, checkSortOrderingKeys, colorForRow, createDisplayGroup, defaultSortKey, deleteObjectAction, descriptionForResponse, didUpdate, displayGroup, editingContextDidSaveChanges, editObjectAction, fetchIfNecessary, formTargetJavaScriptUrl, inspectObjectAction, invokeAction, isEntityEditable, isEntityPrintable, isEntityReadOnly, isListEmpty, isSelecting, isSelectingNotTopLevel, isValidSortKey, listSize, localInstanceOfObject, printerFriendlyVersion, printerFriendlyVersion, referenceEOs, selectedObject, selectedObjects, selectObjectAction, sessionID, setBackgroundColorForRow, setDataSource, setSelectedObject, setSelectedObjects, setSortOrderingsOnDisplayGroup, setupPhase, shouldShowBatchNavigation, shouldShowSelectAll, sortOrderings, targetString, urlForCurrentState, useBatchingDisplayGroup, userPreferencesCanSpecifySorting, warmUpForDisplay, willUpdate
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, awake, branch, branchChoices, branchName, clearTabSectionsContents, clickToOpenEnabled, cssClassForPageContainerElement, cssClassForPropertyKey, cssClassForPropertyName, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, displayVariant, editingContext, errorKeyOrder, errorMessage, errorMessageForPropertyKey, errorMessages, hasActualChanges, hasBranchChoices, hasErrors, hasValidationExceptionForPropertyKey, inlineStyleDeclarationForPropertyKey, inlineStyleDeclarationForPropertyName, isEmbedded, isKeyOmitted, isObjectDeleteable, isObjectEditable, isObjectInspectable, isTopLevelPage, latestEntryForCurrentPropertyKey, makeStatsKey, nextPageDelegate, nextPageFromDelegate, now, object, pageController, pageWithName, pageWrapperName, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setPageController, settings, setValidationDelegate, shouldCollectValidationExceptions, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationDelegate
alternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindings
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final org.apache.log4j.Logger log
public String dummy
public static final String MassChangeEntityDisplayKey
protected WODisplayGroup _massChangeDisplayGroup
protected ERD2WEditableListPage.ERDMassChangeGenericRecord _massChangeEO
public ERD2WEditableListPage(WOContext context)
public int colspanForNavBar()
public int numberOfObjectsPerBatch()
numberOfObjectsPerBatch
in class ERD2WListPage
public boolean objectWasSaved()
objectWasSaved
in interface ERDObjectSaverInterface
protected NSMutableDictionary errorMessagesDictionaries()
public NSMutableDictionary errorDictionaryForObject(Object object)
public NSMutableDictionary currentErrorDictionary()
public boolean showCancel()
ERD2WListPage
showCancel
in class ERD2WListPage
public boolean isEntityInspectable()
isEntityInspectable
in class ERD2WListPage
public void setObject(EOEnterpriseObject eo)
ERD2WPage
InspectPageInterface
public WOComponent backAction()
backAction
in class ERD2WListPage
public WOComponent nextPage()
public boolean shouldValidateBeforeSave()
public boolean shouldSaveChanges()
public boolean shouldRecoverFromOptimisticLockingFailure()
public boolean tryToSaveChanges(boolean validateObjects)
public WOComponent saveAction()
public WOComponent cancel()
public void validationFailedWithException(Throwable e, Object value, String keyPath)
ERD2WPage
validationFailedWithException
in class ERD2WPage
public void clearValidationFailed()
ERD2WPage
ERXExceptionHolder
interface.clearValidationFailed
in interface ERXExceptionHolder
clearValidationFailed
in class ERD2WPage
public WOComponent update()
public void takeValuesFromRequest(WORequest r, WOContext c)
ERD2WPage
takeValuesFromRequest
in class ERD2WListPage
public String saveLabel()
public boolean shouldShowMassChange()
public com.webobjects.directtoweb.D2WContext d2wContextForMassChangeEO()
public WODisplayGroup massChangeDisplayGroup()
public ERD2WEditableListPage.ERDMassChangeGenericRecord massChangeEO()
public WOComponent clearMassChangeEO()
public WOComponent propagateChangesToVisibleObjects()
public String propagateChangesDetails()
Copyright © 2002 – 2024 Project Wonder.