Category Visualforce

How to host your web page using force.com site

The Salesforce platform allows users to host a webpage or application accessible to the public without requiring login. Users create a visualforce page, then register a domain and create a new active site. Appropriate permissions must be set in public access settings to permit access to the visualforce page, apex class, and assorted objects.

Upload multiple files through Visualforce page

The post outlines a method to address issues like 'View state size limit exceeded', 'Heap size' limit, and file size limit while uploading multiple files simultaneously. This method uses JavaScript, Ajax, and Jquery to send or upload files through HTTP POST Request. The files are uploaded to the ContentVersion object in base64 format and a progress bar displays the upload progress. This solution circumvents size limits by handling the file upload through the Visualforce page.

Show the uploaded image on the detail page.

The author explains how to enable users to upload images to a Salesforce object record. The solution involves creating a Visualforce page to handle uploads and using the ContentDistribution object to obtain the 'ContentDownloadUrl' after file insertion. The image URL is placed within a rich text field to display on the record details page.

Material Designed DataTable In Visualforce Page.

Material design is a design language employing grid-based layout, responsive animations, transitions, and depth effects to optimize user experience. DataTable, a jQuery Javascript library plug-in, enhances features like fast search, pagination, and column sorting. The provided example demonstrates applying DataTable in a visualforce page for an optimised user experience.