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



Business Objects in ToolboxExpand / Collapse
Author
Message
Posted 10/31/2006 7:09:24 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 11/19/2007 4:06:18 AM
Posts: 41, Visits: 99
Hello,

For some reason i am not getting the BusinessComponents in the VS2005 Toolbox though it should be there. Please see the attached snapshot to elaborate my issue.

Vikram

  Post Attachments 
Doc10.doc (22 views, 206.50 KB)

Post #4019
Posted 10/31/2006 10:03:48 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:33 PM
Posts: 4,556, Visits: 4,542
It looks as though you are trying to select a business object DLL and have the BOs within that DLL show up in your toolbox...correct?  If this is the case, try un-checking the items then re-checking them to see if they appear.  Also, make sure that they are not showing up in some other tab in the toolbox (this has happened to me before) .
Post #4023
Posted 11/06/2006 6:01:17 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 11/19/2007 4:06:18 AM
Posts: 41, Visits: 99
I have tried checking/unchecking and also confirmed that the component does not appear in any other tab. for your reference i have attached my web & BOL project along with the snapshot. would really appreciate any help.

  Post Attachments 
ComponentsInToolbox.zip (20 views, 111.07 KB)
ComponentsInToolbox.doc (11 views, 185.00 KB)
Post #4151
Posted 11/06/2006 10:18:53 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:33 PM
Posts: 4,556, Visits: 4,542
Oh...I see the problem you are having....you have a web project.   Sorry I did not catch this earlier.  Business Objects are WinForms components and do no get directly dropped onto a page in a WebForms application.  This is what the ApplicationBasePage is for.  You define all of your BOs in the ApplicationBasepage and they will be automatically managed by the framework.

Open up the ApplicationBasePage and add your business object definitions here:

#Region " Business Object Declarations "

 '-- Business Objects defined within this class will be available to
 '   inherited pages as binding sources to bindable controls.  These
 '   business objects will also be persisted within session variables
 '   and retrieved each time the page loads.  If the business object
 '   is declared WithEvents, events can be handled without the need
    '   for AddHandler calls.
    Public WithEvents MyBusinessObject As YourBusinessObjectType
       
#End Region

Notice that you do not call the New statement as these BOs will be dynamically created and stored in the session.  You can see more about this in the help documentation under: Application -> WebForms -> ApplicationBasePage Classes -> Overview

Post #4157
« 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 10:19pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 13 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.