+ Start a Discussion

Opportunity Product Selector - Lightning


I am trying to create a Visualforce Page to replace the Add Products pop up window.

I want the users to be able to select the Product Family from a drop-down list and based on the Product Family, when they search for products - only active products that belong to that Product Family to come up. The Product Family is a picklist field on the Product object.

I have started working on the picklist visualforce and Apex code, but I am not sure if I got any close as I don't have experience with Apex classes and Visualforce Pages.

Could you please help?

Please see below what I have tried so far:


<apex:page controller="ProductFamilly">
    <apex:form >
          <apex:pageBlockSection title="Select Product Type">
         <apex:pageBlockSection title="ProductType">
             <apex:pageBlockTable value="{!Family}">
                 <apex:column value="{!family.values}"/>
                 <apex:commandButton value="FIND" action="{!pf}"/>

Apex Class:

public List<ProductFamily> ProductValues{get; set;}
Public Dynamicfiltercon(){
        ProductValues=<ProductFamily>([SELECT values, FROM ProductFamily]);

I am still looking into the search functionality code.