You need to sign in to do that
Don't have an account?
HarithaAkella
Pagination links prev, next not working when pageblocktable column is changed to inputtext?
I figured out that the pagination:
<apex:pageBlockButtons location="Bottom">
<apex:commandLink value="First" action="{!First}"/>
<apex:commandLink value="Next" action="{!Next}"/>
<apex:commandLink value="Previous" action="{!Previous}"/>
<apex:commandLink value="Last" action="{!Last}"/>
</apex:pageBlockButtons>
my next and prev links implemented as above work fine when I have pageblocktable fields as
<apex:column value="{!ord.SO__c}" style="width: 20px; height: 20px"/>
Once you change to InputText value, that's when I see the error "Modified rows exist in the records collection! "
<apex:column> <apex:InputText value="{!ord.SO__c}" style="width: 20px; height: 20px"/> </apex:column>
But I have the requirement to have input fields in my pageblocktable in visualforce page, I just dont want to view them, i should be able to edit them but also have the pagination work preoperly!
<apex:pageBlockButtons location="Bottom">
<apex:commandLink value="First" action="{!First}"/>
<apex:commandLink value="Next" action="{!Next}"/>
<apex:commandLink value="Previous" action="{!Previous}"/>
<apex:commandLink value="Last" action="{!Last}"/>
</apex:pageBlockButtons>
my next and prev links implemented as above work fine when I have pageblocktable fields as
<apex:column value="{!ord.SO__c}" style="width: 20px; height: 20px"/>
Once you change to InputText value, that's when I see the error "Modified rows exist in the records collection! "
<apex:column> <apex:InputText value="{!ord.SO__c}" style="width: 20px; height: 20px"/> </apex:column>
But I have the requirement to have input fields in my pageblocktable in visualforce page, I just dont want to view them, i should be able to edit them but also have the pagination work preoperly!
Best Answer chosen by HarithaAkella
HarithaAkella
Ok, I have found the solution for this! Just change the <apex:InputText > to <apex:InputField> , That solves the issue!