JavaScript Entity API - fieldenms/tg GitHub Wiki
Master / Selection Criteria
setEditorValue4PropertyFromConcreteValue(propName, value)-- convertsvalueto editor representation (full value => binding value => string value) and sets it into corresponding editor with subsequent validation request initiation.
Examples: TimesheetWebUiCommons.createCentre, StandardActions.mkAddNewAndAssignPropAction (DeliveryLocationWebUiConfig.createMaster, SupplierWebUiConfig.createSupplierMaster)
setEditorValue4Property(propName, funcEntity, funcEntityProperty)-- convertsfuncEntity.get(funcEntityProperty)to editor representation (full value => binding value => string value) and sets it into corresponding editor with subsequent validation request initiation.
Examples: AttachmentCommons.mkUploadAttachmentPropertyActionOnMaster, ImportWorkDescActionWebUiConfig.createImportWorkDescAction
Editor
assignConcreteValueassignValue
Action (tg-ui-action)
modifyFunctionalEntity(actionMaster._currBindingEntity, actionMaster, action)-- custom side-effectful callback to employ changing of functional binding entity after retrieval but before saving; set it intoactioninIPreActionimplementations; most likely to be used in conjunction with:entity.setAndRegisterPropertyTouch-- sets property value and registers it in ordered list of entity changes