Additional field of the data attribute defines where is stored information about the curency

interface da_fCurrency {
    _enumLimit?: string;
    _hint?: string;
    _tooltip?: string;
    _translation?: string;
    alwaysSendServer?: boolean;
    check?: string;
    checkWarn?: string;
    currField: string;
    default?: string;
    editable?: string;
    enum?: string;
    enumLimit?: string;
    hint?: string;
    icon?: string;
    indexed?: boolean;
    label?: string | boolean;
    length?: number;
    name: string;
    options?: string[];
    order?: string;
    rEdit?: string;
    rVisible?: string;
    readonly?: string | boolean;
    remote?: string;
    required?: boolean;
    shortcut?: string;
    source?: iobjAttrDataSource;
    style?: string | object;
    table?: string;
    type: iattrDataType;
    unit?: string;
    unitField?: string;
    visible?: string | boolean;
    where?: string;
    whereForNew?: string;
}

Hierarchy (view full)

Properties

_enumLimit?: string

optional evaluated enum limit should contain name of the field used in the enums. Field in the enum can be of the type bool or string, When string it is expected to be condition to evaluate when contains condition "=" at start, then it is evaluated before using as a condition when containt '='=conditiion'" first condition is evaluated to get the second one. Second is used as a condition evaluated for each enum attribute in this case enum fields are attributes in the evaluation (see crmAbstractSubject for example)

_hint?: string
_tooltip?: string
_translation?: string
alwaysSendServer?: boolean

Optional mark requesting to send value of the field always to the serer When value s marked true, update always send value to the server - in the group field if modified and in the group attrParam when not modified Use when value is necessary for preUpdate/postUpdate function

check?: string
checkWarn?: string
currField: string

name of the object field in which is stored informtion about the currency for this field

default?: string

item could have default value - string or some of the value patterns - calculated if value is null, makes senese with =, e.g. '@selfUserID', '=global.today + 1', evaluation has not any available object, has access to the object of the detail / list from which field was open

editable?: string

command evaluated in order to check if user can edit field. Negation of the readonly. Has lower priority and is disregarded in case that readonly is defined. Do not use both of them Not evaluated for new objects. User visible to hide elements not editable in the new object aka marks

enum?: string
enumLimit?: string

Optional name of the field defined in the enum definition that is used to select which fields can be used and which cannot String is only name or condition; if condition it is evaluated and should return the name

Warning: evaluation not yet implemented

hint?: string
icon?: string
indexed?: boolean

mark that table has index for this field - UNUSED

label?: string | boolean

Optinonal commands about label false - no label is printed string - string to translate (used instead of fieldname) true - does not affects functionality (useless) evaluaated - (=obj.enumVal('x')) --- should return translated value, result is not translated. Remember that obj is empty (nevertheless defined) for new object

length?: number
name: string
options?: string[]

List of options that attribute might have. Extensible and objects with special implementation can extend list with its own options Options supported by framework:

  • parentLink - attribute is link to the parent in the hierarchical structure
order?: string

optional element order

rEdit?: string
rVisible?: string
readonly?: string | boolean

could limit, if the field is user-editable, when false, it can stil be updated by server functions but never directly by user; condition allowed; default false not evaluated / considered for new objects; use visible field to hide new objects fields

remote?: string
required?: boolean
shortcut?: string

Optional shortcut

style?: string | object

className (in case thet style is string) or list of styles using htmlelements.style JS attributes

Example

style='box--dataImportant'  box--dataImportant should be defined class in the css styles

Example

syle={"maxWidth":"20em"}    set up the maxWidth style attribute for the box

Example

styl={"border":"=obj.status=='AC'?'solid':'none' "}
table?: string
unit?: string

optional unit value (like time etc.) unit value could be theoretically evaluated (kb, MB) but it is never recalculated during editing

unitField?: string

Name of the object field with unit value

visible?: string | boolean
where?: string

for links (remote ids) only - condition to select item

whereForNew?: string

for links (remote ids) only - condition to select item used only in case that object is newly created