Parent/Child Relationship through Listview


Author
Message
Philipp Guntermann
Philipp Guntermann
StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)
Group: Forum Members
Posts: 141, Visits: 263
Hi,

scenario:

  • Table PropertyGroups:
    • ID
    • Name
    • Comment
  • Table Properties
    • ID
    • Name
    • PropertyGroups_ID
    • Comment

I have Maintanance form to add and modify the propertygroups allready.

Now on the Maintance form for the Properties, i'd have:

  • Textfield: Name
  • Combobox: PropertyGroup
  • Textfield: Comment

What i need is for the Combobox to allow selection of anyone of the Property-Groups from the PropertyGroups Table/BO, and saving the selected PK/ID from that Property Group into to Propertie-Table/BO PropertyGroups_ID column.

what is the proposed way to achieve that ?

thanks.

Replies
Philipp Guntermann
Philipp Guntermann
StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)
Group: Forum Members
Posts: 141, Visits: 263
hi,

yes this is what i am looking for.

i have a PropertyGroupsBO and a PropertiesBO. each one has a fill method.

They user shoud select a property group from the combobox (the propertygroup's name),
and then it should save that to the PropertiesBO.PropertyGroups_ID field. (the pk_id of the selected property group).

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Philipp,

See the picture attached that will give you a clear idea of how to setup your combobox.  In this case I have a method called FillAllRecords() in my BO base class and since I want to show all records in the combo, I chose that method then, set the lookup bo PK field in the Value Member to be updated in your main table.

Edhy Rijo

Attachments
Combobox_ListPopulationSettings.png (142 views, 38.00 KB)
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