+ Start a Discussion
amateur1amateur1 

task help

hi 

 

 

 

i have a opportunity look up in a visual force page . when i select an opportunity and click on add button the line items of the opportunity should be displayed under it and again the same should be displayed with name and s.no and all in another box in the same page. now when i select another opportunity the line items corresponding should display under clearing the before line items but in the next block the first opp line items and second opp line items both should be diplayed how can i do that

RadnipRadnip

You can use the Ajax functionality in Salesforce. This will allow you to refresh a section of the page when a field changes. So when your opportunity field changes you can refresh the fields so they then populate with the values.

 

Take a look at visualforce action components ( eg actionRegion: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionRegion.htm