You need to sign in to do that
Don't have an account?
In a Pageblock table only new added row should be in input mode, remaing should be in read mode
This is my Pgblock Table, Working Fine, but when ever i tried to Add a Row, In The First Colum i am taking the InputField(Account Lookup), And displaying related record in the column & changing the First Row , Input field to OutputField,
But, When i add a Row, The Before all columns changes to Inputfield, Help me in this situation...!!
<apex:pageBlock>
<apex:pageblockSection columns="1">
<apex:pageBlockTable title="Account" var="acc" value="{!attendeeList}">
<apex:column headerValue="Outlet Name" >
<apex:outputPanel Rendered="{!onOff}" >
<apex:inputField value="{!Myobject.Account__c}" >
<apex:actionSupport event="onchange" action="{!AccountPopulated}" reRender="pb,mapPanel,map_canvas" oncomplete="showAddress();"/>
</apex:inputField>
</apex:outputPanel>
<apex:outputPanel rendered="{!NOT(onOff)}">
<apex:outputField value="{!acc.Account__r.Name}">
</apex:outputField>
</apex:outputPanel>
</apex:column>
<apex:column headerValue="Outlet Address 1" style="width:150px;">
<apex:outputtext value="{!acc.Account__r.BillingStreet}"/>
</apex:column>
<apex:column headerValue="Outlet Address 2" style="width:150px;">
<apex:outputtext value="{!acc.Outlet_Address2__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageblockSection>
<apex:commandButton action="{!addRow}" value="Add Row" reRender="pb"/>
</apex:pageBlock>