Hello Creatio Community,
I want to get data for a specific detail in 'onEntityInitialized '.
Can someone help?
Thanks.
Like
1 comments
19:13 Jun 14, 2023
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