My own table

Confluence User - 05 Sep, 2018

Hello

Firstly, i already created a form(with a table name = app_fd_item_detail)
The question is can i create, manually, a table using sqlyog?
can i call it from joget v6?

thanks in advance

forms;database

11


05 Sep, 2018
confluenceUser
1
confluenceUser

Hey there Muhammad, 

Yes, you can create your own tables using an SQL client and link it to your Forms later on.

However, ensure that Joget have access to your created tables and the correct columns with the correct data types.

Cheers.

05 Sep, 2018
confluenceUser
confluenceUser

Thanks justin.

Just a quick question about it. 

How? Is it something like this JDBC Datalist Database Binder

Which datasource should i use?

05 Sep, 2018
confluenceUser
confluenceUser

The JDBC binder is only used to read/write records, not to create table. You can use your SQL client to observe Joget tables with the prefix "app_fd_***" as your reference.

05 Sep, 2018
confluenceUser
confluenceUser

im sorry, my mistake. i meant that, when i already created the table, then i can call/read/write them using JDBC, and use it in the form. am i right?

05 Sep, 2018
confluenceUser
confluenceUser

Yes! That's correct. If you've created the table in the datasource that Joget uses, select "Default Datasource". Otherwise, if you've created the table in a different database, select "Custom Datasource" and fill in the information required. Hope this helps.

05 Sep, 2018
confluenceUser
confluenceUser

Or, while creating a new Form, in "Table Name" field, try typing in your newly created table name.

05 Sep, 2018
confluenceUser
confluenceUser

Extremely helpful. Thanks Justin :-)

05 Sep, 2018
confluenceUser
confluenceUser

You're welcome! Gentle reminder to mark the answer above as the official answer, to assist other users in this community. Have a good day.

06 Sep, 2018
confluenceUser
confluenceUser

Hello again justin. if, i want to use hash variable to call (from my manually created table) instead of using JDBC, which variable should i use? i tried #binder.APP_ID.FORM_DEF_ID.FIELD_ID# but it seem not quite worked. also tried #form. tableName . fieldId # but not working. any advice?

06 Sep, 2018
confluenceUser
confluenceUser

The Form Data Hash Variable is used to obtain field values from a table that is linked to an existing Form. Not meant to substitute the JDBC binder.

06 Sep, 2018
confluenceUser
confluenceUser

Ok noted about that. so, can u suggest the hash variable that is suitable for it? i wanted to call the data from my table(manually created) at the form builder.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print