Adding or Editing put me into an infinite loop


Author
Message
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 All.

Me again. I have a form that is using the Browse Dialog to locate records. This form also has a DataGridView that holds the contacts for the current Advisor. This Code works fine:

private void brwAdvisor_BrowseDialogClosed(MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogClosedEventArgs e)

{

// Get all the contacts for the currrent Advisor

boAdvisorContacts.GetAdvisorContacts(boAdvisor.advisor_pk);

}

However, when these 2 methods are left uncommented, they put me into an infinite loop - any ideas about why this is happening? I have another form that uses similar code to update the child records in the grid and there are no problems with it - the only difference between the two forms is that the one that works does not use the Browse Dialog. Here are the methods that are causing the problems:

private void Advisors_FormNavigated(MicroFour.StrataFrame.Business.NavigatedEventArgs e)

{

// Get all the contacts for the currrent Advisor

// if (!boAdvisor.IsEmpty)

// boAdvisorContacts.GetAdvisorContacts(boAdvisor.advisor_pk);

}

private void Advisors_FormEditingStateChanged(MicroFour.StrataFrame.Business.EditingStateChangedEventArgs e)

{

// if (!boAdvisor.IsEmpty)

// {

// if (boAdvisor.EditingState == MicroFour.StrataFrame.Business.BusinessEditingState.Idle)

// grdContacts.Enabled = false;

// else

// grdContacts.Enabled = true;

// }

}

TIA


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