StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



BusinessObject Mapper - Default Values/Stored...Expand / Collapse
Author
Message
Posted 03/24/2006 11:49:16 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: Forum Members
Last Login: 01/10/2008 9:33:30 AM
Posts: 65, Visits: 820
Hi,

New to to SF started to create the first BusinessObject and it raised a couple of questions:

- The default value for "NULL Value" seems to be "Do Not Allow Nulls". Can this be changed or even better - made to be retrieved from the database (in my case Oracle).

- Can a business object be build on a stored procedure or perhaps without having any direct link to a object in the database

TIA,

Kari

Post #722
Posted 03/24/2006 4:33:47 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 10:49:29 PM
Posts: 4,379, Visits: 4,412
Kari,

As of right now, the default values for the NULL options cannot be changed.  However, we have talked about adding a preference that would allow you to choose which default option to use.  This is a good idea and should probably be implemented.  But for now the only way to change this is manually.

As for your stored procedures question. You cannot pull the schema from the stored procedure directly, but you can fill the business object with a stored procedure.  There is, however, a solution to what you are trying to accomplish.  This is where the Database Deployment Toolkit (DDT) comes in very handy.  You can create a profile in the DDT that will match the schema when pulled from the stored procedure.  To strong-type the business object, simply map it to the DDT table and then use your stored procedure to fill the BO.  This is the best of both worlds.  We use this same technique when we want to map a business object to an XML file.

The business object does not care where the data comes from, nor does it have to pull its structure in the BO Mapper from the same place that will be populating it. 

Let me know if this doesn't make any sense.

Post #729
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:02am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 8 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.