You need to sign in to do that
Don't have an account?

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.
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.
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.