StrataFrame Forum

BO problem

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

By Joseph-Carl Theodat - 1/30/2007

Hi,

After configuring my project for the my business object (BO), setting the table for the BO,. I try to use the listbox control on my main form. My problem is that i can't set the primarybusinessobject property of my form. Am I forgetting something?

I think that my DataLayer.Datasource.Add ("", connectionstring) is wrong. To give you a better feel of my SF application with security, I have a DB different than the one use by SF (containing the table of my BO). Eventhough the help is well written, it doesn't see to explain the procedure to create a perfect BO Smile. The first time I ran the application, the connection wizard was use to specify the SF DB. Is it the way it's supposed to work? Or I was supposed to specify my other DB? I hope I was clear enough ...

A quick answer will be greatly appreciated.

Thanks in advance

By StrataFrame Team - 1/30/2007

We use the ConnectionManager within the Visual Studio AddIn to specify the StrataFrame database.  You can use the ConnectionManager within your application to connect to your database.  So, the first time you run VS after installing SF, you will be prompted for the SF connection string.  The first time you run your own application, you will be prompted for the connection string to your application. 

As for why the primary BO cannot be set on the form... you have to have a business object dropped on the form.  The drop down list will list all of the business objects that have been dropped on the form.  Configuring the business object is much like creating your own custom control.  Once it's created, it's just added do your project.  You then have to drop it on a form to use it.

By Joseph-Carl Theodat - 1/30/2007

Thanks. But... where can i find the newly BO? It's not in the toolbox tab...
By StrataFrame Team - 1/30/2007

When you configure a business object, you have to build the project containing the business object for it to automatically show up in the toolbox.  A new tab will be added to the toolbox named something like "ProjectName Components" and it will contain all of your business objects.  If you see a tab that contains toolbox items that all have the blue gear icon, then it's an automatically generated tab.
By Joseph-Carl Theodat - 1/30/2007

Thanks! I'm a newbie and give me a couple days and I'l be the one answering the post Tongue