You need to sign in to do that
Don't have an account?

How to convert an AggregateResult to a String
Hi All,
I have a requirement where in I need to convert an AggregateResult to a String in Apex class, so that I can display it in the VisualForce page. Could any one please suggest a solution for this problem.
Regards
Rahul
Hi Rahul,
Here is code which hopefully will resolve your problem :
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Hi Ankit,
Thanks for sending the code. The Code which you have send is getting complied successfully in Apex class, but when I am trying to display the Plot_Area field Venture object on the Visualforce page I am getting the following error message.
Attempt to de-reference a null object
An unexpected error has occurred. Your development organization has been notified.
I am posting the code, could you please look into it and provide a better solution.
Actually I have a requirement, where in I need to calculate the sum of the Plot_Area field from the Plots Object and convert it to text in Plot_area field of Venture Object. Could you please send the solution.
Thanks and Regards
Rahul
Please let me know if you are getting proper values in debug System.Debug('NameString :::::::::::::::: ' + NameString) ; ?
Also error occurs where in code , when you update the object? If error occur where you updating the object then there must be some problem within the creation of instance of object.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Dude post your questions under appropraite boards(atleast in future).
Your post should be under Apex Code Development