From some reason the Child fields are disabled on Add mode, but are fine in Edit mode. Somehow before it worked fine. In the Child object the IncludeInFormAdd is True and in the form level the IncludeInFormAddType is DetermainedByBusinessObject. This is just an exercise for me to learn the SF, but the child and the parent should be saved at the same time. Using SF 1.6.5.1
Thanks,
Doron
I fixed the Fire Walls issue on the server level so it is possible to download the zip files. I understand where you are coming from, but the properly which is responsible to disable the child field is OFF. Even though I made it to work in a different way, I would like to understand what else can cause this problem again. I am still learning SF and .Net so I can easily over look something simple. Also please let me know when you Save at least one record if you see any delay in the Save mode - just curious.
I looked at your sample...and as I mentioned on a previous post, we do not have MaintenanceFormClass. Your problem is actually very simple. First, when you setup a test environment, make sure that you have the same code in both places...in this case you didn't (i.e. The Navigated event of the Members BO).
In order to make the form1 work, you will need to do the following:
If I remove the code found in the navigated method then when I click Next, Previous etc.. the child record will not be shown. Unless you have other suggestions to show the child record the below code works now:Private Sub MemberInfoBO1_Navigated(ByVal e As MicroFour.StrataFrame.Business.NavigatedEventArgs) Handles MemberInfoBO1.NavigatedIf Me.MemberInfoBO1.CurrentRow.RowState <> Data.DataRowState.Added Then If Me.MemberInfoBO1.Count > 0 Then Me.AddressMemBO1.FillByParentPrimaryKey(Me.MemberInfoBO1.MemberInfo_PK) Else Me.AddressMemBO1.Refresh() End IfEnd IfEnd SubDid run the form one time? Just worndered if you saved one record.
Regards,