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
ggaopggaop 

Question on modifying a detail page...

I have a customer detail page on which I have added a custom button. The custom button links to a VisualForce page in which I have specified a controller extension. There is a method which gets invoked, performs a Web Service Callout and updates the record. 

 

Everything works like a charm. 

 

I would like to enhance the custom detail page to add an error message from the remote server. 

 

Any suggestions on how I should go about?

 

Thanks in advance

 

J

 

in the custom controller, I have 

 

.....

 

theId = ApexPages.currentPage().getParameters().get('id');

 

.....

 

PageReference pageRef = new PageReference('/' + theID);

pageRef.setRedirect = true;

return pageRef;

 

 

Message Edited by ggaop on 05-04-2009 11:24 AM
ARUNBLIKESCLOUDARUNBLIKESCLOUD

Hi ggaop,

I also have a similar requirement now. Did you find a solution to this ?

 

 

Thanks.