Code: Select all
function getItemData(itemNumber) {
debugger;
var itm = itemNumber.toUpperCase();
ajaxJSON({
url: "/profoundui/universal/cmtGetItemInfoTest",
params: {
itemNumber:itm
},
method: "get",
async: false,
handler: function(ob) {
//alert("Success = " + ob.success);
if (ob.success) {
changeElementValue("txtItemDesc",ob.itemDescription);
changeElementValue("txtEnableExclusive",ob.EnableExcl);
applyProperty("TextBox2","set focus","true");
applyProperty("TextBox2","field type","textbox");
}
else {
pui.errorTip(getObj("TextBox1"),ob.message,0);
}
}
});
}