Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
English |
---|
In this article, we will discuss how to create a new form by performing a lookup into the existing table inside the Joget database. If the existing table has a sizeable number of fields (ie. 50 fields), it would take some time to drag and drop each and every form element into a new form. This is the sample table structure used in creating the demo app. |
Code Block | ||||
---|---|---|---|---|
| ||||
mysql> describe custom_table \G *************************** 1. row *************************** Field: id Type: varchar(255) Null: NO Key: PRI Default: NULL Extra: *************************** 2. row *************************** Field: name Type: varchar(255) Null: YES Key: Default: NULL Extra: *************************** 3. row *************************** Field: address Type: varchar(255) Null: YES Key: Default: NULL Extra: 3 rows in set (0.00 sec) mysql> |
...
...
In line 19, you can modify the connection string if you need to perform the table lookup in another database other than the default one.
In line 27, you can modify to use other form element other than textfield depending on your needs.
View file | ||||
---|---|---|---|---|
|