Group: Awaiting Activation
Posts: 592,
Visits: 3.7K
|
I’m still wrestling with the situation where I require fields from other tables for display purposes and the fact that the business object must match the single table structure in the DB to save it. It would be nice if there were a way to mark individual fields as savable or not, or if the object were smart enough to only try and save/update fields defined by object mapper, allowing you to have a single instance of an object that could provided the required behaviors without being so closely tied to the underlying data structure. However I imagine doing so would require some significant changes to the framework. Therefore my question what is the recommended approach to handle this situation? Should I create two instances of the object, one that includes fields from other tables for display purposes and one without for updating? Or should I simply add the other objects/tables to my form and pull the added fields from them on the form? Most of what I’m doing is manipulating a List View to allow the user to work with the information is a user friendly way before saving the results (mostly just foreign keys) to the DB. Some other solutions come to mind, but I’d like your input on what is the most efficient way to do this within SF.
|