You need to sign in to do that
Don't have an account?
Kay Crawford
Building a Custom Controller
Hello -
I'm sure I'll say wrong, but, I need help in building a Custom Controller for a Visualforce page I created so my sales team can see a 1/2 dozen charts on a custom dashboard. One of the charts my boss wants is a gauge. Unfortunately, since I had to create the gauge inside the dashboard and not on the report itself, I will need to build the gauge using a Custom Controller. This is way over my head and everyone else I've talked to. Is anyone able to babystep me through the formatting and order of things?
Thanks to anyone who can help me get this thing built.
Kay
I'm sure I'll say wrong, but, I need help in building a Custom Controller for a Visualforce page I created so my sales team can see a 1/2 dozen charts on a custom dashboard. One of the charts my boss wants is a gauge. Unfortunately, since I had to create the gauge inside the dashboard and not on the report itself, I will need to build the gauge using a Custom Controller. This is way over my head and everyone else I've talked to. Is anyone able to babystep me through the formatting and order of things?
Thanks to anyone who can help me get this thing built.
Kay
You want to build a VF page with custom controller and link tha VF page to the dashboard component. Now you want to know how to build a custom controller for a VF page. Am I correct?
Thank you for responding! I already have the VF page built and my 5 other graphs on the dashboard are great. I just cannot figure out the language and formatting for the custom controller.
Kay
To accomplish this task you should have programming skill. Apex syntax is smilar to Java. But you can learn them. Have you tried Salesforce Apex guide?
https://developer.salesforce.com/docs/atlas.en-us.200.0.pages.meta/pages/pages_controller_custom.htm
https://developer.salesforce.com/docs/atlas.en-us.apex_workbook.meta/apex_workbook/apex_visualforce_4.htm (https://developer.salesforce.com/docs/atlas.en-us.apex_workbook.meta/apex_workbook/apex_visualforce_4.htm" target="_blank)
If you get the answer, please mark it as the correct answer. It will be a help to others who are facing the same problem later.
https://developer.salesforce.com/trailhead/module/apex_database (https://developer.salesforce.com/trailhead/module/apex_database" target="_blank)
If you get the answer, please mark it as the correct answer. It will be a help to others who are facing the same problem later.
This has been bugging me for a while now, so I decided to take some time tonight and give you a solution. It's not the prettiest of gauges, but hopefully it'll give you something to go by.
http://blog.deadlypenguin.com/blog/2016/01/25/apexgaugeseries-and-display-report-data/
Chamil - I read the guide a couple of times and unfortunately, a lot of it did not make much sense. Even one of our folks in IT was having trouble with it. I will definitely check out the Trailhead trail, because I would very much like to learn the language.
pcon - I just read your blog and it drives me crazy too not being to figure something out, so I plan to read over it again a more few times. Maybe between the Trailhead and your blog, I can get this thing going.
I'll let you know how I fair. Thanks to you both for your help!
Is there a way I can contact you? I've spoken with my boss about this gauge and he's given me permission to get some specialized help to build it.
Thanks,
Kay
[1] https://appexchange.salesforce.com/developers