D
Daniel M
I'm building a medium-scale data-entry web application, which involves
creating data entry forms, record listings and detail screens for lots of
database tables.
Rather than designing a series of similar web pages for each table I'm
looking into recording metadata about tables / columns in the database and
using this to determine presentation.
Let's keep things simple for now and assume that I'm interested in adding
more user friendly captions to replace actual column names, e.g. 'Unit
Price' instead of 'unit_price' and would also like column descriptions to be
easily available. If this data were held in the database, then captions and
descriptions could be looked up dynamically within the application. This
would be better than defining captions individually within a .Net DataGrid
or HTML template. It would also allow metadata to be shared between
applications.
A brief search around dev sites hasn't revealed anything. Are there any
recommended ways of doing this?
This actually looks pretty easy, the data could be held in 2 tables:
TABLE: table_metadata:
- table_id
- db_table_name (name of table in database)
- caption (user friendly title for table)
- description
TABLE: column_metadata
- id
- table_id
- db_column_name (name of table in database)
- caption (user friendly column title)
- description
Thanks in advance
Dan
creating data entry forms, record listings and detail screens for lots of
database tables.
Rather than designing a series of similar web pages for each table I'm
looking into recording metadata about tables / columns in the database and
using this to determine presentation.
Let's keep things simple for now and assume that I'm interested in adding
more user friendly captions to replace actual column names, e.g. 'Unit
Price' instead of 'unit_price' and would also like column descriptions to be
easily available. If this data were held in the database, then captions and
descriptions could be looked up dynamically within the application. This
would be better than defining captions individually within a .Net DataGrid
or HTML template. It would also allow metadata to be shared between
applications.
A brief search around dev sites hasn't revealed anything. Are there any
recommended ways of doing this?
This actually looks pretty easy, the data could be held in 2 tables:
TABLE: table_metadata:
- table_id
- db_table_name (name of table in database)
- caption (user friendly title for table)
- description
TABLE: column_metadata
- id
- table_id
- db_column_name (name of table in database)
- caption (user friendly column title)
- description
Thanks in advance
Dan