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
BridgetreeBridgetree 

product details based on names

hi all...

 

        I am stuck up with a small requirement. Pls help me..

 

i have a custom object fanchisee in which i will be storing some products on single franchisee name.

 

Now in lead page (visualforce page) i have a lookup field called Franchisee Name. Once after i enter a data to it,

 

i will click a button "Add Products" . Soon after this i should get the list of products that the Franchisee Name in the

 

above field entered.

 

 

Pls save me...

 

Thanks in advance.

Pradeep_NavatarPradeep_Navatar

You can call action function on the commandbutton:

 

<apex:commandbuttton action="{!getProductDetails}" value="Add Products" rerender="OutputPANELiD"/>

 

In controller side in action function "getproductdetails" you can write business logic according to your requirement.

BridgetreeBridgetree

thanks for the reply,

well the code you suggested executes the getProductDetails method,

but how will this capture the data in the looup field. The methid should execute based on this data.

 

Can you please elaborate your idea??

 

Phaniraj N