Category Archives: javascript

Debugging “System.LimitException: Too many SOQL queries: 101”

Earlier I have described a way to get the list of SOQL queries in transaction Decided to create document with advanced javascript code now

Posted in javascript, salesforce | Tagged , , , , | Leave a comment

Handlebars doesn’t allow to supply single row template for generation of multiple rows result

I was asked to prepare to talk about Javascript rendering template libraries. I was using only JSRender however I was told that Handlebars is better. So I decided to rewrite a single page to use Handlebars instead of JSRender. During … Continue reading

Posted in javascript | Tagged , , , , | Leave a comment

Salesforce Delegator to Run Batch

I was asked to implement a button to run a batch. Firstly I decided to create a VisualForce page with a simple controller like this I presented this solution to the client, but the client told me that he would … Continue reading

Posted in apex, batch, button, controller, custom, javascript, Posts in English, Run, salesforce | Tagged , , , , , , , , , , , | Leave a comment

Salesforce: Trick to get both Id and Name of Lookup Record from VisualForce page without calling SOQL

I created custom SOQL page for viewing list of existing custom object records and adding new. This custom object has one LookUp field to Account. I need both Id and Name of related Account record to set as LookUp field … Continue reading

Posted in javascript, lookup, Posts in English, record, salesforce, visualforce | Tagged , , , , , | 1 Comment