Trying to use the callback attribute in the setDCRName however, it does not seem to call the next function when the dcr name set is complete. Would anyone have an example to show me how it is supposed to work.
I have the following:
function handleNameDCR()
{
var originalDcrName = IWDCRInfo.getDCRName();
if ( originalDcrName == "" || originalDcrName == null )
{
//create a DCR name from date
var number = IWDatacapture.getItem("/productId").getValue();
var dcrName = number;
IWDCRInfo.setDCRName(dcrName);
return true;
}
else
{
IWDCRInfo.setDCRName(originalDcrName);
return true;
}
return;
}
Other function is called getUser() and is placed in the same script file.
Edited by Mich on 04/16/03 01:49 AM (server time).