Enum DB relationships


Author
Message
Vikram Saxena
Vikram Saxena
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 41, Visits: 99
I have following tables

CustomerTable - customerId, Name, City, StatusId, TypeId

StatusTable - statusId, status

TypeTable - TypeId, Type

Now, how can i create Enum in CustomerBO to handle these 2 fields [StatusId,TypeId] and also bind the dropdowns in Customer webform with the complete list of Status & Types.

Reply
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
You cannot have a dynamic enum...enums are static.  So I assume you want to populate a combo from a business object and then bind to a foreign key.  First, you will want to populate the combo using a business object:  I am just going to point you to the help since it says a lot more than I can in this post: UI Layer -> Controls -> List Population

As for your parent-child relationships, look in the help under: Business Layer -> Common Business Object Tasks -> Defining a relationship between business objects

If this doesn't get you going let me know.

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