You need to sign in to do that
Don't have an account?
Leafen Sandy
Get the list of available object names within javascript
Hi,
I have a page where I have to show the list of all objects in a drop down menu.
But the challenge here is that I'm not using any controller, so I have to do query the objects in the page possibly within the javascript.
Or is there any other simpler way that I can bring out the names of all available objects....
Thanks,
Leafen.
I have a page where I have to show the list of all objects in a drop down menu.
But the challenge here is that I'm not using any controller, so I have to do query the objects in the page possibly within the javascript.
Or is there any other simpler way that I can bring out the names of all available objects....
Thanks,
Leafen.
If you want to display picklist with any sObjects or fields in your visual force page. you can do it using javascript without using Apex controller. No need to write a class.
Please find the sample code below and tweak it as per your requirement which should help you. Thanks,
Nagendra
Thanks for your immediate response.
It looks like I have to make myself even more clear.
The sample code which you have given is to get the field labels of any particular object(in this example its Account). But I just need the names of all available objects (standard and custom) as the picklist value.
Hope this time I made my question simple and clear.
Thanks Again,
Leafen.
Here is the sample code to display the list of all objects:-
Please refer the below links for more details:-
- https://salesforce.stackexchange.com/questions/134255/how-to-get-the-standard-and-custom-object-api-name-field-api-name-data-type-fo
- https://jungleeforce.wordpress.com/2013/06/07/extracting-list-of-all-the-objects-standard-custom-in-salesforce/
Hope it will help:-Regards,
Javwad Azeem
Thanks for your response.
My first most challenge is to do every thing within the page, i.e., I should not go for a controller.
So kindly help me out to do with javascript or any such thing negotiating the usage of a controller.
Thanks,
Leafen.