You need to sign in to do that
Don't have an account?

how to dealwith error messages in the controller
I am getting following message when i'm writting var error=result.getError();
[{"fieldErrors":{},"pageErrors":[{"statusCode":"FIELD_CUSTOM_VALIDATION_EXCEPTION","message":"Please generate Delivery Order for all the products"}],"index":null,"duplicateResults":[]}]
my question is how to get only messsage value??
[{"fieldErrors":{},"pageErrors":[{"statusCode":"FIELD_CUSTOM_VALIDATION_EXCEPTION","message":"Please generate Delivery Order for all the products"}],"index":null,"duplicateResults":[]}]
my question is how to get only messsage value??
This should help. Ideally you should iterate over the errors array and get all the error message and display them on the component (if required).