function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anshuanshu 

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