+ 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