Clicking Save on Maintenance form goes into infinite loop


Author
Message
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Well...You have to give us credit for consistency Wink
Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
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 Wink- That's right! SET NOCOUNT ON. Give that man a silver dollar BigGrin

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
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


Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
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

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