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
Søren SørensenSøren Sørensen 

Future callout and afterwards update of visualforce page

I have an Visual Force page which when visited launches an Apex Callout (With the use of URL Parameters from visualforce page), when this callout is done (Contact object has been created/updated) the original VisualForce page needs to update to reflect the returned contact object.
How can this be done?
 
Best Answer chosen by Søren Sørensen
Sumitkumar_ShingaviSumitkumar_Shingavi
You need to use JS Remotting for this.

Read more on JS remotting here:
1. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
2. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting.htm

Thanks,
Sumit
 

All Answers

Sumitkumar_ShingaviSumitkumar_Shingavi
You need to use JS Remotting for this.

Read more on JS remotting here:
1. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
2. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting.htm

Thanks,
Sumit
 
This was selected as the best answer
Søren SørensenSøren Sørensen
Thanks :-) Finally got it to work. 
Sumitkumar_ShingaviSumitkumar_Shingavi
Great!! Happy to help buddy!