hub.eb?material_id=22

Create a Database-backed Table


To create a database-backed table, first you need to create a Database Resource. This can be done in the entity tree, right clicking and selecting new database resource. From here the database wizard can be used to create the resource. Checking the Tables Only checkbox is ticked allows the resource to be used with tables and work with multiple rows of data at once.

To add the resource to a form, use the resources tab in the form designer. Right click and choose add resource, then select your new resource.

Next, use the tables tab, right click and add a new table based upon the resource you added. You can choose which columns you wish to add. To add the table to the form, click and drag the table from the tables tab into the outline.

To fetch the table use the code:

tables.employees.fetchTable();

Video

Related