Edited by john on 08/10/04 12:56 PM (server time).
$sth2 will be 0 or 1 result from my db query.if ($sth2=='1') { alert("Author already exists. Please try again"); var api = parent.getScriptFrame() api.IWDatacapture.getItem("/Author/FirstName").setValid(false) api.IWDatacapture.setHighlightMode(true); api.IWDatacapture.redraw(); }this works fine but when the user changes the data in the dct it should allow it to save and do the workflow.But now does not?thanks.
var w = $flag; api = parent.getScriptFrame(); if ($flag == "1" ){ api.IWDatacapture.getItem("/article/date").setValid(false); api.IWDatacapture.setHighlightMode(true); }else { api.IWDatacapture.getItem("/article/date").setValid(true); api.IWDatacapture.setHighlightMode(false); } api.IWDatacapture.redraw();
Any help guys in this regard .. is this expected behaviour or I am doing something wrong ?? Let me know if require more information or query is not clear
Simply add "api.IWDatacapture.displayMessage("");" wherever needed
Display message will display some message on the bottom of the screen .. as I am usng redraw function then it should clear the invalid field in the next call isnt ?
I have tried to remove the highlight mode already but still it didnt work
if (api.IWDatacapture.getItem("/call_server/call_server").isValid()) { api.IWDatacapture.getItem("/call_server/call_server").setValid(false); api.IWDatacapture.setHighlightMode(true);}else { api.IWDatacapture.getItem("/call_server/call_server").setValid(true); api.IWDatacapture.setHighlightMode(false); api.IWDatacapture.displayMessage("");}