You need to sign in to do that
Don't have an account?
Daniel Ballinger
Trialhead - Using Apex in Components - "The client side controller is not using the return value from the 'getCaseFromId' method"
I'm working through the Using Apex in Components (https://developer.salesforce.com/trailhead/force_com_programmatic_beginner/lightning_components/lightning_components_apex) challenge.
When checking the challenge I'm getting the response:
If I put the same lightning component in an app I can see it is retrieving the Case details via the Apex controller method via the client controller.
I can see the call going through to the Apex Controller in the logs.
I can put a debugger; statement in the client controller within the actions setCallback method and hit that immediately after passing the return value back to the records view attribute.
So I'm fairly certain that the client side controller is using the return value from `getCaseFromId` in the Apex controller.
Any ideas on what the challenge is checking for here?
When checking the challenge I'm getting the response:
Challenge not yet complete... here's what's wrong:
The client side controller is not using the return value from the 'getCaseFromId' method
The client side controller is not using the return value from the 'getCaseFromId' method
If I put the same lightning component in an app I can see it is retrieving the Case details via the Apex controller method via the client controller.
I can see the call going through to the Apex Controller in the logs.
I can put a debugger; statement in the client controller within the actions setCallback method and hit that immediately after passing the return value back to the records view attribute.
So I'm fairly certain that the client side controller is using the return value from `getCaseFromId` in the Apex controller.
Any ideas on what the challenge is checking for here?
All Answers
I am getting same error and here is my code
My component code My Client side controller code
The apex controller code
I also have working demo in atleast 3 orgs and all works good but Trailhead throws error
Any help will be appreciated .Thanks so much for TrailHead Tutorials .
And the controller code:
There seems to be no diference at all from the other's code, but it worked on my org.