Entering data in a form with different BO at runtime


Author
Message
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
I have a several tables which has the same Address fields (Street, City, State, ZipCode), I would like to have use a generic ChildFormDialog to allow end user to enter the data for each table based on the calling form. 

Can this be done with the ChildFormDialog? if so:

  • How to programmatically update the CFD properties to use the correct BO to be translated.
  • Should I create a generic BO with the Address fields to be used in the ChildForm and then translate this BO with all other BO?


Edhy Rijo

Replies
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
Trent L. Taylor (04/28/2008)
[quote]a PhoneNumbers manager in our medical application with a common PhoneNumbers table that is used anywhere that we have a phone number with a type indicator that determines to which table and then a parent PK for the direct identification of the parent.  You need both (type and parent PK) to create a unique record.

Hummm, I don't have a common address table, all tables have their own address fields, I was thinking on just using a common Address Form manager to handle the address entry, is this still possible possible? if not then I could change my structure to use a common address table as you do with your PhoneNumbers manager.

Edhy Rijo

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
Edhy...you misunderstood what I was getting at.  You could create a common table if you wanted.  But I would be more inclined to create a common control (user control) that gets dropped on unique forms.  That is a much more normalized environment...but you can go any way you want.  If you want to have one form with a lot of BOs on it, then just programatically create the BO translations.
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