Question

Getting a specific Detail Data

Hello Creatio Community,



I want to get data for a specific detail in 'onEntityInitialized '. 

Can someone help?

Thanks.

Like 0

Like

1 comments

Hello,



If you are looking for a method that works in the editable registry, it is initEntity (from the editing page). We implemented the filling as follows:

initEntity: function(callback, scope) {
                this.callParent(arguments);
                if (this.isAddMode()) {
                    var DefaultValuesArray = this.get("DefaultValues");
                    var price = this.Ext.Array.findBy(DefaultValuesArray, function(item) {
                        return item.name === "BCPrice";
                    }, this);
                    if (price) {
                        this.set("BCPrice", price.value);
                    }
                    this.calcAmount();
                }
            }

 
Show all comments