• Techman97
  • NEWBIE
  • 0 Points
  • Member since 2011
  • The Dude
  • Mine

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

I have 4 dail out fields (Dial 1, Dial 2, Dial 3, Dial4) having Data type as Date/Time. These field type are being used by Inside Sales Rep. for reaching out to Prospect. Everytime they dial out to Prospect dial out is recoreded subsequently. 

Pardot Last Activity, is another field I am using to track last activity by any prospect. Now, I wanted to know if my inside sales rep. have dialed to them after Prospect last visit. 

((NOW() - pi__last_activity__c) ) - 

MIN( (NOW() - Cold_Call_1__c),(NOW() - Cold_Call_2__c) , (NOW() - Dial_out_3__c ),(NOW() - Dial_out_4__c ))

I used above logic to find out nearest date & substracted it from Pardot last activity, but if any of the dial out is blank then this logic dosen't work. For above logic to work all 4 dial field shouldn't be Blank. 

Please guide me on how to include blank fields also in this formula or logic

Thanks 
Hi All,

This is with a basic doubt that i have:

// e.g. of custom controller as available on salesforce //

<apex:page controller="NewAndExistingController" tabstyle="Account">
    <apex:form>
        <apex:pageBlock mode="edit">
            <apex:pageMessages/>
            <apex:pageBlockSection>
                <apex:inputField value="{!Account.name}"/>
                <apex:inputField value="{!Account.phone}"/>
                <apex:inputField value="{!Account.industry}"/>
            </apex:pageBlockSection>
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>


Now how do i get a page with above on say "opportunity" or "account" object as a "detail" page.

Kindly advice.

Many thanks in advance.

Regards,
Anidev
 
  • December 23, 2013
  • Like
  • 0

I am trying to use apex:outputPanel to conditionally display a pageblocks or pageblock sections.  I keep getting an error saying:

 

Error: oportunidad_detail line 152, column 3: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>"

 

