You need to sign in to do that
Don't have an account?
Sandra Wicket
Add Filter to Visualforce Page
Hi there,
is it possible to add an Filter like Industry to a visualforce Page ? Here is my code
Hi there ,
is it possible to add a Filter to the visualfoce page below? :
<apex:page controller="LeadPageControllerKontaktiert" tabStyle="Leads">
<apex:pageBlock title="Meine Leads">
<apex:pageBlockSection title="20 - kontaktiert" columns="1">
<apex:pageBlockTable value="{!leads}" var="l" columnsWidth="60%, 20%, 20%">
//columnsWidth="400px, 100px, 400px, 200px, 200px, 50px"
<apex:column >
<apex:facet name="header">Name</apex:facet>
<apex:outputLink value="/{!l.Id}" target="_blank">
<apex:outputField value="{!l.company}"/>
</apex:outputLink>
</apex:column>
<apex:column value="{!l.Status}" />
<apex:column value="{!l.Lead_Score__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Controller:
public class LeadPageControllerKontaktiert {
public List<Lead> getLeads() {
return [SELECT Id, Name, Company, Owner.name , Status, Lead_Score__c from Lead WHERE OwnerId = :UserInfo.getUserId()
AND Status = '20 - kontaktiert' AND LastModifiedDate != TODAY
ORDER BY Lead_Score__c DESC
LIMIT 10
];
}
}
Thanks for your help guys ! ;)
is it possible to add an Filter like Industry to a visualforce Page ? Here is my code
Hi there ,
is it possible to add a Filter to the visualfoce page below? :
<apex:page controller="LeadPageControllerKontaktiert" tabStyle="Leads">
<apex:pageBlock title="Meine Leads">
<apex:pageBlockSection title="20 - kontaktiert" columns="1">
<apex:pageBlockTable value="{!leads}" var="l" columnsWidth="60%, 20%, 20%">
//columnsWidth="400px, 100px, 400px, 200px, 200px, 50px"
<apex:column >
<apex:facet name="header">Name</apex:facet>
<apex:outputLink value="/{!l.Id}" target="_blank">
<apex:outputField value="{!l.company}"/>
</apex:outputLink>
</apex:column>
<apex:column value="{!l.Status}" />
<apex:column value="{!l.Lead_Score__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Controller:
public class LeadPageControllerKontaktiert {
public List<Lead> getLeads() {
return [SELECT Id, Name, Company, Owner.name , Status, Lead_Score__c from Lead WHERE OwnerId = :UserInfo.getUserId()
AND Status = '20 - kontaktiert' AND LastModifiedDate != TODAY
ORDER BY Lead_Score__c DESC
LIMIT 10
];
}
}
Thanks for your help guys ! ;)
leadpage (visualforce page code) :
leadpagecontroller class (apex code) :
change it according to your values. I did it with standard values.
Please mark best answer if it solved your question.
All Answers
leadpage (visualforce page code) :
leadpagecontroller class (apex code) :
change it according to your values. I did it with standard values.
Please mark best answer if it solved your question.
i need your help again ;) is it possible to show all leads (itemValue=all ? )