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



Clicking Save on Maintenance form goes into...Expand / Collapse
Author
Message
Posted 08/31/2008 4:21:30 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 12/20/2008 1:55:52 PM
Posts: 149, Visits: 206
Hi.

I am evaluating Strataframe for a C# winforma application I have just been hired to create. I am trying to decide whether or not I will buy it for this project.

The form has a combo box of lookup header items for quick navigation. It then has text boxes for the header information and the lookup details business object is displayed in a DataGridView.

When I click the "Save" button in the ToolStrip, SQL profiler shows me that StrataFrame is in an infinite loop, calling the stored procedure that updates the lookup header table over and over again. I have to use a 3 fingred salute to get out of the application. I did not write any custom save code - I figured that if I had the business objects set up preoperly that5 Strataframe would handle it for me - after all, isn't that what frameworks are for <s>?

Any ideas what I need to do to fix this?

TIA

Marcia

Post #18866
Posted 09/02/2008 2:03:21 PM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: 12/23/2008 11:10:40 AM
Posts: 232, Visits: 511
Hi Marcia! Sorry for the delay here...

Sounds as though there is something in the population settings that is causing the infinite loop.  How are you populating the combo box, list view, and business objects?  Depending on how you are accomplishing that and where you are making any calls to the fill methods, it could conceivably produce the behavior you are seeing.

For instance, since combo boxes have an internal business object, we typically recommend you use the CopyDataFrom method in the PopulationDataSourceSettings rather than a typical fill method to prevent multiple trips to the server. That way you populate the source BO once, then use the CopyDataFrom to pass those results on to the internal BO of the combobox.

When you use CopyDataFrom, you'll need to pass the required parameters in the ListPopulating event for the combo:

Private Sub cboYourCombo_ListPopulating(ByVal e As MicroFour.StrataFrame.UI.ListPopulatingEventArgs) Handles cboYourCombo.ListPopulating
e.Parameters(0).Value = _YourBO
e.Parameters(1).Value = MicroFour.StrataFrame.Business.BusinessCloneDataType.ClearAndFillFromDefaultView
End Sub

Post #18920
Posted 09/02/2008 2:21:43 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 12/20/2008 1:55:52 PM
Posts: 149, Visits: 206
Hi Dustin.

>> Sounds as though there is something in the population settings that is causing the infinite loop.  How are you populating the combo box, list view, and business objects?  Depending on how you are accomplishing that and where you are making any calls to the fill methods, it could conceivably produce the behavior you are seeing. <<

Wanna take a wild guess about what was causing that behavior - That's right! SET NOCOUNT ON. Give that man a silver dollar

Post #18926
Posted 09/02/2008 3:24:47 PM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: 12/23/2008 11:10:40 AM
Posts: 232, Visits: 511
Well...You have to give us credit for consistency
Post #18935
« 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 5:47pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.078. 10 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.