• Maxime Savart
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies
Hello, 

I'm trying to work on a mass edit button using Mass Manager.

Here is the code I'm using for the custom button dedicated to my custom object "Recouvrement".

<apex:page standardController="Recouvrement__c" extensions="MassManager.ActionHubExtension" recordSetVar="recouvrements">
  <script>
        window.onload = function(e) {
           var recordIds = '{!selected}';
           var Objectname = 'Recouvrement';
           var action = 'Edit';
           var fieldsetName = 'RecouvrementMassEditFieldSet';
          if(recordIds!='')
          {
              Redirect(recordIds,Objectname,action,fieldsetName);
          }
          else
          {
            alert('Please select a record.');
            window.history.back();
          }
            };
      </script>
 <apex:form >
 <apex:actionFunction action="{!Redirect}" name="Redirect" rerender="none">
   <apex:param name="recordIds" assignTo="{!recordIds}" value=""/>
   <apex:param name="Objectname" assignTo="{!objectName}" value=""/>
   <apex:param name="action" assignTo="{!action}" value=""/>
   <apex:param name="fieldsetName" assignTo="{!fieldsetName}" value=""/>
 </apex:actionFunction>
  </apex:form>
</apex:page>

I get the error, attempt to de-reference a null object when using it on a record.

Could you help me with this one? :)

Thanks a lot,
Hi all,

I have at the moment this code to build recurrence on paiement terms
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement en 2 fois'){this.periode=2;this.periodeText='Facturé en 2 fois';}
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement en 3 fois'){this.periode=3;this.periodeText='Facturé en 3 fois';}    
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement en 4 fois'){this.periode=4;this.periodeText='Facturé en 4 fois';}
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement en 2 fois sur 2 mois glissants'){this.periode=2;this.periodeText='Facturé en 2 fois sur 2 mois glissants';}
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement en 3 fois sur 3 mois glissants'){this.periode=3;this.periodeText='Facturé en 3 fois sur 3 mois glissants';}
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement en 4 fois sur 4 mois glissants'){this.periode=4;this.periodeText='Facturé en 4 fois sur 4 mois glissants';}
            if(this.produitPrincipal.Modalites_de_paiement__c=='Paiement mensuel'){this.periode=this.dureeContratMonths;this.periodeText='Paiement mensuel';}
            
            this.paiementUpfront = false;
            this.paiementReccurent = (opp.Amount-opp.AmountInstallation__c) / (this.periode);
            this.paiementSignature = opp.AmountInstallation__c+((opp.Amount-opp.AmountInstallation__c) / (this.periode));
            this.recurrence= Integer.valueOf((this.dureeContratMonths/this.periode));
            Date dateDebut = date.newinstance(opp.Date_d_entr_e_en_vigueur_du_contrat__c.year(),
                                              opp.Date_d_entr_e_en_vigueur_du_contrat__c.month(),
                                              26).addMonths(recurrence) ;
            listDateEcheance = new List<Date>();
            listDateEcheance.add(dateDebut);
            for (Integer i = recurrence; i < this.dureeContratMonths-recurrence; i=i+recurrence) {listDateEcheance.add(dateDebut.addMonths(recurrence));}

My problem is that the recurrence doesn't work for the "paiement en 2 fois en 2 mois glissants" and so on ("paiement en 3 fois sur 3 mois glissants" & "paiement en 4 fois sur 4 mois glissants"). I need my dates of paiement to be consecutive for those ones.

Do you hav ean idea on how to do it?

Thanks a lot,
Hello People,

I would like to be able to send email templates with a button on a custom object named "Recouvrement" is it possible ? If yes, how can I do that?

If not, what would be the best way to mass email people using an email template?

Thanks a lot,
Hi there, 

This is my first post on Salesforce developpers forum.
I have a special request for you since I'm a beginner on visualforce developpment.

I made an account scoring based on 5 fields (criterias) :
PotentielCa__c 
CapaciteDecision__c
RayonnementMarque__c
ConnaissanceMp__c
CompatibiliteOperationnelleDiatly__c

I would like to make a radar chart based on those 5 fields on the account object.

Could you help me? :)

Thanks a lot
 
Hello, 

I'm trying to work on a mass edit button using Mass Manager.

Here is the code I'm using for the custom button dedicated to my custom object "Recouvrement".

<apex:page standardController="Recouvrement__c" extensions="MassManager.ActionHubExtension" recordSetVar="recouvrements">
  <script>
        window.onload = function(e) {
           var recordIds = '{!selected}';
           var Objectname = 'Recouvrement';
           var action = 'Edit';
           var fieldsetName = 'RecouvrementMassEditFieldSet';
          if(recordIds!='')
          {
              Redirect(recordIds,Objectname,action,fieldsetName);
          }
          else
          {
            alert('Please select a record.');
            window.history.back();
          }
            };
      </script>
 <apex:form >
 <apex:actionFunction action="{!Redirect}" name="Redirect" rerender="none">
   <apex:param name="recordIds" assignTo="{!recordIds}" value=""/>
   <apex:param name="Objectname" assignTo="{!objectName}" value=""/>
   <apex:param name="action" assignTo="{!action}" value=""/>
   <apex:param name="fieldsetName" assignTo="{!fieldsetName}" value=""/>
 </apex:actionFunction>
  </apex:form>
</apex:page>

I get the error, attempt to de-reference a null object when using it on a record.

Could you help me with this one? :)

Thanks a lot,