You need to sign in to do that
Don't have an account?
anshu
action function behaviour with oncomplete
We are having a Vf page in which we have used action function and on "oncomplete" event we are running some other functionality.
But there are few validation errors in the system , which are coming onVf page , In that case Oncomplete should not fire but this is not happening .
we have put try catch block and maintaining a boolean variable to check the exception , but it seems that variable is not getting updated in catch block whenever there is any exception
<apex:actionFunction action="{!Savedetail}" name="InsertRecord_JS" Rerender="pb1" status="actstatuspp" oncomplete="CallWebService_JS({!detailerr});"/>
This varaible is always coming as false , even we have make it false in the controller in the catch block.
Please suggest
But there are few validation errors in the system , which are coming onVf page , In that case Oncomplete should not fire but this is not happening .
we have put try catch block and maintaining a boolean variable to check the exception , but it seems that variable is not getting updated in catch block whenever there is any exception
<apex:actionFunction action="{!Savedetail}" name="InsertRecord_JS" Rerender="pb1" status="actstatuspp" oncomplete="CallWebService_JS({!detailerr});"/>
This varaible is always coming as false , even we have make it false in the controller in the catch block.
Please suggest
anshu
his varaible is always coming as false , even we have make it TRUE in the controller in the catch block.Mistakenly , i posted false in my previous post