I have one data table where no. of records are available.
I am using actionPollar and my action is updateList to get the latest list to display on my view on given time interval with below code
<apex:actionPoller action="{!updateList}" reRender="thePageBlock" interval="5"/>
Now, I am updating any row using below code.
<apex:commandButton action="{!quicksave}" value="Save" id="saveButton" reRender="thePageBlock"/>
but, it does not change. and does not update the record.
if i remove code of actionPollar and remove method updateList from controller ..it updates the data..but, after putting it, it does not work.
Can anyone tell how Can I do that ?
Thanks
Interesting, so it is always keeping same copy of your DataSet, which is been refreshed every 5 seconds and displayed, that means your ViewState is been refreshed also every 5 seconds, it looks to me you might be submitting same values last received not containing any changes, I'll go one of two routes:
Proposed solution for using option (1), the poller stays active it is not interfering with the record, still missing a lock mechanism for the record when selected
VisualForce Page
Controller