Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Wichtige Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

Syntax does not work

Mehr
3 Wochen 3 Tage her - 3 Wochen 3 Tage her #11494 von umif
Syntax does not work wurde erstellt von umif
Dear Support Team,

We have created two visforms which we called A and B.

When I input some new contents in form A, the newly input contents could be found on the server,
But in form B, the newly input contents could not be recorgnized by "Select SQL".
The SQL-Select-Statement was used so far is as following:

SELECT DISTINCT `F85` as value,`F85` as label FROM `jos4_visforms_10` WHERE `F81` in OR `F82` in ORDER BY `F81`ASC, `F82`ASC

When I click "Test", there is an error message shows as following:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OR `F82` in ORDER BY `F81`ASC, `F82`ASC' at line 1

What we did is to update the Joomla to a MariaDB10.4 server.
Therefore could you please help us solve this problem at your earliest convenience as we need to provide these two visforms on a daily basis to our users.
Thank you so much and we are looking forward to your professional suggestions.
Letzte Änderung: 3 Wochen 3 Tage her von Administrator IV.

Mehr
3 Wochen 3 Tage her - 3 Wochen 3 Tage her #11500 von Administrator IV
Administrator IV antwortete auf Syntax does not work
Hello umif,

quote from above: Important information for almost every question:

V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

The SQL statement mentioned is incorrect and contains two errors.

To quickly obtain more detailed information about possible errors, you can execute the SQL statement in a dedicated SQL editor.
Such as phpMyAdmin or another SQL development environment.
Visforms, of course, cannot perform this precise analysis.

SQL statement:
Code:
SELECT DISTINCT `F85` as value,`F85` as label FROM `jos4_visforms_10` WHERE `F81` in OR `F82` in ORDER BY `F81`ASC, `F82`ASC


Error 1:
The list of values ​​is missing after the keyword 'in'.
Code:
WHERE `F81` in OR


Error 2:
The list of values ​​is missing after the keyword 'in'.
Code:
`F82` in ORDER BY


The SQL IN Operator:
www.w3schools.com/sql/sql_in.asp
Code:
SELECT * FROM Customers WHERE Country IN ('Germany', 'France', 'UK');


Question:

It's possible that you're using a Visforms parameter in the SQL statement and something's wrong.
Does the SQL statement exactly match the SQL statement from the field configuration?

Best regards, Ingmar

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Letzte Änderung: 3 Wochen 3 Tage her von Administrator IV.

Mehr
3 Wochen 2 Tage her #11503 von umif
umif antwortete auf Syntax does not work

Hi Ingmar, schrieb:

Mehr
3 Wochen 2 Tage her - 3 Wochen 2 Tage her #11504 von umif
umif antwortete auf Syntax does not work
Hi Ingmar,
Thank you so much for your prompt feedback. Yesterday when I copied the  Syntax there was an issue, the complete SQL-Select-Statement is as followings:
Code:
SELECT DISTINCT `F85` as value,`F85` as label FROM `jos4_visforms_10` WHERE `F81` in ${input:project-leader-list} OR `F82` in ${input:project-leader-list} ORDER BY `F81`ASC, `F82`ASC

When I clicked "Test", the error shows as below:

SELECT DISTINCT `F85` as value,`F85` as label FROM `jos4_visforms_10` WHERE `F81` in ${input:project-leader-list} OR `F82` in ${input:project-leader-list} ORDER BY `F81`ASC, `F82`ASC
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near
'OR `F82` in ORDER BY `F81`ASC, `F82`ASC' at line 1

The Version of Visform we use is: 4.4.3,
the Version of Joomla is: 5.1.4,
the PhpMyAdmin is: MariaDB-10.4

Looking forward to hearing from you for further support and help. Many thanks in advance.

Best,
Shuting
Letzte Änderung: 3 Wochen 2 Tage her von Administrator IV.

Mehr
3 Wochen 2 Tage her #11505 von Administrator IV
Administrator IV antwortete auf Syntax does not work
Hello Shuting,

Thanks for the version information and the original SQL statement, which, as expected, contains two Visforms placeholders.

Re: Error after pressing the test button.

The error after pressing the test button occurs because the SQL statement contains Visforms placeholders.
For simple testing with the test button directly in the form configuration, no Visforms placeholders for form fields must be included.

Everything else is described in the documentation.

The test button:
docs.joomla-5.visforms.vi-solutions.de/e...ist/#the-test-button

I can't say at this point whether your SQL statement works in the running form or not.
This is solely about the error when using the test button.

Kind regards, Ingmar

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum