Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/infrastructure/EditingUtils"

Index

Functions

createAttachmentFromFileData

  • createAttachmentFromFileData(fileData: FileData, feature: Feature, esriFeature: Graphic, esriFeatureLayer: FeatureLayer, reportStatus: function, callback: function, app: ViewerApplication): void
  • Parameters

    • fileData: FileData
    • feature: Feature
    • esriFeature: Graphic
    • esriFeatureLayer: FeatureLayer
    • reportStatus: function
        • (status: string): void
        • Parameters

          • status: string

          Returns void

    • callback: function
        • (results: any): void
        • Parameters

          • results: any

          Returns void

    • app: ViewerApplication

    Returns void

findCardinalityConflict

  • findCardinalityConflict(app: ViewerApplication, layer: FeatureLayer, changedAttributes: any): Promise<null | object>
  • findCardinalityConflict

    Parameters

    Returns Promise<null | object>

formatAttachmentName

  • formatAttachmentName(name: string): string
  • Parameters

    • name: string

    Returns string

getChangedSubtypeFields

  • getChangedSubtypeFields(oldType: FeatureType, newType: FeatureType, subtypeField: string): string[]
  • Given two subtypes, produces a list of all fields which have different domains in each subtype.

    Parameters

    • oldType: FeatureType
    • newType: FeatureType
    • subtypeField: string

    Returns string[]

getDefaultCode

  • getDefaultCode(feature: Feature, fieldName: string, typeId?: any): any
  • Calculates the default code for a given coded value field and subType

    Parameters

    • feature: Feature
    • fieldName: string
    • Optional typeId: any

    Returns any

resolveFeature

updateFeatures

  • updateFeatures(features: Feature[], editedFeature: Graphic): void
  • Given an edited feature, and a collection of features, update the collection with the attributes from the edited feature

    Parameters

    • features: Feature[]
    • editedFeature: Graphic

    Returns void