HI All,
I need to execute a custom code based on a standard method code result, the standard method is on a button control in a form,
Public clicked()
{
super()
buffer.method();
}
I have created a clicked event handler in an extension
[FormControlEventHandler(formControlStr(HcmWorker, ArgsExampleButton), FormControlEventType::Clicked)]
public static void ArgsExampleButton_OnClicked(FormControl sender, FormControlEventArgs e)
{
//mycustomermethod();
}
not what i want to achieve is , my custom code to be triggered based on the successful execution of buffer.clicked() in the standard clicked method. since the buffer.code does not return anything i thought of using error handling to achieve this,
try {
buffer.method();
}
exception::error or Waring
{
give the same error/or warning message the method gives.
}
else
{
//execute my code.
}
. how do i call the method already called in base form clicked.
thanks.