Issue with pui.show()
Posted: Thu Mar 16, 2023 10:33 am
I'm trying to use JS to show a message on top of another screen using pui.show(). The display is a universal display/program that basically displays a message and returns a value, which in this application, doesn't do anything. I'm having an issue having the message screen erasing the original screen. Here is the code I'm using.
Code: Select all
function showAlert(itemNumber) {
debugger;
ajaxJSON({
url: "http://iseries.dasinc.com:8080/profoundui/universal/getItemAlertTest",
params: {
itemNumber:itemNumber
},
method: "get",
async: false,
handler: function(ob) {
//alert("Success = " + ob.success);
if (ob.success == "true") {
//alert("printer started");
var data = {"CNFBCLTXT":" ",
"CNFBCFTXT":"Ok",
"CNFBTNCNVIS":"0",
"CNFHDG":"Alert ! !",
"CNFLBL":ob.message};
pui.show({
path: "PUISRC/QDDSSRC(WMSCONFIRM)",
screen:"CONFFMTM",
data:data,
transition:{"overlay":true},
handler: function(response){
if (response["CNFBTNCFM"] == "1") {
document.body.innerHTML = "";
return 0;
}
}
});
}
else {
return 0;
}
}
});
}