• NVaef
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 20
    Replies

Hey!

 

So I have a conga workflow trigger on my project page. Once manually triggered by a checkbox field, a file is run with merge fields and then emailed out. 

 

I was wondering if there was a way to automate this so that once the project date rolls over, the checkbox trigger would be fired. A relatively simple Idea, however I'm not certain how this can be accomplished because no workflow is being triggered by an edit on any record. 

 

any feedback is greatly appreciated. Thank you!

  • May 30, 2013
  • Like
  • 0

I'm reposting this because I never got a response - sorry.

 

I've set up 3 charts with 3 seperate controllers on a visual force page, however the information on all of the charts is being rendered the same for all three based on the last extension being used in the VF order. 

 

Initially I thought it was the data variable being consistent through each controller, but no matter how I changed or manipulated it, it didn't work. I figure that regardless of the data variable it should be different per each controller. 

 

Any insight would be greatly appreciated, thank you!

 

VF:

 

<apex:tab label="Gauge Party" rendered="{!Events__c.Meeting_Type__c <> 'Argyle Conversation'}" name="GaugeParty" id="tabGauges">
<apex:pageBlock title="{!$ObjectType.Events__c.label} Gauge">
<apex:pageBlockSection showHeader="true" title="Attendee Goal" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController">
<apex:chart name="MyChart" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Attendee Goal" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
<apex:pageBlockSection showHeader="true" title="Attended" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController2">
<apex:chart name="MyChart2" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Attended" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart2.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
<apex:pageBlockSection showHeader="true" title="Confirmed" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController3">
<apex:chart name="MyChart3" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Confirmed" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart3.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
</apex:pageBlock>

  • April 26, 2013
  • Like
  • 0

Hey! So I've set up 3 charts with 3 seperate controllers on a visual force page, however the information on the chart is being rendered the same for all three based on the last extension being used in the VF order.

 

Here's the VF build out:

 

<apex:tab label="Gauge Party" rendered="{!Events__c.Meeting_Type__c <> 'Argyle Conversation'}" name="GaugeParty" id="tabGauges">
<apex:pageBlock title="{!$ObjectType.Events__c.label} Gauge">
<apex:pageBlockSection showHeader="true" title="Attendee Goal" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController">
<apex:chart name="MyChart" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Attendee Goal" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
<apex:pageBlockSection showHeader="true" title="Attended" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController2">
<apex:chart name="MyChart2" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Attended" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart2.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
<apex:pageBlockSection showHeader="true" title="Confirmed" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController3">
<apex:chart name="MyChart3" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Confirmed" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart3.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
</apex:pageBlock>

  • April 18, 2013
  • Like
  • 0

Hey! So I'm running into this problem because there are no records to be pulled in my controller's aggregateresult string.

When I try to open a project with no attendee records I get the error, however If there are records, everything works fine.

 

I was thinking about using an if function or something similar. Any help would be greatly appreciated

 

Controller:

public class GaugeChartController {
    public String ProjId {get;set;}
 
    public GaugeChartController(ApexPages.StandardController controller){
        ProjId = controller.getRecord().Id;
    }
 
    public List<gaugeData> getData() {
          Integer TotalAttnds = 0;         
 
         AggregateResult Attendees = [select COUNT(Name) numAPJs
                                   from Attendee_Project_Junction__c
                                   where Project__c =: projId                                
                                   GROUP BY CALENDAR_MONTH(Event_Date__c) LIMIT 1];
 
          List<gaugeData> data = new List<gaugeData>();
          data.add(new gaugeData(Integer.valueOf(Attendees.get('numAPJs'))+ 'Attendees', Integer.valueOf(Attendees.get('numAPJs'))));    

          return data;
                                       
     }
 
    public class gaugeData {
        public String name { get; set; }
        public Integer size { get; set; }
 
        public gaugeData(String name, Integer data) {
            this.name = name;
            this.size = data;
        }
    }
}

  • April 16, 2013
  • Like
  • 0
So I've created a gauge using an apex class GaugeChartController like the demo in the online documentation and then used visualforce to actually build out the gauge. Unfortunately, I'm not able to edit the number of steps around the gauge - it seems to be defaulted to 10 and wouldn't display with anything other than that regardless of the input. How, in this case, do I edit the number of steps? I have almost zero coding experience so please pardon me if this question is silly.

Class:
public class GaugeChartController {
    public String ProjId {get;set;}
 
    public GaugeChartController(ApexPages.StandardController controller){
        ProjId = controller.getRecord().Id;
    }
 
    public List<gaugeData> getData() {
          Integer TotalAttnds = 0;         
 
          AggregateResult Attendees = [select COUNT(Name) numAPJs
                                   from Attendee_Project_Junction__c
                                   where Project__c =: projId                                
                                   GROUP BY CALENDAR_MONTH(Event_Date__c) LIMIT 1];
 
          List<gaugeData> data = new List<gaugeData>();
          data.add(new gaugeData(Integer.valueOf(Attendees.get('numAPJs'))+ 'Attendees', Integer.valueOf(Attendees.get('numAPJs'))));    
          
          return data;
                                       
     }
 
    public class gaugeData {
        public String name { get; set; }
        public Integer size { get; set; }
 
        public gaugeData(String name, Integer data) {
            this.name = name;
            this.size = data;
        }
    }
}

VF
    
        <apex:page standardController="Attendee Goal" extensions="GaugeChartController">
           <apex:chart name="MyChart" height="300" width="450" animate="true" data="{!data}">
               <apex:axis type="Gauge" position="gauge" title="Attendee Goal" minimum="0" maximum="300" steps="5"/> //still displays 10 steps
               <apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
           </apex:chart>
               <script>
                    MyChart.on('beforeconfig', function(config) {
                    config.axes[0].margin=-10;
                 });
              </script>        
        </apex:page>
      
 
  • April 12, 2013
  • Like
  • 0

