|
|
@ -920,10 +920,19 @@ $(document).ready(function() {
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
console.log("HelperDefAutofill:")
|
|
|
|
console.log("HelperDefAutofill:")
|
|
|
|
console.log(lResponseJSON)
|
|
|
|
console.log(lResponseJSON)
|
|
|
|
|
|
|
|
//ArgDict merge
|
|
|
|
|
|
|
|
var lArgDictTargetDict = lResponseJSON["ArgDict"]
|
|
|
|
|
|
|
|
var lArgDictStr = $(".mGlobal-pyOpenRPA-Debugging-ArgDict")[0].value
|
|
|
|
|
|
|
|
if (lArgDictStr !="" && lArgDictStr !=null) {
|
|
|
|
|
|
|
|
lArgDictLastDict = JSON.parse(lArgDictStr)
|
|
|
|
|
|
|
|
lArgDictTargetDict = mGlobal.pyOpenRPA.DebuggingAutofillMerge(lArgDictTargetDict, lArgDictLastDict)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgList")[0].value = JSON.stringify(lResponseJSON["ArgList"])
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgList")[0].value = JSON.stringify(lResponseJSON["ArgList"])
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgDict")[0].value = JSON.stringify(lResponseJSON["ArgDict"])
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgDict")[0].value = JSON.stringify(lArgDictTargetDict)
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgGSettingsStr")[0].value = JSON.stringify(lResponseJSON["ArgGSettingsStr"])
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgGSettingsStr")[0].value = JSON.stringify(lResponseJSON["ArgGSettingsStr"])
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgLoggerStr")[0].value = JSON.stringify(lResponseJSON["ArgLoggerStr"])
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-ArgLoggerStr")[0].value = JSON.stringify(lResponseJSON["ArgLoggerStr"])
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataType: "text"
|
|
|
|
dataType: "text"
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -966,4 +975,14 @@ $(document).ready(function() {
|
|
|
|
dataType: "text"
|
|
|
|
dataType: "text"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mGlobal.pyOpenRPA.DebuggingAutofillMerge=function(inTargetDict, inLastDict) {
|
|
|
|
|
|
|
|
// Merge 2 dict (get values from Last dict if key exists in new dict
|
|
|
|
|
|
|
|
for (const [lKeyStr, lValue] of Object.entries(inTargetDict)) {
|
|
|
|
|
|
|
|
//Check if key exists in LastDict
|
|
|
|
|
|
|
|
if (lKeyStr in inLastDict) {
|
|
|
|
|
|
|
|
inTargetDict[lKeyStr] = inLastDict[lKeyStr]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return inTargetDict
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|