﻿<?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?)  » Shared Settings File predefined by bypass Connection Wizard</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 22 May 2026 11:30:15 GMT</lastBuildDate><ttl>20</ttl><item><title>Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31641.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;does anyone know if there is a way to "pass in" the location of the Shared Settings File without firing up the Connection Wizard.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;What I would like to happen is deploy an app with the location of the SSF embedded, and bypass the connection wizard completely. The user would just install the application, run it and it would apply the DB connections automatically without being prompted. The next prompt after starting the app would be the login.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thank You,&lt;div&gt;Govinda</description><pubDate>Thu, 20 Dec 2012 11:13:39 GMT</pubDate><dc:creator>Govinda Berrio</dc:creator></item><item><title>RE: Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31676.aspx</link><description>Cool.&amp;nbsp; Glad it helped. :)</description><pubDate>Thu, 20 Dec 2012 11:13:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31675.aspx</link><description>Trent,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;this looks like exactly what we are looking for.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thank You!</description><pubDate>Thu, 20 Dec 2012 10:45:13 GMT</pubDate><dc:creator>Govinda Berrio</dc:creator></item><item><title>RE: Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31649.aspx</link><description>Govinda:&lt;br/&gt;&lt;br/&gt;If you wanted to, you could just load a DbeSharedSettingsData and then create the connection yourself.&amp;nbsp; It would look something like this:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[codesnippet]DbeSharedSettingsData sharedSettings = new DbeSharedSettingsData();&lt;br/&gt;&lt;br/&gt;//-- Load the shared settings file into the BO.&amp;nbsp; The shared settings file is XML that populates a business object.&lt;br/&gt;sharedSettings.FillWithSharedSettings(@"c:\Repository\NameOfSharedSettingsFile.ssf");&lt;br/&gt;&lt;br/&gt;//-- Build a connection string&lt;br/&gt;string connectionString = "server=" + sharedSettings.ss_server + ";";&lt;br/&gt;&lt;br/&gt;if(sharedSettings.ss_windowsauthentication)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionString += "integrated security=SSPI;";&lt;br/&gt;else&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionString += "user=" + sharedSettings.ss_username + ";password=" + sharedSettings.ss_password + ";"&lt;br/&gt;&lt;br/&gt;connectionString += "database=" + sharedSettings.ss_initialcatalog + ";";&lt;br/&gt;&lt;br/&gt;//-- Now you can create your connection&lt;br/&gt;MicroFour.StrataFrame.Data.DataBasics.DataSources.Add(New SqlDataSourceItem(string.Empty,connectionString));&lt;br/&gt;&lt;br/&gt;[/codesnippet]&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;You may have to tweak the above code, I just typed it in here in the forum editor, so it may have a small typo here or there, but this should get you going without changed the SF source.</description><pubDate>Wed, 12 Dec 2012 13:55:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31647.aspx</link><description>Trent,&amp;nbsp;&lt;div&gt;&lt;br/&gt;&lt;div&gt;we are going to try modifying the SF source to add this functionality until you guys can implement it in the SF product.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Can you give me a place to start with this? A class name where it would make sense to add this functionality to, perhaps?&lt;div&gt;Or the method that loads the SSF and writes the connection files to the user profile?&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thank You,&lt;div&gt;Govinda&amp;nbsp;</description><pubDate>Wed, 12 Dec 2012 13:40:09 GMT</pubDate><dc:creator>Govinda Berrio</dc:creator></item><item><title>RE: Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31643.aspx</link><description>Thanks Trent</description><pubDate>Tue, 11 Dec 2012 09:14:05 GMT</pubDate><dc:creator>Govinda Berrio</dc:creator></item><item><title>RE: Shared Settings File predefined by bypass Connection Wizard</title><link>http://forum.strataframe.net/FindPost31642.aspx</link><description>Govinda:&lt;br/&gt;&lt;br/&gt;At the moment there isn't.&amp;nbsp; However, this only has to be done once.&amp;nbsp; This is a good idea, though.&amp;nbsp; I will look at the source and see how much energy would be involved.</description><pubDate>Mon, 10 Dec 2012 17:02:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>