Creatio development guide
PDF
This documentation is valid for Creatio version 7.12.0. We recommend using the newest version of Creatio documentation.

New bindTo format at setting connection between view and viewModel

Glossary Item Box

Introduction

You can use the bindTo property of the Ext.create() construction function configuration object to indicate the connection between a view model attribute and a view value when creating the Terrasoft namespace components. Example:

Ext.create("Terrasoft.BaseEdit", {
   value: {
      bindTo: "Value"
   }
});

Starting from version 7.12.0 you already have an opportunity to indicate this connection in a new format.

Ext.create("Terrasoft.BaseEdit", {
   value: "$Value"
});

ATTENTION

The previous format also remains available for usage.

NOTE

The new format became possible due to usage of automatically generated properties (see "Automatically generated view model properties").

Usage of the new bindTo format in the diff array

In the diff array configuration object values property of the view model schemas the new bindTo format is implemented for tab titles (for objects, whose “propertyName” is populated with the “tabs” value).

...
{
    "operation": "insert",
    "name": "GeneralInfoTab",
    "parentName": "Tabs",
    "propertyName": "tabs",
    "index": 0,
    "values": {
        "caption": "$Resources.Strings.GeneralInfoTabCaption",
        "items": []
    }
},
...

For the rest of elements the previous format is valid.

...
{
    "operation": "insert",
    "parentName": "ProfileContainer",
    "propertyName": "items",
    "name": "JobTitleProfile",
    "values": {
        "bindTo": "JobTitle",
        "layout": {...}
   }
},
...
© bpm'online 2002-2019.

Did you find this information useful?

How can we improve it?