• Alekhya Mathukumilli 7
  • NEWBIE
  • 25 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 8
    Replies
Event insdtl                = new Event();
 private Inspection_Scheduling__c                 inspection;

 insdtl.RecordTypeId         = rt.Id;
        insdtl.Subject              = inspection.Inspection_Type__c +' - '+ inspection.Name;//rt.Name +' - '+ inspection.Name;
        insdtl.Preferred_Date__c    = inspection.Preferred_Date__c;
        insdtl.Alternate_Date__c    = inspection.Alternate_Date__c;
        insdtl.Date_Requested__c    = myDate;
        insdtl.OwnerId              = inspection.Inspector__c;
        insdtl.WhatId               = ins;
        insdtl.Contact_Email__c     = inspection.E_mail__c;
       insdtl.Inspection_Sch_Type__c = inspectionId;


       insdtl.TypePicklist_del__c = inspection.Type__c;

if(inspection.RecordTypeId==ComAdvrectypeid){
           //ins.RecordTypeId             = InspComAdv;
           //ins.License_Type_s__c       = inspection.License_Type_s__c; 
           insdtl.Violation_Number__c      = inspection.Violation_Number__c;
           insdtl.Previous_violation_s__c   = inspection.Previous_violations__c;
           //insdtl.Description__c           = inspection.Description__c;
           insdtl.On_Site_Interpretation__c= inspection.On_Site_Interpretation__c;
           insdtl.Preferred_Language__c    = inspection.Preferred_Language__c;
           //insdtl.Understands_disclaimer__c= inspection.Understands_disclaimer__c;
           insdtl.Additional_Language_s__c = inspection.Additional_Language_s__c;
           //insdtl.Consultation_Type__c     = inspection.Inspection_Type__c; 
           insdtl.Request_Topic_s__c       = inspection.Request_Topic_s__c;
           insdtl.Other_Topic_s__c         = inspection.Other_Topic_s__c; 
          
           system.debug('******************************in if*create event************************************') ;  
        }

I am trying to update a new field in already working code

insdtl.TypePicklist_del__c = inspection.Type__c;

by adding this like I want that picklist to be updated but the complete action of creating a record is not taking place.

Please suggest me why and how I can fix this.

Thank you,

Alekhya.

01type = eve.Consultation_Type__c;
02if(type=='Express')
03         {
04         for(Compliance_Checklist__c vio:[Selectid,Department__c,Checkbox_API__c,Notes_API__c,Category__c,Penalty__c,Sub_Category__c,Violation__c,Guidance_to_Avoid_Violation__cfrom Compliance_Checklist__c where EXPRESS__c=true]){
05                  violationMap.put(vio.id,vio);
06              }
07         }else
08 
09         {
10              for(Compliance_Checklist__c vio:[Selectid,Department__c,Checkbox_API__c,Notes_API__c,Category__c,Penalty__c,Sub_Category__c,Violation__c,Guidance_to_Avoid_Violation__cfrom Compliance_Checklist__c where CONSUMER__c=true or INFRASTRUCTURE__c=true]){
11                  violationMap.put(vio.id,vio);
12              }       
13         }

this is my present code. this query should return 67 records it does when I execute it as SOQL query but not on apex apge output.

my previous code is 
01if(type=='Consumer'){
02              for(Compliance_Checklist__c vio:[Selectid,Department__c,Checkbox_API__c,Notes_API__c,Category__c,Penalty__c,Sub_Category__c,Violation__c,Guidance_to_Avoid_Violation__cfrom Compliance_Checklist__c where CONSUMER__c=true]){
03                  violationMap.put(vio.id,vio);
04              }
05         }else if(type=='Express')
06         {
07         for(Compliance_Checklist__c vio:[Selectid,Department__c,Checkbox_API__c,Notes_API__c,Category__c,Penalty__c,Sub_Category__c,Violation__c,Guidance_to_Avoid_Violation__cfrom Compliance_Checklist__c where EXPRESS__c=true]){
08                  violationMap.put(vio.id,vio);
09              }
10         }else
11 
12         {
13              for(Compliance_Checklist__c vio:[Selectid,Department__c,Checkbox_API__c,Notes_API__c,Category__c,Penalty__c,Sub_Category__c,Violation__c,Guidance_to_Avoid_Violation__cfrom Compliance_Checklist__c where INFRASTRUCTURE__c=true]){
14                  violationMap.put(vio.id,vio);
15              }        
16         }


for some reason even if I change the values of type = Consultation_Type__c and try still this executes. My new code does not run still the old one executes.

is there anything I need to change along with the values of Consultation_Type__c ( this is a activity custom field)
 this is my code i need a break after customer area where I said 
<td></td>

i tried with <br/> it did not work
<td  align="left" style="width:25%;padding-top: .5em;padding-bottom: .5em;border:1px solid #999;font-size:12px;font-family:'Arial',Sans-serif;">
                   <apex:outputLabel value="{!v.notes}"/></td>
            </tr> 
                   
                   </apex:outputPanel>
               
               </apex:repeat>


            </apex:repeat>
            </table>              

           </apex:outputPanel>
        </table>
        
         <!------------------------Customer Area-------------------------------------------> 
        




         <apex:outputPanel rendered="{!custareaList.size!=0}">
          <table width="95%"  border="0" cellpadding="0" align="center" cellspacing="0" style="font-size:14px;font-family:'Arial',Sans-serif;">
            <tr>   
              <td></td>  
            <td bgcolor = "#FFFFFF" align="left" style="width:100%;color:#7A8A37"><b>CUSTOMER AREA </b>
                <apex:image url="{!imageCust}" style="width:30px" ></apex:image></td>

          </tr>