Hey!

 

So I have a conga workflow trigger on my project page. Once manually triggered by a checkbox field, a file is run with merge fields and then emailed out. 

 

I was wondering if there was a way to automate this so that once the project date rolls over, the checkbox trigger would be fired. A relatively simple Idea, however I'm not certain how this can be accomplished because no workflow is being triggered by an edit on any record. 

 

any feedback is greatly appreciated. Thank you!

  • May 30, 2013
  • Like
  • 0

I'm reposting this because I never got a response - sorry.

 

I've set up 3 charts with 3 seperate controllers on a visual force page, however the information on all of the charts is being rendered the same for all three based on the last extension being used in the VF order. 

 

Initially I thought it was the data variable being consistent through each controller, but no matter how I changed or manipulated it, it didn't work. I figure that regardless of the data variable it should be different per each controller. 

 

Any insight would be greatly appreciated, thank you!

 

VF:

 

<apex:tab label="Gauge Party" rendered="{!Events__c.Meeting_Type__c <> 'Argyle Conversation'}" name="GaugeParty" id="tabGauges">
<apex:pageBlock title="{!$ObjectType.Events__c.label} Gauge">
<apex:pageBlockSection showHeader="true" title="Attendee Goal" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController">
<apex:chart name="MyChart" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Attendee Goal" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
<apex:pageBlockSection showHeader="true" title="Attended" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController2">
<apex:chart name="MyChart2" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Attended" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart2.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
<apex:pageBlockSection showHeader="true" title="Confirmed" columns="2">
<apex:page standardController="Events__c" extensions="GaugeChartController3">
<apex:chart name="MyChart3" height="300" width="450" animate="true" data="{!data}">
<apex:axis type="Gauge" position="gauge" title="Confirmed" minimum="0" maximum="{!Events__c.Attendee_Number_Goal__c}" steps="5"/>
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
</apex:chart>
<script>
MyChart3.on('beforeconfig', function(config) {
config.axes[0].margin=-10;
});
</script>
</apex:page>
</apex:pageBlockSection>
</apex:pageBlock>

  • April 26, 2013
  • Like
  • 0

Hey! So I'm running into this problem because there are no records to be pulled in my controller's aggregateresult string.

When I try to open a project with no attendee records I get the error, however If there are records, everything works fine.

 

I was thinking about using an if function or something similar. Any help would be greatly appreciated

 

Controller:

public class GaugeChartController {
    public String ProjId {get;set;}
 
    public GaugeChartController(ApexPages.StandardController controller){
        ProjId = controller.getRecord().Id;
    }
 
    public List<gaugeData> getData() {
          Integer TotalAttnds = 0;         
 
         AggregateResult Attendees = [select COUNT(Name) numAPJs
                                   from Attendee_Project_Junction__c
                                   where Project__c =: projId                                
                                   GROUP BY CALENDAR_MONTH(Event_Date__c) LIMIT 1];
 
          List<gaugeData> data = new List<gaugeData>();
          data.add(new gaugeData(Integer.valueOf(Attendees.get('numAPJs'))+ 'Attendees', Integer.valueOf(Attendees.get('numAPJs'))));    

          return data;
                                       
     }
 
    public class gaugeData {
        public String name { get; set; }
        public Integer size { get; set; }
 
        public gaugeData(String name, Integer data) {
            this.name = name;
            this.size = data;
        }
    }
}

  • April 16, 2013
  • Like
  • 0
So I've created a gauge using an apex class GaugeChartController like the demo in the online documentation and then used visualforce to actually build out the gauge. Unfortunately, I'm not able to edit the number of steps around the gauge - it seems to be defaulted to 10 and wouldn't display with anything other than that regardless of the input. How, in this case, do I edit the number of steps? I have almost zero coding experience so please pardon me if this question is silly.

Class:
public class GaugeChartController {
    public String ProjId {get;set;}
 
    public GaugeChartController(ApexPages.StandardController controller){
        ProjId = controller.getRecord().Id;
    }
 
    public List<gaugeData> getData() {
          Integer TotalAttnds = 0;         
 
          AggregateResult Attendees = [select COUNT(Name) numAPJs
                                   from Attendee_Project_Junction__c
                                   where Project__c =: projId                                
                                   GROUP BY CALENDAR_MONTH(Event_Date__c) LIMIT 1];
 
          List<gaugeData> data = new List<gaugeData>();
          data.add(new gaugeData(Integer.valueOf(Attendees.get('numAPJs'))+ 'Attendees', Integer.valueOf(Attendees.get('numAPJs'))));    
          
          return data;
                                       
     }
 
    public class gaugeData {
        public String name { get; set; }
        public Integer size { get; set; }
 
        public gaugeData(String name, Integer data) {
            this.name = name;
            this.size = data;
        }
    }
}

VF
    
        <apex:page standardController="Attendee Goal" extensions="GaugeChartController">
           <apex:chart name="MyChart" height="300" width="450" animate="true" data="{!data}">
               <apex:axis type="Gauge" position="gauge" title="Attendee Goal" minimum="0" maximum="300" steps="5"/> //still displays 10 steps
               <apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/>
           </apex:chart>
               <script>
                    MyChart.on('beforeconfig', function(config) {
                    config.axes[0].margin=-10;
                 });
              </script>        
        </apex:page>
      
 
  • April 12, 2013
  • Like
  • 0