We have a data object binded to a text field in a page and we can't catch the Error
Code to display it in an especific error page. This is our code:
We use onAfterExecuteEvent(CSpDataObjectEvent event) of the DO
public int this_onAfterExecuteEvent(CSpDataObjectEvent event)
{
int command=PROCEED;
CSpDataObject dob = (CSpDataObject) event.getSource();
int errorCode = dob.getErrorCode();
myUtil.debug("Error Code:"+errorCode);
if(errorCode!=0)
{
CSpHtml.reset();
CSpPage pg = CSpider.getPage("pgDOError");
pg.setDisplayFieldValue("txtErrorCode", new CSpInteger (errorCode));
command = CSpPage.load("pgDOError", false);
return (STOP);
}
else
{
return(command);
}
}
The page error appears to be ok, but there is some information of the next real page
that are still there.
What are we doing wrong?
Thank you all,
Ignacio and Samuel
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]