﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Default DataSourceKey on Adding Business Object</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:10:39 GMT</lastBuildDate><ttl>20</ttl><item><title>Default DataSourceKey on Adding Business Object</title><link>http://forum.strataframe.net/FindPost13153.aspx</link><description>Is it possible to set a default DataSourceKey when a new business object is created?&amp;nbsp; I can add the key manually after it is created...just looking for the shortcut.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Wed, 26 Dec 2007 10:26:14 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Default DataSourceKey on Adding Business Object</title><link>http://forum.strataframe.net/FindPost13167.aspx</link><description>Ya, that's kinda my issue...I have a gob of datasources to work with.&amp;nbsp; I was just hoping to be able to switch the default from an empty string to something else.&amp;nbsp; Nevertheless, all is good.&amp;nbsp; :)&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Wed, 26 Dec 2007 10:26:14 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Default DataSourceKey on Adding Business Object</title><link>http://forum.strataframe.net/FindPost13166.aspx</link><description>Also remember that the default datasource key is an empty string ("") which is also the default for BOs, so typically you don't have to enter anything. Of course, if you have a bunch of datasources then you will need to enter the non-default data source keys in the BOs.</description><pubDate>Wed, 26 Dec 2007 10:15:30 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Default DataSourceKey on Adding Business Object</title><link>http://forum.strataframe.net/FindPost13163.aspx</link><description>Hey Greg,&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I'll just enter the string upon creation of the BO class.&amp;nbsp; No biggie.&amp;nbsp; I was just hoping for the lazy way, since I will have several&amp;nbsp;scores of&amp;nbsp;BOs to create by project completion.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Bill</description><pubDate>Wed, 26 Dec 2007 07:17:51 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Default DataSourceKey on Adding Business Object</title><link>http://forum.strataframe.net/FindPost13159.aspx</link><description>You typically set this at the BO level, rather than at the instance level. I.e. you set it on the properties window for the BO itself.  Thus you only set it once for each BO and your done.&lt;br&gt;
&lt;br&gt;
The only time you would set it at the instance (i.e. on the BO instance that is dropped on a form) is when you want to change the DataSourceKey, to use a different datasource temporarily.</description><pubDate>Mon, 24 Dec 2007 16:18:06 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>