function ListForm(a) {
var ArrTemp = new Array();
var myField = app.field(a).getData();
myField.OnData.bind(function () {
myField.rows.forEach(function (row) {
var ObjTemp = new Object();
ObjTemp.id = String(row.qElemNumber);
ObjTemp.name = row.qText;
ArrTemp.push(ObjTemp);
});
ArrTemp = [];
});
var DataTemp = new Object();
DataTemp.model = "0"
DataTemp.availableOptions = ArrTemp;
return DataTemp;
};
$scope.data1 = ListForm($scope.layout.field1);
As a result, I receive field of field (from prop) for use in template in block SELECT OPTION
Well, but it's work after save edit and refresh sheet (CTRL+F5)
What needs to be down for the chsnges to take effect immediately? Without forced sheet refresh?
Thank you for you help.