Calling server method from another server method

Hello All,

From one server method (Method A ), I'm calling another server method (Method B) .

From (Method B) returning inn.newError("Error"); 

And in calling method (Method A) checking result has error but it is not working. Error message is showing directly on UI.

Item X = inn.applyMethod("Method_B","");

if(X.isError())

{

//execute xlogic

else

{

  //execute y logic

}

But if case is not executing & error message directly displaying on UI.

Regards,

Suhas

Parents Reply Children
No Data