User-added image

This is how my page looks like I need a break betwwn the two sections.

Thanks in advance.
I am parsing an xml where my contatct information is being updated wrong sometimes. This is the code.
// Check which first and last name is not empty   
                if(String.isEmpty(first) && String.isEmpty(last)){
                dohmh.First_Name__c = first_name;
                dohmh.Last_Name__c = last_name;
                //system.debug('first_name ' + first_name + ', ' + 'last_name ' + last_name); 
                }else{
                dohmh.First_Name__c = first;
                dohmh.Last_Name__c = last; 
                //system.debug('first ' + first + ', ' + 'last ' + last); 
                }
                // End of Check which first and last name is not empty

One thing what I observed is most of the times the value is from th e pervious xml even if the contact infor is null.

Thank you,
Alekhya
my code works fine in UAT but when deployed in Production is throwing an error
Attempt to de-reference a null object 
it works fine with other two objects i have in the code only with one object. I tried checking everything I could that is linked up with this. 
All I am stuck is why is it working in UAT and not in Prod.

This is where I am getting an error in Prod
   if(!comlist.isEmpty()){
           for(Comliance_Checklist__c cl:comlist ){
             cidset.add(cl.Id);  
             if(cl.Category__c=='Outside/ Waste Area'){
               violationwrapper wr = new violationwrapper();
               //wr.violationid = cl.Id;
               wr.category  = cl.Category__c;
               wr.violationid = cl.ViolationId__c;  
               wr.violation = violationMap.get(cl.ViolationId__c).Violation__c;
               wr.guidance  = violationMap.get(cl.ViolationId__c).Guidance_to_Avoid_Violation__c ;
               wr.penalty   = violationMap.get(cl.ViolationId__c).Penalty__c;
               wr.notes     = cl.Notes__c;
               wr.topic     = cl.Topic_Discussed__c;
               dsnyList.add(wr);
               AllList.add(wr);
             }

it says al line line 70 and line 70 is my "}"

Please help me with this.
 this is my code i need a break after customer area where I said 
<td></td>

i tried with <br/> it did not work
<td  align="left" style="width:25%;padding-top: .5em;padding-bottom: .5em;border:1px solid #999;font-size:12px;font-family:'Arial',Sans-serif;">
                   <apex:outputLabel value="{!v.notes}"/></td>
            </tr> 
                   
                   </apex:outputPanel>
               
               </apex:repeat>


            </apex:repeat>
            </table>              

           </apex:outputPanel>
        </table>
        
         <!------------------------Customer Area-------------------------------------------> 
        




         <apex:outputPanel rendered="{!custareaList.size!=0}">
          <table width="95%"  border="0" cellpadding="0" align="center" cellspacing="0" style="font-size:14px;font-family:'Arial',Sans-serif;">
            <tr>   
              <td></td>  
            <td bgcolor = "#FFFFFF" align="left" style="width:100%;color:#7A8A37"><b>CUSTOMER AREA </b>
                <apex:image url="{!imageCust}" style="width:30px" ></apex:image></td>

          </tr>

User-added image

This is how my page looks like I need a break betwwn the two sections.

Thanks in advance.
I am parsing an xml where my contatct information is being updated wrong sometimes. This is the code.
// Check which first and last name is not empty   
                if(String.isEmpty(first) && String.isEmpty(last)){
                dohmh.First_Name__c = first_name;
                dohmh.Last_Name__c = last_name;
                //system.debug('first_name ' + first_name + ', ' + 'last_name ' + last_name); 
                }else{
                dohmh.First_Name__c = first;
                dohmh.Last_Name__c = last; 
                //system.debug('first ' + first + ', ' + 'last ' + last); 
                }
                // End of Check which first and last name is not empty

One thing what I observed is most of the times the value is from th e pervious xml even if the contact infor is null.

Thank you,
Alekhya
my code works fine in UAT but when deployed in Production is throwing an error
Attempt to de-reference a null object 
it works fine with other two objects i have in the code only with one object. I tried checking everything I could that is linked up with this. 
All I am stuck is why is it working in UAT and not in Prod.

This is where I am getting an error in Prod
   if(!comlist.isEmpty()){
           for(Comliance_Checklist__c cl:comlist ){
             cidset.add(cl.Id);  
             if(cl.Category__c=='Outside/ Waste Area'){
               violationwrapper wr = new violationwrapper();
               //wr.violationid = cl.Id;
               wr.category  = cl.Category__c;
               wr.violationid = cl.ViolationId__c;  
               wr.violation = violationMap.get(cl.ViolationId__c).Violation__c;
               wr.guidance  = violationMap.get(cl.ViolationId__c).Guidance_to_Avoid_Violation__c ;
               wr.penalty   = violationMap.get(cl.ViolationId__c).Penalty__c;
               wr.notes     = cl.Notes__c;
               wr.topic     = cl.Topic_Discussed__c;
               dsnyList.add(wr);
               AllList.add(wr);
             }

it says al line line 70 and line 70 is my "}"

Please help me with this.

Hi Guys,

     The code is done for the google map using visualforce page and assigned to the page layout. Not the all is showing any

     error. But even not showing the map in the following accounts. I don't know in which setting its not allowing me not to cross  

     the barrier to display it on accounts.

 

     Can anyone help me on this.

 

 

Regards