Friday, 7 March 2014

SOQL Query on vf page using javascript without any controller.






Hi friends,

Many times you need record value on vf page for validation / viewing or for any other reason,
then you have to write a custom controller for query record.

here the example which show how you can query from vf page without any controller,
simply use JavaScript for query.


you can change the query according to your requirements.

Hope it helps
happy coding...:)
thanks
Anurag Jain

4 comments:

  1. Really Helped, Thank you....

    ReplyDelete
  2. here my SOQL query is" SELECT Id, Name , Application_FC__r.Name FROM Review_FC WHERE Application_FC__c = :id"

    I am getting erorr.. Bind variables only allowed in Apex code

    ReplyDelete