Smart Client version: v130p_2022-10-26_PowerEdition
Browser version: Chrome 110.0.5481.77 (Official Build) (64-bit)
Hi, i have a window that has two databound components, dynaminc form and a editable list grid. I want to save data on both components using queuing.
Problem: If I call the save function,which saves the data on the window and close the window, then reopen the window for further editing and try to save, an uncaught type error is thrown on the front-end. The request returns with no error/exceptions from the server however the error is thrown on the front end. The stacktrace from the developer tools is also uploaded
Here is the save and callback functions:
//Save Button Function
save = function () {
isc.RPCManager.startQueue();
dfDetails.saveData(
function (dsResponse, dsData, dsRequest) {
if (dsResponse.status != DSResponse.STATUS_SUCCESS) {
isc.warn("Form save error");
}
}
);
lgdDetailsTable.saveAllEdits();
isc.RPCManager.sendQueue(callback);
}
//callback Function
callback = function (responses) {
let lvarErrorExistsFlag = false;
let lvarRegisterSubmitResponse;
for (let i = 0; i < responses.length; i++) {
lvarRegisterSubmitResponse = responses[i];
if (lvarRegisterSubmitResponse.status != DSResponse.STATUS_SUCCESS) {
lvarErrorExistsFlag = true;
}
}
if (lvarErrorExistsFlag == false) {
winDetails.closeClick();
isc.say("Saved");
}
}
STACK TRACE:
ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320 Uncaught TypeError: Cannot read properties of null (reading 'linearMode')
at _3.isc_FormItem___mayShowHintInField [as $2257] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:1413:211)
at _3.isc_TextItem__mayShowHintInField [as $207e] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:2110:1238)
at _3.isc_FormItem__getShowHintInField [as $712] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:1413:384)
at _3.isc_TextItem__showValue [as $124t] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:2195:101)
at _3.isc_FormItem_setValue [as setValue] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:1315:28)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:308:162)
at _3.isc_TextItem_setValue [as setValue] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:2194:9)
at _3.isc_DynamicForm_setItemValues [as setItemValues] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:614:236)
at _3.isc_DynamicForm_setValues [as setValues] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:492:22)
at _3.isc_Canvas_dbcDataSourceDataChanged [as dbcDataSourceDataChanged] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:4696:335)
at _3.eval (eval at isc__makeFunction (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:88:1135), <anonymous>:4:10)
at _3.thunk (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:356:28)
at _3.observation [as dataChanged] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:352:394)
at _3.isc_DataSource_updateCaches [as updateCaches] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:404:6)
at Object.isc_c_DataSource_handleUpdate [as handleUpdate] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:255:163)
at _3.isc_DataSource_fireResponseCallbacks [as fireResponseCallbacks] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:603:192)
at _3.isc_DataSource__completeResponseProcessing [as $38b] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:599:6)
at _3.isc_DataSource__handleSCServerReply [as $50h] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:2627:6)
at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320:104)
at _3.isc_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:395:302)
at _3.isc_c_RPCManager_fireReplyCallback [as fireReplyCallback] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1549:344)
at _3.isc_c_RPCManager_fireReplyCallbacks [as fireReplyCallbacks] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1551:120)
at _3.isc_c_RPCManager_performOperationReply [as performOperationReply] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1547:13)
at _3.isc_c_RPCManager__performTransactionReply [as $39d] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1537:6)
at _3.isc_c_RPCManager_performTransactionReply [as performTransactionReply] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1497:20)
at eval (eval at isc__makeFunction (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:88:1135), <anonymous>:3:16)
at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320:104)
at _3.isc_c_Comm_performXmlTransactionReply [as performXmlTransactionReply] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:2098:27)
at eval (eval at isc__makeFunction (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:88:1135), <anonymous>:3:10)
at Object.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320:104)
at _3.isc_c_Comm__fireXMLCallback [as $h0] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:2077:440)
at XMLHttpRequest._15 (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:2085:367)
Timely response will be highly appreciated. Thanks in advance.
Browser version: Chrome 110.0.5481.77 (Official Build) (64-bit)
Hi, i have a window that has two databound components, dynaminc form and a editable list grid. I want to save data on both components using queuing.
Problem: If I call the save function,which saves the data on the window and close the window, then reopen the window for further editing and try to save, an uncaught type error is thrown on the front-end. The request returns with no error/exceptions from the server however the error is thrown on the front end. The stacktrace from the developer tools is also uploaded
Here is the save and callback functions:
//Save Button Function
save = function () {
isc.RPCManager.startQueue();
dfDetails.saveData(
function (dsResponse, dsData, dsRequest) {
if (dsResponse.status != DSResponse.STATUS_SUCCESS) {
isc.warn("Form save error");
}
}
);
lgdDetailsTable.saveAllEdits();
isc.RPCManager.sendQueue(callback);
}
//callback Function
callback = function (responses) {
let lvarErrorExistsFlag = false;
let lvarRegisterSubmitResponse;
for (let i = 0; i < responses.length; i++) {
lvarRegisterSubmitResponse = responses[i];
if (lvarRegisterSubmitResponse.status != DSResponse.STATUS_SUCCESS) {
lvarErrorExistsFlag = true;
}
}
if (lvarErrorExistsFlag == false) {
winDetails.closeClick();
isc.say("Saved");
}
}
STACK TRACE:
ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320 Uncaught TypeError: Cannot read properties of null (reading 'linearMode')
at _3.isc_FormItem___mayShowHintInField [as $2257] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:1413:211)
at _3.isc_TextItem__mayShowHintInField [as $207e] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:2110:1238)
at _3.isc_FormItem__getShowHintInField [as $712] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:1413:384)
at _3.isc_TextItem__showValue [as $124t] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:2195:101)
at _3.isc_FormItem_setValue [as setValue] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:1315:28)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:308:162)
at _3.isc_TextItem_setValue [as setValue] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:2194:9)
at _3.isc_DynamicForm_setItemValues [as setItemValues] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:614:236)
at _3.isc_DynamicForm_setValues [as setValues] (ISC_Forms.js?isc_version=v13.0p_2022-10-26.js:492:22)
at _3.isc_Canvas_dbcDataSourceDataChanged [as dbcDataSourceDataChanged] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:4696:335)
at _3.eval (eval at isc__makeFunction (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:88:1135), <anonymous>:4:10)
at _3.thunk (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:356:28)
at _3.observation [as dataChanged] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:352:394)
at _3.isc_DataSource_updateCaches [as updateCaches] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:404:6)
at Object.isc_c_DataSource_handleUpdate [as handleUpdate] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:255:163)
at _3.isc_DataSource_fireResponseCallbacks [as fireResponseCallbacks] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:603:192)
at _3.isc_DataSource__completeResponseProcessing [as $38b] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:599:6)
at _3.isc_DataSource__handleSCServerReply [as $50h] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:2627:6)
at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320:104)
at _3.isc_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:395:302)
at _3.isc_c_RPCManager_fireReplyCallback [as fireReplyCallback] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1549:344)
at _3.isc_c_RPCManager_fireReplyCallbacks [as fireReplyCallbacks] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1551:120)
at _3.isc_c_RPCManager_performOperationReply [as performOperationReply] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1547:13)
at _3.isc_c_RPCManager__performTransactionReply [as $39d] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1537:6)
at _3.isc_c_RPCManager_performTransactionReply [as performTransactionReply] (ISC_DataBinding.js?isc_version=v13.0p_2022-10-26.js:1497:20)
at eval (eval at isc__makeFunction (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:88:1135), <anonymous>:3:16)
at _3.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320:104)
at _3.isc_c_Comm_performXmlTransactionReply [as performXmlTransactionReply] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:2098:27)
at eval (eval at isc__makeFunction (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:88:1135), <anonymous>:3:10)
at Object.isc_c_Class_fireCallback [as fireCallback] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:320:104)
at _3.isc_c_Comm__fireXMLCallback [as $h0] (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:2077:440)
at XMLHttpRequest._15 (ISC_Core.js?isc_version=v13.0p_2022-10-26.js:2085:367)
Timely response will be highly appreciated. Thanks in advance.
Comment