Hi All,
Can anyone please assist me to overcome the below error in new UI using H5 script?
Can You put all the code?
var H5TypedScriptPPS200 = /** @class */ (function () { function H5TypedScriptPPS200(scriptArgs) { this.controller = scriptArgs.controller; this.log = scriptArgs.log; this.args = scriptArgs.args; } /** * Script initialization function. */ H5TypedScriptPPS200.Init = function (args) { new H5TypedScriptPPS200(args).run(); }; H5TypedScriptPPS200.prototype.run = function () { var _thisObject = this; var supplierNumbers = []; // Get customers var supplierNumbersRequest = new MIRequest(); supplierNumbersRequest.program = 'CRS620MI'; supplierNumbersRequest.transaction = 'LstSuppliers'; //Fields that should be returned by the transaction supplierNumbersRequest.outputFields = ['SUNO', 'SUNM']; supplierNumbersRequest.maxReturnedRecords = 0; var supplierPromise = MIService.Current.executeRequest(supplierNumbersRequest); supplierPromise.then(function (response) { response.items.forEach(function (item) { supplierNumbers.push(item.SUNO + ":" + item.SUNM); }); }); $('#WASUNO').autocomplete({ source: supplierNumbers, select: function (event, ui) { this.value = ""; _thisObject.log.Info("You selected: " + ui.item.label); _thisObject.changeCustomerNumber(ui.item.label); return false; } }); }; H5TypedScriptPPS200.prototype.changeCustomerNumber = function (suno) { var sunoAfterTrim = suno.split(':')[0]; this.log.Info('Setting value - ' + sunoAfterTrim); this.controller.SetValue('WASUNO', sunoAfterTrim); }; return H5TypedScriptPPS200;}());//# sourceMappingURL=H5TypedScriptPPS200.js.map