| | | StrataFrame Beginner
       
Group: StrataFrame Users Last Login: 07/07/2008 4:22:04 PM Posts: 37, Visits: 434 |
| | Okay...I've searched existing messages and tried to figure this out on my own...with no luck! What I'd like to know is how to add a SF BO to a webform. What I think I understand is that I need to create a BO in another project and reference that in my webform project. I can create the BO - but - don't understand what to do next. How do I reference that and then how to I add that to the webform so that I can bind textboxes to it? Can someone help me understand this a bit better?
Thanks - HB P.S. Looking forward to seeing some of you in Amarillo in July! |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Yesterday @ 9:36:54 PM Posts: 4,200, Visits: 4,251 |
| | Howard, Sorry about the slow response on this...I missed this post  You will define the BO in the ApplicationBasepage, and then your web form inherits from an ApplicationBasePage. You can have as many ApplicationBasePages as you need, but any page that inherits from a base page will see those business objects. If you will open up the web application sample you will see how these get defined in the ApplicationBasePage of that sample. It should get you going in the right direction. |
| | | | StrataFrame Beginner
       
Group: StrataFrame Users Last Login: 07/07/2008 4:22:04 PM Posts: 37, Visits: 434 |
| | No problem being "late." Any help is greatly appreciated! Here's the problem...and don't forget...this is my first "real" application using SF. I've got the ReferralBO in a project called "CommonBusiness" within this solution. I've added this: to the ApplicationBasePage.cs: using MicroFour.StrataFrame.Tools;using System.Web.Configuration; using CommonBusiness;When building, I get this error: The type or namespace name 'CommonBusiness' could not be found... I've attached screenshots so you can see more of how I've got things setup. Thanks - again - for trying to help! 
 |
| | | | 
Advanced StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 9:36:18 PM Posts: 597, Visits: 10,686 |
| | Hi Howard. Have you added a reference to your CommomBusiness project into the PTPlus project references? Great to see we will meet at the class in July.  |
| | | | StrataFrame Beginner
       
Group: StrataFrame Users Last Login: 07/07/2008 4:22:04 PM Posts: 37, Visits: 434 |
| That's the step I was missing - thanks!  I'm sure I'll be back here soon with another question... |
| | | | 
Advanced StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 9:36:18 PM Posts: 597, Visits: 10,686 |
| Glad you got it going. |
| |
|
|