Intercepting automatic form transfers
The sample code below is taken from a form that is trying to transfer to EE20.3. To find out if a form has an auto transfer, look to see if the <Request> tag exists and the value is MANUALCFKEY.
function FORM_OnBeforeDataExchange(oCRTIO)
{
return (oCRTIO.Request === "MANUALCFKEY" && oCRTIO.Screen === "EE20.3"
? null : oCRTIO);
}
The individual members can be manipulated (updated) as well. For example, one could change the Screen value to redirect to another screen.
It's important that if the OnBeforeDataExchange function is implemented it must always return a oCRTIO object for CRTIO processing to continue.