Hi ,
We did some widget customizations for one CTD on V8, after that when we try to close the edit form without changing anything, the system keep alerting "Unsaved Changes
Save changes to CTD "CI name"? "
ex: “Unsaved Changes
Save changes to Policy_CT "Equal Employment Opportunity - Addendum - United States (EN),1045"?”
And if try to approve it in the opening window ,it gives "You must save the pending changes before changing the approval status".
Looks like the system always detect some dirty values, while I wrote the script to monitor all fields status and seems all are not dirty.
var handleDisplay = new vExt.util.DelayedTask(function(){
alert('start checking dirty!');
var elementArray = vui.query("*[id*=POLICY]");
var count = elementArray.length;
alert('count:'+count);
for(var i=0; i< count; i++){
var item = elementArray[i];
var itemId = item.id;//HTMLTextAreaElement, HTMLInputElement
if(item.toString().indexOf("HTMLTextAreaElement")>0||item.toString().indexOf("HTMLInputElement")>0){
alert('i:'+i +" itemId:"+itemId + " vExt.getCmp(itemId) isDirty:"+vExt.getCmp(itemId).isDirty()); // it's alwasy false here
var itemCmp = vExt.getCmp(itemId);
if(itemCmp!=null&&itemCmp!=undefined){
if(itemCmp.isDirty()){
alert(" itemId"+itemId + " is dirty:" + itemCmp.isDirty());
}
}
}
}
});
handleDisplay.delay(3000);
Can you please advise why is that? how can we resolve it?