I’m working on a Salesforce Application. The application contains some custom objects, one of which is Project. I have created a Visualforce page to manage these projects. We are also developing an extension. In the extension a new custom field is added to the Project object.
In the original package I want to change the visualforce page to show whether the value of that field (if the extension is installed). So I need to check if the extension is intalled, and if so, display a field from that extension.
Is there any way to do that?
The solution I ended up using was to create an interface in the base class with a default implementation that doesn’t do much. Then I created a custom setting in which another class name that implements that interface should be entered. Also in the base class I created a Factory that can be used to get the implementation of the interface. I used this guide as a basis.