Using the framework without a database


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
I have a need to "slam in" a quick application to fill a customers need. They need it in just a few days. I want to use SF in a "stand alone" mode, that is no need for a data connection as I will be hard coding a lot to get it done in short order, then replacing with a SQL back end as time permits.



What do I need to do to "turn off" the frameworks need for a data source?



I tried commenting out some stuff from Appmain that I thought would do the trick, but it blew up with regularity.



Thanks,



Keith

Keith Chisarik
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
What do I need to do to "turn off" the frameworks need for a data source?

Really all you have to do is comment out the SetConnections() method in the AppMain.vb file.  If you are going to have BOs this becomes more tricky.  You can create a "dummy" connection, but any Save() or Undo() calls will fail since it will try to use the connection.

Larry Caylor
Larry Caylor
StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

The Save methods are overridable so you could handle those in your code. For the Undos you could mark them overridable in the source, re-compile and handle them any way you like.  I’m already doing that with the Add method.

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
You don't need to change the source code to override.  You can just Shadow the Undo method and achieve the same results.  This will prevent your source code from going down a different path than ours on the future updates.

Larry, I will add the override ability to the Undo so you don't have to change the source in the future.

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