You need to sign in to do that
Don't have an account?
sai tej
HOw to display records based on picklist selection in visual force lightining
Hi, How to display case records based on picklist slection using visualforce LIghting
I have 4 Picklist fields in case object, i have to display these 4 picklist fields in visulaforce page and based on thsese picklist fileds selection need to display case records on page .this should be done in visulaforce lighting.Please help me to complete it.i am new to salesforce :( help
I have 4 Picklist fields in case object, i have to display these 4 picklist fields in visulaforce page and based on thsese picklist fileds selection need to display case records on page .this should be done in visulaforce lighting.Please help me to complete it.i am new to salesforce :( help
i havent understood :"visulaforce lighting" , both are different visualforce pages and lightning components ,
iif you are looking to display the picklist value of an object in lightning experience please use this below link .
http://www.sfdcmonkey.com/2016/12/05/how-to-fetch-picklist-value-from-sobject-and-set-in-uiinputselect/
note: please mark as best answer if i resolve your query
Have 4picklist fields those pick lists have to display on page and based on picklist selection have to display records at down.
Please help me .
This is how you can display the picklist values in visualforce page -
There are two points you are mentioning here -
1. To display the picklist value
2. Display records on selection of picklist
Solution for the first point -
Apex Class -
Visualforce Page -
This is how your picklist can be displayed in Visualforce page.
Second point -
Can you please clarify more on this, which data should be displayed on the selction of any picklist value ?
Thanks,
Mustafa Jhabuawala
Technical Lead at Zen4orce (http://www.zen4orce.com)
for product object i have 4 picklist fileds based on pick list selection product records should display . and it should be done in lighting not in classic:(
please provide contact to me @ sairamsfdc9@gmail.com
regards,
Do you have any specific requirement for this, for example -
Picklist values - P1, P2, P3, P4
On selection of P1 - Show field 1, field 2
On selection of P2 - Show field 3, field 4
On selection of P3 - Show field 5, field 6
On selection of P4 - Show field 7, field 8
Is this you want to do or something else ?
Thanks,
Mustafa Jhabuawala
Technical Lead at Zen4orce (http://www.zen4orce.com)
Can you share a sample mock up screen. So that I can visualise it and provide you the solution for the same.
You can connect via Skype if needed - mustafa.j0052
I had created one dependent picklist example.I will share small code with you please change field with your object field
Thank you
Amol Salve
Salesforce Developer
Even I have the same requirement wherein I have to display all the records of object based on picklist values. Could you please post if you have found a solution.
I have 3 values in my picklist-- Account,Contact,Leads..I need to display the duplicate records of selected object..for example I have selected Contact then it should display Contact duplicate records and so on.. How to achieve this.. can someone help me out.
Thanks in advance!!
public list<selectoption> pickval{set;get;}
public list<account> acclst{set;get;}
public string str{set;get;}
public searchpicklistrec(){
pickval=new list<selectoption>();
selectoption obj1=new selectoption('sonu','1');
pickval.add(obj1);
selectoption obj2=new selectoption('monu','2');
pickval.add(obj2);
selectoption obj3=new selectoption('vinu','3');
pickval.add(obj3);
acclst=[select id,name,phone from account limit 5];
}
public void serachrec(){
acclst=[select id,name,phone from account where name=:str];
}
}
vf page...
<apex:page controller="searchpicklistrec">
<apex:form>
<apex:pageBlock>
<apex:pageBlockTable value="{!acclst}" var="ac">
<apex:column value="{!ac.id}"/>
<apex:column value="{!ac.name}"/>
<apex:column value="{!ac.phone}"/>
</apex:pageBlockTable>
<apex:selectList size="1" value="{!str}">
<apex:selectOptions value="{!pickval}"/>
</apex:selectList>
<apex:commandButton action="{!serachrec}" value="search"/>
</apex:pageBlock>
</apex:form>
</apex:page>