<apex:form >
<apex:outputPanel rendered="{!IF(Plan_de_Oportunidad__c.Is_Cross_Sell__c <> "No", "True", "False")}">
<apex:pageBlock >
               <apex:inlineEditSupport showOnEdit="save, cancel" hideOnEdit="edit"  resetFunction="resetInlineEdit"/> 
               <apex:pageBlockSection title="Diagnostico Inicial" columns="3" collapsible="true" >
               <FONT COLOR="#FF5500"> <STRONG>1. ENLACE CON LA NECESIDAD DEL CLIENTE</STRONG></FONT>
               <apex:outputText >Si/No/Talves</apex:outputText>
               <apex:outputText >Es relevante para ganar venta y porque?</apex:outputText>
               
                   
                   <apex:outputText >A. ¿Cumplimos con las necesidades del comprador?</apex:outputText>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.X1A__c}" label=""/>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.T1A__c}" style="width 500px height 300px" label=""/ >
    
                       <apex:outputText >B. ¿Estamos dentro del presupuesto del comprador?</apex:outputText>
                       <apex:outputField value="{!Plan_de_Oportunidad__c.X1B__c}" label=""/>
                       <apex:outputField value="{!Plan_de_Oportunidad__c.T1B__c}" label=""/>
            
                            <apex:outputText >C. ¿Tenemos recursos y disponibildad de espacios?</apex:outputText>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.X1c__c}" label=""/>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.T1C__c}" label=""/>
        
                                <apex:outputText >D. ¿Enlazamos con el concepto de compra?</apex:outputText>
                                <apex:outputField value="{!Plan_de_Oportunidad__c.X1D__c}" label=""/>
                                <apex:outputField value="{!Plan_de_Oportunidad__c.T1D__c}" label=""/>
                                
              <FONT COLOR="#FF5500"> <STRONG>2. RENTABILIDAD / VALOR ESTRATEGICO</STRONG> </FONT>
              <apex:outputText > </apex:outputText>
              <apex:outputText > </apex:outputText>
              
              <apex:outputText >A. ¿Es rentable para el hotel (Posadas) esta oportunidad de negocio? </apex:outputText>
              <apex:outputField value="{!Plan_de_Oportunidad__c.X2A__c}" label=""/>
              <apex:outputField value="{!Plan_de_Oportunidad__c.T2A__c}" label=""/>
    
                   <apex:outputText >B. La eventual venta ¿Puede ayudarnos a mejorar nuestro posicionamiento estratégico en la cuenta? </apex:outputText>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.X2B__c}" label=""/>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.T2B__c}" label=""/>
            
                        <apex:outputText >C. ¿Apoyamos al plan clave del comprador? </apex:outputText>
                        <apex:outputField value="{!Plan_de_Oportunidad__c.X2C__c}" label=""/>
                        <apex:outputField value="{!Plan_de_Oportunidad__c.T2C__c}" label=""/>
                                     
              <FONT COLOR="#FF5500"> <STRONG>3. DECISORES DE COMPRA</STRONG> </FONT>
              <apex:outputText > </apex:outputText>
              <apex:outputText > </apex:outputText>
              
              <apex:outputText >A. "¿Hemos identificado a todas las influencias de compra?</apex:outputText>
              <apex:outputField value="{!Plan_de_Oportunidad__c.X3A__c}" label=""/>
              <apex:outputField value="{!Plan_de_Oportunidad__c.T3A__c}" label=""/>
    
                   <apex:outputText >B. ¿Hemos contactado a todas a las influencias compradoras al menos una vez?  </apex:outputText>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.X3B__c}" label=""/>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.T3B__c}" label=""/>
            
                        <apex:outputText >C. ¿Tenemos identificado el decisor de compra final?</apex:outputText>
                        <apex:outputField value="{!Plan_de_Oportunidad__c.X3C__c}" label=""/>
                        <apex:outputField value="{!Plan_de_Oportunidad__c.T3C__c}" label=""/>
        
                            <apex:outputText >D. ¿Tenemos al menos una influencia compradora que no apoye la propuesta?</apex:outputText>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.X3D__c}" label=""/>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.T3D__c}" label=""/>
                            
                            <apex:outputText >E. ¿Al menos una influencia compradora quiere bloquear la compra? </apex:outputText>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.X3E__c}" label=""/>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.T3E__c}" label=""/>
                            
                                <apex:outputText >F. ¿Tenemos al menos un coach para esta oportunidad? </apex:outputText>
                                <apex:outputField value="{!Plan_de_Oportunidad__c.X3F__c}" label=""/>
                                <apex:outputField value="{!Plan_de_Oportunidad__c.T3F__c}" label=""/>

                                    <apex:outputText >G. Tenemos buen entendimiento del proceso de compra en esta oportunidad? </apex:outputText>
                                    <apex:outputField value="{!Plan_de_Oportunidad__c.X3G__c}" label=""/>
                                    <apex:outputField value="{!Plan_de_Oportunidad__c.T3G__c}" label=""/>


                      <FONT COLOR="#FF5500"> <STRONG>4. POSICION COMPETITIVA</STRONG> </FONT>
                      <apex:outputText > </apex:outputText>
                      <apex:outputText > </apex:outputText>
              
               <apex:outputText >A. ¿Tenemos al menos un competidor?</apex:outputText>
              <apex:outputField value="{!Plan_de_Oportunidad__c.X4A__c}" label=""/>
              <apex:outputField value="{!Plan_de_Oportunidad__c.T4A__c}" label=""/>
    
                   <apex:outputText >B. ¿Tiene el precio alta relevancia?</apex:outputText>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.X4B__c}" label=""/>
                   <apex:outputField value="{!Plan_de_Oportunidad__c.T4B__c}" label=""/>
            
                        <apex:outputText >C. ¿Percibe el comprador al menos una ventaja en nuestra solución?</apex:outputText>
                        <apex:outputField value="{!Plan_de_Oportunidad__c.X4C__c}" label=""/>
                        <apex:outputField value="{!Plan_de_Oportunidad__c.T4C__c}" label=""/>
        
                            <apex:outputText >D. ¿Estamos alineados con el Equipo de Compras?</apex:outputText>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.X4D__c}" label=""/>
                            <apex:outputField value="{!Plan_de_Oportunidad__c.T4D__c}" label=""/>
                            
 


               </apex:pageBlockSection>
               
</apex:pageBlock>
</apex:outputPanel>
</apex:form>