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
vishalavishala 

Trying to read the inputtext values in datatable of multiple rows

Hi,

 

I have created a VF page where I am retreiving all the product records and displaying them, name as outputtext and one customfield on it as inputtext. As there are multiplr rows, I am not be to set or read these values and assign to the  object.

 

please help me how it can be achieved.

 

sample code:

 <apex:pageblock title="Products page under development ">
 <apex:dataTable value="{!Products}" var="prodIds" >
        <apex:column >

 <apex:inputCheckbox id="pSelect" value="{!prodIds.SelectCK__c}"/></apex:column>

<apex:column ><apex:OutputText value="{!prodIds.Name}"  /></apex:column>

 <apex:column ><apex:InputText id="pQuant" value="{!prodIds.Quantity__c}"/></apex:column>

</apex:dataTable>

 

how to set the values of inputtext  to the obj in the controller.

 

Thanks,

vishala.


 

rohitsfdcrohitsfdc

Please post your entire code for page and controller.