Child ListView


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
I have a Maintenence Form with two tabs, On the first tab I show the Parent Record and on the second tab I have  a List View , where I want to show the children. I want the children refreshed each tme the parent changes. I have both Parent and Child business Objects set up.

I have the method (on the ListView)  set as FillByparentPrimaryKey(System.Int32) and PopulateOnFormLoad set to manual.

I reckon I need to call the FillByParentPrimaryKey() somewhere to refresh the children and am wondering where is the best place to put this code. I could be refreshing ,either using the navigation buttons, Adding a new Parent,Deleting a parent or  doing a search etc.

Also, is just calling FillByParentPrimaryKey() sufficient or do I also need to call any Refresh() code

Replies
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
I changed to FillByParentPrimaryKey(Object) and this is now working fine, can see the children. Thanks for all your assistance

I can understand why you would use a FillByParentPrimaryKey(Int) but when would you use GUID ?? I am unclear as to what a GUID is, other than this would be a term used for a surrogate type key . 

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
A GUID is a defined type that is in teh below format (in most cases):

4d9895f1-7d0d-4003-9a28-389624b36c58

This is used in instances when you may need to use replication as it makes the synchronization of primary keys far easier.  If you can avoid using GUIDs for PKs you are better off as there is more overhead.  But this one general purpose of using a GUID.  There are other uses as well, but for the intent of this converstaion that would be one of the few uses.

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