Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Is possible to create a dynamic PageView and Form ?(About the possibility for creation of a PageView and Form dinamically based on datas)
Is possible to create a dynamic PageView and Form ? [message #1029030] Fri, 29 March 2013 03:35 Go to next message
Henrique Meira is currently offline Henrique MeiraFriend
Messages: 13
Registered: November 2012
Junior Member
Is possible to create a PageView and a Form based on a database?

For example, I select some datas from a database, with structure info, and based on this data, Eclipse Scout show me a PageView?


Example:

select field_name, type, size, precision
from data_structure
where table_name = 'ORDERS'

Result:
--------------------------------------------
| FIELD_NAME | TYPE     | SIZE | PRECISION |
|------------|----------|------|-----------| 
| id         | INTEGER  | 10   | null      |
| date       | DATE     | null | null      |
| client_id  | INTEGER  | 10   | null      |
| ammount    | DOUBLE   | 15   | 2         |
| note       | STRING   | 500  | null      |
--------------------------------------------


With this result, I would like to create, dinamically, a PageView like:

------------------------------------------------
| ID | DATE       | CLIENT_ID | AMMOUNT | NOTE |
------------------------------------------------
| 15 | 2013/02/25 | 12345     | 1250.36 |      |
| 16 | 2013/02/26 | 64789     | 5521.63 |      |
------------------------------------------------


Tks.
Re: Is possible to create a dynamic PageView and Form ? [message #1029257 is a reply to message #1029030] Fri, 29 March 2013 11:44 Go to previous message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 128
Registered: March 2010
Senior Member
Hi Henrique

Yes it's possible. The AbstractTable provides a method to inject columns on creation time. Just override injectColumnsInternal and add your dynamic columns. You could do the same on form fields, see http://www.eclipse.org/forums/index.php/m/902753/

Hope it helps
Claudio
Previous Topic:Scout SDK: Auto completion on templated formData not working
Next Topic:Adding context menus to SVG fields
Goto Forum:
  


Current Time: Sat Dec 20 06:34:16 GMT 2014

Powered by FUDForum. Page generated in 0.03446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software