StrataFrame Forum

A little confused - Not sure where to place my code to call my fillByParentPrimaryKey

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

By Robert Carl Johnson - 7/9/2007

Hi all. Ok, I have a SF maint form with a Nav tool strip that I'm using to enter data for Inventory Header records and on the same form a grid to enter and display records for child records for Inventory Child. I have the relationships set up with the BO's and the BBS on the form, everything works great the grid saves records except when I come back into the form the grid data does not show up. Of course I need to call the code below but I'm not sure where to put it. It should be called during an edit not when the user is in add mode. So, can someone give me an idea here? How do I test for either AND where, in the Nav bar click event?





Me.InventoryDetailBO1.PopulateInventoryChildRecords(Me.txtInvHeaderID.Text)



Regards,



Robert
By Trent L. Taylor - 7/9/2007

Well, this really depends on the type of functionality that you want to give to your end-user.  There are a lot of events that can be managed in order to place this code.  Generally, we use the Navigated event of the parent BO to place the population of our child records.  If we have a lot of child BOs that will be loaded, then we thread it using the ThreadManager control by loading each BO on a separate thread...this is probably overkill for what you are trying to accomplish.  Just place your population code in the Navigated event of the parent BO and see if you get what you are looking for.
By Robert Carl Johnson - 7/9/2007

Trent, thanks for the reply. I'll give it a try. Where in the doc's can I find more info for these events?



TIA



Robert
By Trent L. Taylor - 7/9/2007

IN the Business Objects it shows each of the events and what they do.  You can also look at the class library to see a description of each of the events as well.  We noticed that we forgot to add the new IsDirtyChanged event.  So we are adding a sample (actually several) to the install which will be posted in the next few days and the help will be updated to included the missing events as well.  But the Navigated event is there Smile

By Robert Carl Johnson - 7/9/2007

Thank you sir... BTW, got my form working just fine now. Appreciate you help.



Regards,



Robert
By Trent L. Taylor - 7/9/2007

No problem....glad you have it working Smile