Hello,
I am trying to create a DynamicForm with dynamic fields whose values are stored on a table on the server.
With other words, I have this table:
table_positions:
id name title left top width height
1 first_name "First Name" 20 20 40 20
2 last_name "Last Name" 20 40 40 20
So on the table I save the positions/sizes of all my form fields. (I need that because I will create a lot of different dynamic forms based on the table).
What is the best way to retrieve the values? Directly using SQL? or is there any way SmartGWT can help me here?
The way I would do it would be:
SQL = "select * from table_positions";
while ( not EOF ) {
//create field i using metadata in table
}
But maybe there is a better way to do that using SmartGWT? What can you recommend me?
Thanks!
I am using SmartGWT 2.4 EE.
I am trying to create a DynamicForm with dynamic fields whose values are stored on a table on the server.
With other words, I have this table:
table_positions:
id name title left top width height
1 first_name "First Name" 20 20 40 20
2 last_name "Last Name" 20 40 40 20
So on the table I save the positions/sizes of all my form fields. (I need that because I will create a lot of different dynamic forms based on the table).
What is the best way to retrieve the values? Directly using SQL? or is there any way SmartGWT can help me here?
The way I would do it would be:
SQL = "select * from table_positions";
while ( not EOF ) {
//create field i using metadata in table
}
But maybe there is a better way to do that using SmartGWT? What can you recommend me?
Thanks!
I am using SmartGWT 2.4 EE.
Comment