+ Start a Discussion

Adding functions to custom objects



Is there a way to add a functions to custom object for using them in some other objects custom extension. Situation I have is something like this, I have an custom controller extension of an object A, i want to add a function to object B so that I can use that in object A controller extension visualforce page.



Best Answer chosen by Admin (Salesforce Developers) 

For those out there who have a similar question. I had to make a wrapper class which would contain the object B and custom function we need and then I used the wrapper class where i needed the function.