Multiple Company Scenario Help


Author
Message
Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
Hello Everyone

I'm working on a project that needs to support the ability to connect and switch between companies. The problem raised when running the Strataframe application the first thing that the user sees is the login Form. I tried manipulating the config file so the main application reads the connection string from there, but what happens if the client needs to switch to another company. Another approach I think of is by using the Strataframe native Connection Wizard but I don't figure out how to customize it to just populate the names of the companies available to connect. I was studying in deep the logic in the Small Business Accounting to recreate the company switching scenario. Any help be accepted.



Also I will like to add that I made a entire library that support Janus Winforms v.3 Controls if any one interested.

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion
Mike Rogers
Mike Rogers
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: Forum Members
Posts: 23, Visits: 723
Hi Guillermo

I would be very interested in your library that supports the Janus Winforms v.3 Controls.

Thanks

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Another approach I think of is by using the Strataframe native Connection Wizard but I don't figure out how to customize it to just populate the names of the companies available to connect. I was studying in deep the logic in the Small Business Accounting to recreate the company switching scenario. Any help be accepted.

Guillermo,

I think that you are trying to make things a little too compicated.  First, you do not have to SF login form if you do not want to.  You have complete control and access of the login mechanisms of the SF Role-Based Security.  Secondly, you do you have to use the config file or the connection string wizard.  We use neither of these in our medical software and instead have taken a different approach where the connection is auto-detected through UDP (we have a server that listens for broadcasts).  This approach, however, is only used when installed in a single site.  We have another approach for dealing with multiple companies logging in.  We actually manipulate this at the login screen.  We have a combo that allows the end-user to choose which division or company which then in turns determines how the connection string will be pulled.

StrataFrame has the ability to work in virtually any scenerio in this case, it is more a function of how you choose to design your application.  I hope that maybe some of these ideas may give you an idea of an approach you may take with your application. Smile

Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
Mike Rogers (01/08/2008)
Hi Guillermo

I would be very interested in your library that supports the Janus Winforms v.3 Controls.

Thanks

Hi Mike

I'm attaching the source code of the wrapper, I must say that the Janus Grid Control is still a work in progress, since I'm making some mayors changes to it. You will need to add the references for both the StrataFrame and Janus Library. i'll be open to any suggestions.

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion

Attachments
Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
 We have a combo that allows the end-user to choose which division or company which then in turns determines how the connection string will be pulled.

Thanks for your help Trent

Thats means that I can call the 'DataLayer.DataSource.Add' Method from the custom login form overwriting the one added in AppMain class?

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Thats means that I can call the 'DataLayer.DataSource.Add' Method from the custom login form overwriting the one added in AppMain class?

Yes, you can call that method from anywhere within your application to change the connection string at any time.  Just remember to remove the data source you're replacing before you add the new one. 

DataBasics.DataSources.Remove(String.Empty)
DataBasics.DataSources.Add(New SqlDataSourceItem(String.Empty, "new connection string"))

Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
Thank for your help Ben

I'll submit a screenshot of the solution to contribute as soon I finish it.

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search