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
Developer129Developer129 

Adding functions to custom objects

Hi,

 

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.

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Developer129Developer129

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.