You need to sign in to do that
Don't have an account?
Andrew Chabot
Apex Controller Limit?
I am on the Trailhead = UX Prototyping Basics: Iterate on Your Prototype and I cannot get the Apex Controller, limit the account, contact and lead SOQL to return 5 records. Can someone help me with what the code should be for this?
- Thanks for reaching us. May I know the exact issue you are encountering? So that I can understand the issue better and can assist you accordingly!
- Please share the screenshot of the error.
Apex controller Limt- while writing extension controller in VF page you can use more than one extensions in your visual force page. separated by commas, There are no limitations for using the extension.
Please refer the below link for reference- https://developer.salesforce.com/forums/?id=906F0000000AoM3IAK
I hope it will be helpful.Best Regards
Rahul Kumar
Can you please help me with what the correct code is to set the limiting query results to 5?
Here is the screenshot. I originally put the LIMIT 5 in this controller but it was the wrong controller. So I removed it and added to the SearchResultsController.apxc
I had the same issue.
All you need to do is click File>Open>Classes you will see that there is a SearchResultsController field, click on that to open. The editor will open, and all you need to do is Change the Limit to 5. Let me know if this helps.
Thanks!!