StrataFrame Forum

Selecting what fields get put in the business object

http://forum.strataframe.net/Topic183.aspx

By John Frankewicz - 11/29/2005

Maybe I missed something, since we are trying many different things to exericise the framework, but when you map your business object to a table in the database, can you selectively pick what fields you want to represent in the business object from the GUI?

By the way I am almost conviced this product is what we need, but we have a couple more tests we are running? 

By Trent L. Taylor - 11/29/2005

Sure,



If you do not want a field to show up in your business object when generated do the following:



1.) Open the Business Object Mapper and navigate to the proper business object

2.) Select the field to omit from the right panel

3.) Click the "Customize" Button

4.) Click the "Use Custom Code" check box

5.) Put a space in the Custom Code text box

6.) Rebuild the partial for the modified business object



You will notice that the field property is no longer created by the BO Mapper on that business object.