DatabaseWizardStoreBinder

Confluence User - 10 May, 2024

Create form UI from existing table in mssql database by using database wizard feature 

During perform action Edit, Delete and Read from FORM no issue, but when try to ADD new record, it failed.

Error message from joget log:

org.joget.plugin.enterprise.DatabaseWizardStoreBinder - com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '`'.


is the code in DatabaseWizardStoreBinder generate the wrong insert statement for mssql database?


forms;datalists;database;mssql

6


13 May, 2024
confluenceUser
confluenceUser

Hi,

How about you try check your configuration for this particular configuration table 
Configure Form > Advanced > Configure Database Wizard > Advanced > Save data To (Database Wizard)


Database Wizard Form Data Store

Cheers!

13 May, 2024
confluenceUser
confluenceUser

Hi Ginger,


What kind of setting need to be done here? as my setting now is nothing extra set here. 

thanks.



14 May, 2024
confluenceUser
confluenceUser

Hi,
click to enlarge

Check that the table and column for the Save Data To is  being set properly.
This is to make sure that the form is ADDING and SAVING  data to the specified column in the specified table.

Let me know how it goes!

14 May, 2024
confluenceUser
confluenceUser

Hi Ginger,


The  Save Data To is  being set properly, the table and key column is correct.

Read, Update and Delete action working fine, just the Add action hitting the error 

org.joget.plugin.enterprise.DatabaseWizardStoreBinder - com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '`'.


I had try using MYSQL as my database with same DatabaseWizard setting, it work fine to all actions including ADD, only when i try on using MSSQL as database, it cause the error.

so does it mean the joget plugin enterprise DatabaseWizardStoreBinder had a syntax during generate INSERT SQL into MSSQL database?


Thanks


14 May, 2024
confluenceUser
confluenceUser

I see. Interesting. Might as well the plugin is not supporting mssql syntax ,MSSQL does not support backticks ( ) for quoting identifiers; instead, square brackets must be used. ([]).

Can I know the version of your mssql?
Just to check the compatibility. 
You can maybe check from here :  https://dev.joget.org/community/display/KBv5/Custom+Database+Configuration#CustomDatabaseConfiguration-RunningonOtherDatabases:~:text=Restart%20Joget.-,Running%20on%20Other%20Databases,-Joget%20also%20allows .

14 May, 2024
confluenceUser
confluenceUser

Version : SQL Server 2022

For now only compatibility until 2019 version?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print