You need to sign in to do that
Don't have an account?
alok29nov
Displaying data on a visualforce page based on the selection of a picklist values
Hi,
I have a requirement where I need to display opportunity on a account page. The opportunites that has to be displayed would be based on a filter. Actually the req. is that opportunites should be displayed based on region which will be selected from the dropdown (a vf section on account page) on the account page. Can anybody help me with the code.
Thanks in advance!!!
If you want to use the <apex:detail/> tag to display the Account, that would be the easiest - however, there is not a standard way to attach a behavior to a dropdown with in that page.
Here is an example of a solution using a custom drop down list:
VF PAGE
CONTROLLER
This uses a query on the Account Industry field, but you could adjust to filter on a custom "region" field quite easily.
Hope this helps!
All Answers
If you want to use the <apex:detail/> tag to display the Account, that would be the easiest - however, there is not a standard way to attach a behavior to a dropdown with in that page.
Here is an example of a solution using a custom drop down list:
VF PAGE
CONTROLLER
This uses a query on the Account Industry field, but you could adjust to filter on a custom "region" field quite easily.
Hope this helps!
Thanks you so much for your detailed reply...I could not check the code but looks like this should work fine for me. Would ask you more questions if I get any issues :) :)
Thanks again, TheSwami!!!
Hi Swami,
It worked fine. Thanks!!!
Great - glad to know. Can you click the "Accept as solution" so others know this worked? Thanks!
Sure..I just forgot to click..