List of loaded attributes in the associative array

interface iDataObject {
    ID: iAttrVal;
    _desc: iObjectDesc;
    isNew: boolean;
    isReadonly: boolean;
    myObjName: string;
    addPresenter(ibase): void;
    checkValueTypes(attrName?): void;
    getAttributes(): object;
    getIcon(firstPart?, secondPart?): string;
    getObjDesc(nameOnly?, internal?): string;
    removePresenter(ibase): void;
    setValue(fieldName, fieldValue): boolean;
    update(objAttrs?): void;
}

Hierarchy (view full)

Properties

Unique object identification

description of object related with data

isNew: boolean

Returns true iff object is new - has no id

isReadonly: boolean

Marks that object is open readonly. Set by detail when detail is open in readonly mode - seta after the evaluation of the readonly value i.e. after evaluation of the methods WARNING Methods cannot use it!!!

myObjName: string

Returns object name Use for abstract objects

Example

return tskRisk

Methods

  • Add new presentor to the list of linked presentors. Presenter is any window that display all or a part of the object

    Parameters

    • ibase: ifBase

    Returns void

  • Methods checks all attribues and if possible, converts them to the numbers Use method in case that you want to make arithmetics with fields from databse - they are mostly loaded as string event when they are numbers DO NOT CALL: Called automatically before methods are ecvaluated *

    Parameters

    • Optional attrName: string

    Returns void

  • Return list of all attributes Used for data fileds presentations in console

    Returns object

  • Returns object icon WARNING: It does not return safely dynamic icon, e.g. when used in the list eval, dynamic icon is not evaluated for lines

    Parameters

    • Optional firstPart: string
    • Optional secondPart: string

    Returns string

  • Returns description of this object if stored in the objDesc cache or translated objet name Does not evaluate object name because it has no access to the eval function!

    Parameters

    • Optional nameOnly: boolean

      : boolean = false - when true, function returns only translated name of the object, not real object description when true, the second attribute is disregardfed

    • Optional internal: boolean

      : boolean = true - when true (default) - function used the loaded data to get the object evaluation when false, function try to load the object descrption from the cache - it is probably there. the false value is disregarded and could be used only if object is technically defined but not loaded (e.g. when created by clip)

    Returns string

  • Remove presentero from list of linked presentors

    Parameters

    • ibase: ifBase

    Returns void

  • Set new value to the field and update detail view of the object if exists Method is not published internally in the application because it is inteded for use by the evaluation engine However when it will make sense it could be used internally as well but be carefull about the recursion!!!

    Parameters

    Returns boolean

  • udpates data object with new values if there is attribute _objData it is split to the independent fields

    Parameters

    • Optional objAttrs: object

    Returns void

    Example

    $command->values = ["_objData" => json_encode($ret)];   - PHP function can send all data in one field

    Warning: data will be mixed with other data, evaluated methods etc.