function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bwagner1.3965607537535862E12bwagner1.3965607537535862E12 

Filtering Lookup Values on a custom vf page

Hi, 

We have created a custom vf page to allow us to configure and price quotes using the standard SFDC quote object. Clicking a custom "add products" button launches this interface. From this interface users are also able to configure a custom object that has a 1:M child relationship with a quote. We are looking for a way to display a filtered lists of contacts (only the contacts related to the Quote's Account) but are running into challenges because the record has not neccesarily been saved to the database when the filter is needed. What options are available to dynamically filter results in code? Can this be acheived in using a picklist with a custom controller? 
logontokartiklogontokartik
Not looking at code what you are doing, i can suggest that you can basically use SOQL  on Contacts to display only the ones that are associated to Quotes Account , you can basically do that after a specific action, doesnt need to be a save.