• krishna 2619
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
      Method 1
joblst = [select ApexClassId, Id, JobItemsProcessed, JobType, Status, NumberOfErrors, MethodName,CreatedDate from AsyncApexJob where ApexClass.Name ='bthProcess' Order by  CreatedDate DESC LIMIT 1];
            if(joblst .size()>0){
                if(joblst [0].status == 'Processing'){
             BatchinProcess = true; 
                    this.lastBatchRunDate=String.valueOf(joblst [0].CreatedDate);
                    this.lastBatchRunStatus=joblst [0].status;
                }
        else if(ascjoblst[0].status == 'Completed'){
                        Process__c setting= _Process__c.getall().values();
                      if(setting.obj__c==this.selectedObj){
                            BatchinProcess = false;
   }

Method 2:

Database.SaveResult[] Updatelst = Database.update(Records, false);
        for(Integer i=0; i < Updatelst.size(); i++) {
            if(Updatelst.get(i).isSuccess()) {
                Id errorId = Updatelst.get(i).getId();                   
            }         
            if(!Updatelst.get(i).isSuccess()) {
                Database.Error error = Updatelst.get(i).getErrors().get(0);                   
                if(existngrecIds.containsKey(objlst.get(i).Id)){
                    deleterec.add(existngrecIds.get(objlst.get(i).Id)); 
                }
                Error_Record__c errRec = new Error_Record__c();
                errRec.Error_Message__c = error.getMessage();  
                errRec.Record_Id__c = objlst.get(i).Id;
                errRec.Object_Name__c = ObjName;
                insrtlst.add(errRec);                  
         }
 


Am not able to conver the test class for above methods

Hi All,

I wanted to roll up the 2 text fields of a child object into parent object how to that 
Example :   Value 1 + '  ' +  Quality 1;
                   Value 2  + '  ' + Quality 2
                  Value  3 + '  ' +   Quality 3
I wnated to rollup this  vlaues to the parent obejct 

Hi all I have created a Visualforce page chart but in this, i have 2 issues 

1) On top of the first bar its showing "0"
2) colors are not displayed in Leged properly 

Code : 
 <apex:chart data="{!data1}" height="400" width="500">
    <apex:legend position="left" />
    <apex:axis type="Numeric" position="left" title="Forecast" grid="true" fields="data1,data2,data3"  dashSize="2" minimum="0" maximum="200">
        <apex:chartLabel display="none" />
    </apex:axis>
    <apex:axis type="Category" position="bottom" fields="name" title="Q2" minimum="0" maximum="200">
        <apex:chartLabel display="none" rotate="315"/>
    </apex:axis>
    <apex:barSeries orientation="vertical" axis="left" stacked="true" xField="name" yField="Actual,Forcast,Planned" colorsProgressWithinSeries="True" colorSet="blue,Magenta,Yellow,LightSeaGreen" >
                <apex:chartLabel />

</apex:barSeries>
</apex:chart>  ​

User-added image

Hi all I have created a Visualforce page chart but in this, i have 2 issues 

1) On top of the first bar its showing "0"
2) colors are not displayed in Leged properly 

Code : 
 <apex:chart data="{!data1}" height="400" width="500">
    <apex:legend position="left" />
    <apex:axis type="Numeric" position="left" title="Forecast" grid="true" fields="data1,data2,data3"  dashSize="2" minimum="0" maximum="200">
        <apex:chartLabel display="none" />
    </apex:axis>
    <apex:axis type="Category" position="bottom" fields="name" title="Q2" minimum="0" maximum="200">
        <apex:chartLabel display="none" rotate="315"/>
    </apex:axis>
    <apex:barSeries orientation="vertical" axis="left" stacked="true" xField="name" yField="Actual,Forcast,Planned" colorsProgressWithinSeries="True" colorSet="blue,Magenta,Yellow,LightSeaGreen" >
                <apex:chartLabel />

</apex:barSeries>
</apex:chart>  ​

User-added image