A Couple of Questions from a New User


Author
Message
fparker
fparker
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 31, Visits: 199
Greetings,

My Company is just getting into StrataFrame and I have a couple of questions. 

First, according to other posts in this forum, if we want to present data to the user in an editable grid, we must use a grid component from DevExpress.  DevExpress offers a couple of different grid controls.  Which ones are supported?  Do we buy these controls directly from DevExpress? And is there a "Strataframe" version of the controls or do we just buy the standard versions? 

Secondly, many of our applications are meant to work with Microsoft's Great Plains ERP system.  Great Plains allows you to create "add ins" to provide custom functionality.  These must be implemented as .NET DLLs.  Is it possible to create DLLs that contain StrataFrame Maintenance forms?  If so, is there any documentation/sample code for this?

Thanks for your help.

Fran Parker

MaxQ Technologies, Inc.

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
If you are running through a DLL you still have to initialize the environment.  The problem you are having is because the SetDataSources method in Appmain is never called.  For example:

Option 1 - Replace the SetDataSources Method
ConnectionManager.ApplicationKey = "MyApplication"
ConnectionManager.ApplicationDefaultTitle = "MyApplication Connection"
ConnectionManager.ApplicationDefaultDescription = "This application connection is used by MyApplication"

'-- Set the required data source information so that the ConnectionManager can gather it
'      SQL Connection
ConnectionManager.AddRequiredDataSourceItem("", "SQL Connection", DataSourceTypeOptions.SqlServer, "MyDatabase", "This connection is used by MyApp.")
       
'-- Allow the database connection wizard to manage the connection
ConnectionManager.SetConnections()

Option 2 - Manually Specify the Connection Strings
MicroFour.StrataFrame.Data.Databasics.DataSources.Add(New SqlDataSourceItem("","MyConnectionString"))

If you are going to be using localization, you need to set this information up as well.  This is called in the InitApplication method of AppMain.vb or program.cs.  The last thing has to do with security.  You will need to look in this two methods mentioned in this post and pull out any security settings as well (only seen when the security templates were used to create an application).

Just out of curiosity....how are you planning on calling this DLL if not through an EXE?  You have to have an entry point someplace.  Are you using COM or something?

fparker
fparker
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 31, Visits: 199
Thanks for your help.  I'll give that a try.

Just out of curiosity....how are you planning on calling this DLL if not through an EXE?  You have to have an entry point someplace.  Are you using COM or something?

Much of our work revolves around Microsoft's Great Plains ERP system.  Great Plains allows developers to create "add-ins" to provide custom functionality.  These have to be implemented as .NET DLLs.  One of the Great Plain's EXEs (which is beyond our control) will call into the add-in DLL to tell it that the user wants it to perform its function.  We are hoping to build our add-ins using StrataFrame.

Thanks again.

Fran Parker

MaxQ Technologies, Inc.

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The interface you use to implement the add-in should have a method called OnStart() or OnConnect(), or something to that effect... you'll want to find the method that Great Plains calls to initialize your add-in and put your code to set the data sources there.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
fparker - 19 Years Ago
Trent L. Taylor - 19 Years Ago
fparker - 19 Years Ago
StrataFrame Team - 19 Years Ago
Trent L. Taylor - 19 Years Ago
fparker - 19 Years Ago
                         [quote] How about my question about building a StrataFrame maintenance...
Trent L. Taylor - 19 Years Ago
                             [quote]This is done every day and will work just fine.[/quote] That's...
fparker - 19 Years Ago
                                 If you are running through a DLL you still have to initialize the...
Trent L. Taylor - 19 Years Ago
                                     Thanks for your help. I'll give that a try. [quote]Just out of...
fparker - 19 Years Ago
                                         The interface you use to implement the add-in should have a method...
StrataFrame Team - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search