You need to sign in to do that
Don't have an account?
Nishh
Problem in Select List and wrapper class
I am getting problem in my select List of product2 object. and i want to use that select list value in query
How can i get value of selectValue in controller from visualforce page?
<apex:pageBlockTable value="{!wrapList}" var="w">
<apex:column headerValue="Product Name">
<apex:selectList id="products" value="{!w.selectValue}" size="1" title="Select Value">
<apex:selectOptions value="{!products}"></apex:selectOptions>
<apex:actionSupport action="{!ProductValue}" event="onchange" reRender="price" status="status"/>
</apex:selectList>
</apex:column>
</apex:pageBlockTable>
public void ProductValue()
{
priceGridList = [Select Id, Name From Quantity_Price_Grid__c Where Product__c =: selectValue];
}
public class Wrapper
{
public OpportunityLineItem OLI {get;set;}
public Integer rowIndex {get;set;}
public String selectValue {get; set;}
}
How can i get value of selectValue in controller from visualforce page?
<apex:pageBlockTable value="{!wrapList}" var="w">
<apex:column headerValue="Product Name">
<apex:selectList id="products" value="{!w.selectValue}" size="1" title="Select Value">
<apex:selectOptions value="{!products}"></apex:selectOptions>
<apex:actionSupport action="{!ProductValue}" event="onchange" reRender="price" status="status"/>
</apex:selectList>
</apex:column>
</apex:pageBlockTable>
public void ProductValue()
{
priceGridList = [Select Id, Name From Quantity_Price_Grid__c Where Product__c =: selectValue];
}
public class Wrapper
{
public OpportunityLineItem OLI {get;set;}
public Integer rowIndex {get;set;}
public String selectValue {get; set;}
}
Then in the controller, figure out the entry for the selected wrapper: