StrataFrame Forum

ChildForm Dialog drill down problem

http://forum.strataframe.net/Topic19488.aspx

By Edhy Rijo - 9/17/2008

I have a Main Form that will call a ChildForm Dialog (CFD) and that CFD will call another CFD and that will call another one, so the relation is like this:

MainParentTable, related to Child, then this child has another child.

The problem is that in the last one, when trying to add a record, the record is not being added to the 3rd BO, using a ListView.

I have been using CFD in most of my forms, but this is the first one, where it will go down a 2nd level.  I have reviewed and recreated the forms a couple of times, but can't figured out what else I am missing.

Any help/suggestion greatly appreciated, as always Hehe

By Edhy Rijo - 9/17/2008

I forgot to attached the 3 tables relationship diagram which is very simple.

  • ServiceCalls is the parent of SC_Appliances
  • and SC_Appliances is the parent of SC_AppliancesItems

The problem is that when clicking the add button in the 2nd childform dialog (which has the SC_AppliancesItems BO) no record is being added, and there is no error either.

By Edhy Rijo - 9/18/2008

It looks like the ListView is not getting a hold on the reference to its Business Object, so I did a test and in the form's Load added the following code:

Me.lstItemService.BusinessObject = Me.bizSC_AppliancesItems1

This seems to work, since now the new record is being added and the last ChildForm dialog is being showed as it should.

What may be causing this behavior and is this something that we should do in general .NET sometimes?

By Trent L. Taylor - 9/18/2008

Honestly I have not had a chance to look at this post in depth...lots of fires burning this week...I will try and take a closer look this weekend.