06-07-2011 09:15 AM
I like the Closed Sales to Date Dashboard component with the Gauge Chart; however, I want to programmatically check the total Closed Sales to Date for the current month and, if it exceeds the Target, I want to automatically adjust the Gauge's breakpoints in thecorresponding .dsh file, as well as the Target. I would prefer to do this with the simplest, cleanest code possible.
Can this be done without creating a Custom Dashboard Component, or can I at least create a Custom Dashboard Component that is exactly like that of the Closed Sales to Date Dashboard component, plus my code?
I'd really appreciate it.
bconner26
06-07-2011 09:58 AM
I don't see why this couldn't be accomplished.
Albeit there's nothing in our SDK to make the changes to the .dsh file, however since it's XML there's no need, .Net provides the classes to modify an XML document. When and how you check the Closed Sales I think would be the determining factor in whether or not this would require a custom dashboard component. If it's incremental, or based on field changes, or the view changing to the dashboard, I don't think you'll need one.
06-07-2011 09:58 AM
I don't see why this couldn't be accomplished.
Albeit there's nothing in our SDK to make the changes to the .dsh file, however since it's XML there's no need, .Net provides the classes to modify an XML document. When and how you check the Closed Sales I think would be the determining factor in whether or not this would require a custom dashboard component. If it's incremental, or based on field changes, or the view changing to the dashboard, I don't think you'll need one.
06-13-2011 12:24 PM
Okay, I got the plugin working. Thanks for the help.