G
Guest
Good Morning All,
What we have is a dynamic business object that has varying numbers and types
of properties. What it models is a generic saleable product. Not all
products have the same properties. For instance, if you were selling
software you wouldn't have a color, if you were selling vases you wouldn't
have a file size. So, even though they are all generic products, they have
specialized properties. I know you're thinking "inheritance". But, we're
making something that needs to accomodate any number of possible product
types but not require a recompile. One solution needs to work for everyone.
Additionally, the form on which a user inputs these products needs to build
itself based on the properties of the product that they are inputting. So,
if they're inputting a furniture product, the form should prompt them to
enter height, width, weight, color, etc. Or, if they are inputting a car
product, the form should prompt them to enter properties specific to a car.
Of course, the admins of this system would be responsible for specifying
ahead of time what properties a given product must have.
So, the question is: How do you make a database driven varying property
object and also handle being able to generate a product input form, display
page, and data storage/retrieval of such?
Thanks in advance,
Nathan
What we have is a dynamic business object that has varying numbers and types
of properties. What it models is a generic saleable product. Not all
products have the same properties. For instance, if you were selling
software you wouldn't have a color, if you were selling vases you wouldn't
have a file size. So, even though they are all generic products, they have
specialized properties. I know you're thinking "inheritance". But, we're
making something that needs to accomodate any number of possible product
types but not require a recompile. One solution needs to work for everyone.
Additionally, the form on which a user inputs these products needs to build
itself based on the properties of the product that they are inputting. So,
if they're inputting a furniture product, the form should prompt them to
enter height, width, weight, color, etc. Or, if they are inputting a car
product, the form should prompt them to enter properties specific to a car.
Of course, the admins of this system would be responsible for specifying
ahead of time what properties a given product must have.
So, the question is: How do you make a database driven varying property
object and also handle being able to generate a product input form, display
page, and data storage/retrieval of such?
Thanks in advance,
Nathan