• Gil Hecht
  • NEWBIE
  • 25 Points
  • Member since 2014

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

Hi below is my code for a visualforce page. I'm wondering if in the last_dial__c field I can autopopulated it with today's date as a default value. Thanks!

 

<apex:page standardController="Lead" recordSetVar="leads" tabStyle="Lead" extensions="tenPageSizeExt">
    <apex:form >
        <apex:pageBlock title="Log a Call" mode="edit">
            <apex:pageMessages />
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Cancel" action="{!cancel}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockTable value="{!selected}" var="leadselect">
               <apex:column headerValue="Lead Name">
                <apex:inputField value="{!leadselect.name}"/> </apex:column>
                   <apex:column headerValue="Number of Dials">
                    <apex:inputField value="{!leadselect.Calls_Made_Counter__c}"/>
                </apex:column>
                <apex:column headerValue="Last Dialed">
                    <apex:inputField value="{!leadselect.Last_Dial__c}"/>
                </apex:column>

            </apex:pageBlockTable>      
        </apex:pageBlock>
    </apex:form>
    </apex:page>

I am trying to create a custom list button that lets me edit certian fields from multiple leads at once. It does not recognize the records I select, however. I think it's a problem with {!selected} becuase when I subsitute that for {!leads} all leads appear on the page just fine. Any ideas? Thanks!

<apex:page standardController="Lead" recordSetVar="leads" tabStyle="Lead" extensions="tenPageSizeExt">
    <apex:form >
        <apex:pageBlock title="Edit Last Dialed and Calls Made" mode="edit">
            <apex:pageMessages />
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Cancel" action="{!cancel}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockTable value="{!selected}" var="leadselect">
               <apex:column headerValue="Lead Name">
                <apex:inputField value="{!leadselect.name}"/> </apex:column>
                <apex:column headerValue="Last Dialed">
                    <apex:inputField value="{!leadselect.Last_Dial__c}"/>
                </apex:column>
                <apex:column headerValue="Number of Dials">
                    <apex:inputField value="{!leadselect.Calls_Made__c}"/>
                </apex:column>
            </apex:pageBlockTable>      
        </apex:pageBlock>
    </apex:form>
    </apex:page>

 
I'm working in sandbox and I want to deploy this to my production but I currently have 0% coverage. Any help is appreciated! 

public class tenPageSizeExt { public tenPageSizeExt(ApexPages.StandardSetController controller) { controller.setPageSize(10); } }

I am trying to create a custom list button that lets me edit certian fields from multiple leads at once. It does not recognize the records I select, however. I think it's a problem with {!selected} becuase when I subsitute that for {!leads} all leads appear on the page just fine. Any ideas? Thanks!

<apex:page standardController="Lead" recordSetVar="leads" tabStyle="Lead" extensions="tenPageSizeExt">
    <apex:form >
        <apex:pageBlock title="Edit Last Dialed and Calls Made" mode="edit">
            <apex:pageMessages />
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Cancel" action="{!cancel}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockTable value="{!selected}" var="leadselect">
               <apex:column headerValue="Lead Name">
                <apex:inputField value="{!leadselect.name}"/> </apex:column>
                <apex:column headerValue="Last Dialed">
                    <apex:inputField value="{!leadselect.Last_Dial__c}"/>
                </apex:column>
                <apex:column headerValue="Number of Dials">
                    <apex:inputField value="{!leadselect.Calls_Made__c}"/>
                </apex:column>
            </apex:pageBlockTable>      
        </apex:pageBlock>
    </apex:form>
    </apex:page>

 
I'm working in sandbox and I want to deploy this to my production but I currently have 0% coverage. Any help is appreciated! 

public class tenPageSizeExt { public tenPageSizeExt(ApexPages.StandardSetController controller) { controller.setPageSize(10); } }