You need to sign in to do that
Don't have an account?
morley
Multiple controllers?
Hi there ... I'm trying to create a VisualForce page with Accounts and Contacts. The page will show a limited list of Accounts at the top, based on a SOQL query like "Select Name, Phone, From Account Where (ShippingCountry = 'USA') ". When the user clicks on one Account from the list, I want to show a filtered list of its Contacts below, again based on a SOQL query like "Select Name, Email From Contact Where (Title = 'Director' AND AccountId ={SelectedAccount}) ".
Is this possible, given that the documentation clearly states that "A page can only reference one controller at a time."?
Thanks for any help.
Regards,
Glenn.
Is this possible, given that the documentation clearly states that "A page can only reference one controller at a time."?
Thanks for any help.
Regards,
Glenn.
In the Winter '08 release, you will be able to create controller extensions so you can add custom functionality without interfering with the native.
Hope this helps!
Since you need to do some custom queries, you won't be able to use a standardController anyway (that is, until extensions are released with Winter...). Here is what you can do to grab information from multiple objects in your custom controller:
Code:
Now that I'm reading over what I just wrote, I realize it may not be 100% clear, so if you need any more clarification, please let me know.
Regards
Thanks!
Hope this helps.