Skip to content

JavaScript Entity API

jhou-pro edited this page Jul 30, 2020 · 10 revisions

Master / Selection Criteria

  • setEditorValue4PropertyFromConcreteValue(propName, value) -- converts value to 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) -- converts funcEntity.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

  • assignConcreteValue
  • assignValue

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 into action in IPreAction implementations; most likely to be used in conjunction with:
  • entity.setAndRegisterPropertyTouch -- sets property value and registers it in ordered list of entity changes
Clone this wiki locally