StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Problem calling a simple fill in a webformExpand / Collapse
Author
Message
Posted 10/05/2006 11:58:19 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 1:21:12 PM
Posts: 646, Visits: 21,978
I have no clue what this error means....... it occurs when my webform calls the fill method from the load, the fill is a simple top x to get things going.

System.NotImplementedException was unhandled by user code
Message="The class [commonClasses.transactionBO] must override the property 'TableName' since it derives from MicroFour.StrataFrame.Business.BusinessLayer."
Source="MicroFour StrataFrame Business"
StackTrace:
at MicroFour.StrataFrame.Business.BusinessLayer.get_TableName()
at MicroFour.StrataFrame.Business.BusinessLayer.CreateInternalTable()
at MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable(Boolean IsSharedTable)
at MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable()
at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable, Boolean AcceptChanges, Boolean IsSharedTable)
at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable, Boolean AcceptChanges)
at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable)
at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(String SelectStatement)
at commonClasses.transactionBO.FillTop100() in C:\Documents and Settings\kchisarik\My Documents\Visual Studio 2005\Projects\drsAS400\commonClassesandBOs\transactionBO.vb:line 68
at Default.Page_Load(Object sender, EventArgs e) in V:\2005 Projects\websites\drsAS400\Default.aspx.vb:line 8
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Post #3345
Posted 10/06/2006 9:39:17 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:16:25 PM
Posts: 4,566, Visits: 4,548
Well, I am not sure how you achieved getting this message to appear, but the problem is that the TableName property in your business object has not been overwritten (or it is missing the Implements tag at the end of the declaration).  Go to you business object and look in the transactionBO.Designer.vb file.  See if the TableName property exists within this code.  If not, rebuild your partial class and see if it exists after the rebuild of that class.

If the TableName property exists, see if there is an Implements tag at the end of the property declaration line.  If it is missing this it will cause an issue as well.

Post #3348
Posted 10/06/2006 11:03:47 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 1:21:12 PM
Posts: 646, Visits: 21,978
My issue might stem from the fact that I could not find the "Step by Step" directions to declare a BO in a webform app as referenced in the help file, so I winged it using the sample application as a model. Where is it?

The help file in general is pretty slim on webforms, am I missing something?


For information on declaring business objects within an ApplicationBasePage, see Step-by-Step -- Declaring Business Objects.
Post #3354
Posted 10/06/2006 11:09:27 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:16:25 PM
Posts: 4,566, Visits: 4,548
To declare the business object, open the ApplicationBasePage and there will be a region that says "Business Object Definitions".  To add your BO add a line like this:

Public WithEvents Customers As CustomersBO

Notice that you do not provide the New operator.  This is all done for you.

Post #3355
Posted 10/06/2006 11:22:09 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 1:21:12 PM
Posts: 646, Visits: 21,978
OK then I got it right? Ill check your other suggestion......

Does there exist more documentation for webforms that the approx 4 paragraphs in the SF Framework help file?

Thanks.
Post #3356
Posted 10/06/2006 11:25:02 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:16:25 PM
Posts: 4,566, Visits: 4,548
We have people working full time on the docs now.  If you'll notice there have been dramatic improvements already.  Also, we are going to publish an update next week.  We are working on this...thanks.
Post #3357
Posted 10/06/2006 11:27:48 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 1:21:12 PM
Posts: 646, Visits: 21,978
That's cool Trent, I just dont want to waste time looking for something that isnt there.....

I will look forward to the updated documentation.
Post #3358
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:21pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.