Skip to main content

1. What are the differences between insert, include, and define in Apex?
Ans:  Action poller in Visualforce functions as a timer, triggering AJAX requests to the server at specified time intervals (defaulting to 60 seconds if unspecified). The action attribute calls a controller method with a frequency determined by the interval attribute, which must be greater than 5 seconds.

2. What’s the difference between pageBlockTable, dataTable, dataList, and repeat in Salesforce?
Ans:  apex:pageBlockTable – creates a table with a related list style.
apex:dataTable – generates an unstyled table for use outside of apex:pageBlock.
apex:dataList – produces an ordered or unordered list with list items as rows.
apex:repeat – enables flexible output based on a template, supporting iteration over a collection. All four elements require value and var attributes, support nesting, and have output limitations based on the readOnly attribute of apex:page (1,000/10,000 rows).

3. How can you display more than 10,000 records using pageBlockTable in Salesforce?
Ans:  You can’t display 10,000 records on a single page because it will exceed the view state limit.

4. What are the benefits of using pagination with StandardSetController in Salesforce?
Ans:  Pagination with StandardSetController is easy to implement, allowing seamless navigation between pages, direct access to the first or last page, and easy movement between next or previous pages. Additionally, you can control the number of records displayed on each page.

5. Can we use apex:repeat in JavaScript?
Ans:  No

6. Can we use standardController and controller attributes together?
Ans:  No, We cannot reference both attributes together.

7. What are the benefits of Visualforce?
Ans:  Visualforce offers user-friendly development, integrates with other web-based UI technologies, and follows a model-view-controller style, among other advantages

8. What content can be included in a Visualforce page?
Ans:  There’s no limitation – you can include any content in a Visualforce page that can be rendered in a browser, including HTML, JavaScript, and more

9. What are inline VisualForce pages?
Ans:  In inline Visualforce page can be added to a record’s detail page in Salesforce using the edit template option. If the page uses the standard controller of the object, it can be integrated into the detailed page design. For instance, an inline VF page with the standard controller ‘contact’ can currently be integrated into correspondence records.

10. How can a CSV file browsed in a Visualforce page be converted into a string?
Ans:  Convert a blob to a string using the csvFileContents.toString() method.

Subscribe For More Updates


Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!