You need to sign in to do that
Don't have an account?
Gil Hecht
{!selected} Not working?
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>
Step1 :- To use above code you need to create one "List Button" like below :-
Step 2:- Then Add the button on List View:-
Setup :- Lead:- Seach layout -> Leads List View
Like below screen shot
Step 3:- Then click on Leads List View and add New button on page layout like below :-
Step 4:- Then Go to list view and seletc some record and the n click on button like below screen shot :-
Step 5 :- Finaly the result
Please mark this as solution if this will help your.
Thanks
Amit Chaudhary
amit.salesforce21@gmail.com
All Answers
Here's the extension code!
Step1 :- To use above code you need to create one "List Button" like below :-
Step 2:- Then Add the button on List View:-
Setup :- Lead:- Seach layout -> Leads List View
Like below screen shot
Step 3:- Then click on Leads List View and add New button on page layout like below :-
Step 4:- Then Go to list view and seletc some record and the n click on button like below screen shot :-
Step 5 :- Finaly the result
Please mark this as solution if this will help your.
Thanks
Amit Chaudhary
amit.salesforce21@gmail.com