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
jyoti_Singhjyoti_Singh 

Fire Two methods sequentialy from single button

Hi

On a VF page I hit on save for case(standard functionality) and then there continue button to open created child record (on this same case) in edit mode. Now I want to do it in one go .. hit save and get redirected to the created child record in edit mode.
So to merge save and continue(it calls saperate method from a class) in one go sequentially .. (because child gets created from a future call)
How this can be acheived , any thoughts ?

Thanks
 
Anoop yadavAnoop yadav
Hi,
Call the contunue method inside the save method.
But I am not sure why you are using the future method.
sfdc550sfdc550
In the "Save" method perform insert operation for new case and after insertion is done, then redirect the page using pagereference redirect to  you can perform 2 operations . Use controller "extensions" to perform both at a time.