Skip to main content
deleted 2 characters in body
Source Link
Vamsi Krishna Gosu
  • 10.5k
  • 5
  • 33
  • 50

Having a lightning controller's code:

var action = cmp.get("myAction");
action.setCallback(this, function(response) {
    // Callback code's here
});
$A.enqueueAction(action);

I call for a server-side controller's method and after receiving a response, I handle it. The response is an object which contains various methods (and fields?) but I can't find any information about them.

From a Calling a Server-Side Action page I found out for example that by using a getError()getError() method I can get an array (btw shouldn't it be 'getErrors'?) of errors returned from the server. I suppose there are much more things to be discovered but I just don't know where to look for them.

Is there any documentation of the response object?

Having a lightning controller's code:

var action = cmp.get("myAction");
action.setCallback(this, function(response) {
    // Callback code's here
});
$A.enqueueAction(action);

I call for a server-side controller's method and after receiving a response, I handle it. The response is an object which contains various methods (and fields?) but I can't find any information about them.

From a Calling a Server-Side Action page I found out for example that by using a getError() method I can get an array (btw shouldn't it be 'getErrors'?) of errors returned from the server. I suppose there are much more things to be discovered but I just don't know where to look for them.

Is there any documentation of the response object?

Having a lightning controller's code:

var action = cmp.get("myAction");
action.setCallback(this, function(response) {
    // Callback code's here
});
$A.enqueueAction(action);

I call for a server-side controller's method and after receiving a response, I handle it. The response is an object which contains various methods (and fields?) but I can't find any information about them.

From a Calling a Server-Side Action page I found out for example that by using a getError() method I can get an array (btw shouldn't it be 'getErrors'?) of errors returned from the server. I suppose there are much more things to be discovered but I just don't know where to look for them.

Is there any documentation of the response object?

Source Link

Where can I find a documentation of Lightning server-side controller's response?

Having a lightning controller's code:

var action = cmp.get("myAction");
action.setCallback(this, function(response) {
    // Callback code's here
});
$A.enqueueAction(action);

I call for a server-side controller's method and after receiving a response, I handle it. The response is an object which contains various methods (and fields?) but I can't find any information about them.

From a Calling a Server-Side Action page I found out for example that by using a getError() method I can get an array (btw shouldn't it be 'getErrors'?) of errors returned from the server. I suppose there are much more things to be discovered but I just don't know where to look for them.

Is there any documentation of the response object?