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
deepu.sandeepdeepu.sandeep 

data binding with fields

Hi,

      I have felds like  College/University, Year Granted, Degree Granted, Major and  College/University1, 

Year Granted1, Degree Granted1, Major1 and  College/University2, Year Granted2, Degree Granted2, Major2

 

and i have wrote a code like this

 

<apex:pageBlockTable value="{!con}"  rows="3" columns="4" var="cc">
     <apex:column > <apex:facet name="header">College/University</apex:facet> <apex:inputfield value="{!cc.College_University__c}"/></apex:column>
     <Apex:column > <apex:facet name="header">Year Granted</apex:facet> <apex:inputfield value="{!cc.Year_Granted__c}"/></apex:column>
     <Apex:column > <apex:facet name="header">Degree Granted</apex:facet> <apex:inputfield value="{!cc.Degree_Granted__c}"/></apex:column>
     <Apex:column > <apex:facet name="header">Major </apex:facet> <apex:inputfield value="{!cc.Major__c}"/></apex:column>
  </apex:pageBlockTable>

 

My problem is ineed to bind the manually entered row values to these field values, how can i do that anyone suggest me.

jhansisridhar_2011jhansisridhar_2011

Hi Sandeep,

 

Write a apex class/trigger (insert operation) with SOQL query.

 

public class College{

------------

--------------

----------

 

list<string> mylist = new list<string>();
        
        mylist.add('a');  /// null point exception
        mylist.add('b');
        mylist.add('c');
        mylist.add('d');
        mylist.add('a');
        mylist.size() 
        mylist[0]
        mylist.isEmpty()

---------------------

--------------------

}

 

another example:

 

<apex:page standardStylesheets="false" showHeader="false" sidebar="false" standardController="Merchandise__c" recordSetVar="products">

<apex:stylesheet value="{!URLFOR($Resource.Styles, 'styles.css')}" />

<h1>Inventory Count Sheet</h1>
<apex:form >
<apex:dataTable value="{!products}" var="pitem" rowClasses="odd,even">
   <apex:column headerValue="Product">
      <apex:outputText value="{!pitem.name}"/>
   </apex:column>



<apex:column headerValue="Inventory">
   <apex:outputField value="{!pitem.Total_Inventory__c}"/>
</apex:column>
<apex:column headerValue="Physical Count">
   <apex:inputField value="{!pitem.Total_Inventory__c}"/>
   </apex:column>  
   
</apex:dataTable><br/>
<apex:commandButton action="{!quicksave}" value="Submit"/>

<apex:commandLink action="{!next}" value="Next" rendered="true"/>
</apex:form>

</apex:page>

 

Hope this helps u out, mark as solution if this post helps U out.

deepu.sandeepdeepu.sandeep

What i need is a table with 3 rows and 4 columns with manual entry of data in vf page

and i need to bind those manually entered row values with field values.

How can i do that  suggest me.