Dynamic Gauge in salesforce
Author
Salesforce provides us standard functionality to create Reports and dashboards to represent records in diagrammatic form. Sometimes we face the requirement to represent our data in diagrammatic Form on visual force page in some specific type of diagram we represent it using the chart. Salesforce provide us Bar chart, Pie chart, Gauge chart, Radar charts
Here I am going to explain how we can represent specific field data in the form of a gauge chart. To achieve this requirement we need four things basically. First, we should have an object whether it’s a standard or custom object, a field associated with that object that should hold any numeric Value, apex controller, apex class.
I will start with an object lets say I have a standard controller Account where I have a custom field Score and I need to represent that score in the form of gauge. Whenever page loads that value represents in the form of gauge and whenever the fields value changes the gauge should reflect that Change.
So the items that we have is:
- Standard object: Account.
- Custom Field : score__c,score1__c
- Apex controller: TestPageController1.
- Visualforce page: gauge.
First of all the code for the controller that we will need is:
We have created a controller named GaugeController.
Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”
Recent Posts
-
Salesforce 2025 Game-Changing Trends You Need to Know28 Jan 2025 Blog
-
Agentforce 2.0: Everything You Need to Know About the Latest Update22 Jan 2025 Blog
-
The Ultimate Guide to NetSuite Development: Tools and Techniques10 Jan 2025 Blog
-
How Salesforce Nonprofit Cloud Transforms Fundraising Strategies10 Jan 2025 Blog
-
The Impact of Salesforce Development Partners on Small and Medium Businesses08 Jan 2025 Blog
-
Key Questions to Ask When Hiring a NetSuite Development Partner08 Jan 2025 Blog
-
Salesforce Agentforce Demystified: Your Essential Guide08 Jan 2025 Blog
-
Salesforce and NetSuite Integration: Driving Business Efficiency with Precision06 Jan 2025 Blog
-
Everest Group has positioned Mirketa as an Aspirant in the report24 Dec 2024 Press Release
-
Salesforce Einstein20 Dec 2024 E-Book