Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > dynamic UI builder from database

Reply
Thread Tools

dynamic UI builder from database

 
 
Jay
Guest
Posts: n/a
 
      07-20-2010
Hello..
this is more of a design question.
I need to develop an app that provides UI (CRUD =
create/review/update/delete) operations for a database table.
e.g: sample table layout is, (this already exists)
Name:
value:
(Value can be an number/char/datetime etc)
value_type:number/char/datetime.

Based on the table values in the table I need to create the UI.
For e.g: The View operation will show : (these are the values in the table)

User_limit 30
user_Message Cannot access
user_expire_date 10/10/2010

Now for the Edit/create operation: I need some meta-data information to
create the appropriate UI controls.
e.g: If I want to edit user_expire_date, I need to diaply the datetime
control.
for user_limit - need to display number values 0-100.
for user_message: display a simple edit box control. I also need to know the
character limit.

Apart from these I might also need, the order of display for the particular
"name".
or even group them together..if I have 100 entries..I might use the "group"
name to filter how much to display.

where do I store this kind of meta-data information?
is it appropriate to have an
1. XML associated with each of these entries.Like this..
Name:
value:
value_type:number/char/datetime.
mete-data: <min_limit/><max_limit/><group_ID/><display_order/>

or
2. Have it in another database table?
table1:
-----
Name:
value:
value_type:number/char/datetime.

Meta_data_table1
-----------------
min_limit
max_limit
group_ID
display_order

Which is one more efficient? more maintainable?

thanks in advance for your support!


 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      07-20-2010

"Jay" <> wrote in message
news:%...
> Hello..
> this is more of a design question.
> I need to develop an app that provides UI (CRUD =
> create/review/update/delete) operations for a database table.
> e.g: sample table layout is, (this already exists)
> Name:
> value:
> (Value can be an number/char/datetime etc)
> value_type:number/char/datetime.
>
> Based on the table values in the table I need to create the UI.
> For e.g: The View operation will show : (these are the values in the
> table)
>
> User_limit 30
> user_Message Cannot access
> user_expire_date 10/10/2010
>
> Now for the Edit/create operation: I need some meta-data information to
> create the appropriate UI controls.
> e.g: If I want to edit user_expire_date, I need to diaply the datetime
> control.
> for user_limit - need to display number values 0-100.
> for user_message: display a simple edit box control. I also need to know
> the character limit.
>
> Apart from these I might also need, the order of display for the
> particular "name".
> or even group them together..if I have 100 entries..I might use the
> "group" name to filter how much to display.
>
> where do I store this kind of meta-data information?
> is it appropriate to have an
> 1. XML associated with each of these entries.Like this..
> Name:
> value:
> value_type:number/char/datetime.
> mete-data: <min_limit/><max_limit/><group_ID/><display_order/>
>
> or
> 2. Have it in another database table?
> table1:
> -----
> Name:
> value:
> value_type:number/char/datetime.
>
> Meta_data_table1
> -----------------
> min_limit
> max_limit
> group_ID
> display_order
>
> Which is one more efficient? more maintainable?
>
> thanks in advance for your support!
>
>


Which is more maintainable and more efficient would be to keep the XML in a
database table. After all, XML is just string data.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Where's a DOM builder that uses the Builder Pattern to ... buildDOMs? Phlip Python 5 01-13-2010 12:48 PM
[ANN] Nitro + Og 0.21.0 Compiler, Og custom joins, Og dynamic injection, new builder George Moschovitis Ruby 10 07-26-2005 07:09 PM
VB.NET Class Builder Utility 1.0 james ASP .Net 0 04-07-2004 05:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57