You need to sign in to do that
Don't have an account?
lavanya gottumukkala
calling soql query from javascript in a vf page
Hi All,
I need to call soql query from javascript code in vf page.
In that query i need to use id=:UserInfo.getUserId() in the where clause.But it will not support binding variable,then how can i achieve it without using any controller?
Thanks in advance
I need to call soql query from javascript code in vf page.
In that query i need to use id=:UserInfo.getUserId() in the where clause.But it will not support binding variable,then how can i achieve it without using any controller?
Thanks in advance
Please see the sample code below
Please see the below code for more information
Best Regards
Naga Kiran
Checkout the below link, this will helpful to you..!
https://developer.salesforce.com/docs/atlas.en-us.ajax.meta/ajax/sforce_api_ajax_vf_sample.htm