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


Author
Message
Robert Carl Johnson
Robert Carl Johnson
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 130
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
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
Robert Carl Johnson
Robert Carl Johnson
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 130
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
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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


Robert Carl Johnson
Robert Carl Johnson
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 130
Thank you sir... BTW, got my form working just fine now. Appreciate you help.



Regards,



Robert
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem....glad you have it working Smile
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