Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Formulardaten in Formular aufrufen

More
1 year 2 months ago - 1 year 2 months ago #8825 by Administrator IV
Replied by Administrator IV on topic Formulardaten in Formular aufrufen
Hallo Benno,

Also nur mal grundsätzlich geantwortet: Ja, das geht in Visforms mit dem JOIN!
In Visforms gehen alle validen SQL-Statements mit allen Möglichkeiten, also mit Allem.

Auch sowas:
www.vi-solutions.de/de/support/forum/19-...gungen-knuepfen#8815

Allein ein übersichtliche Schreibweise mit zusätzlichen Zeilenschaltungen ist bislang nicht möglich.
Aber dazu gibt es bereits einen Issue in der Entwicklungs-Liste:
Issue [VF - 535] J4: SQL-Fields: Evaluate and possibly add line-break and tab-stop feature to SQL statement parameter

Du brauchst aber gar keinen JOIN.

Hier deine Lösung in der Konfiguration (ich hoffe ich habe keinen Schreibfehler gemacht):
Code:
select id as value, concat(id, ' - ', F1244, ' - ', F1247, ' ', F1249) as label from suffix_visforms_13 as t1 where t1.id not in (select t2.id from suffix_visforms_16 as t2) ORDER BY t.id DESC;

Hier deine Lösung zur besseren Lesbarkeit:
Code:
select id as value, concat(id, ' - ', F1244, ' - ', F1247, ' ', F1249) as label from suffix_visforms_13 as t1 where t1.id not in (select t2.id from suffix_visforms_16 as t2) ORDER BY t.id DESC;

Hier ein Link zu einem hervorragenden Entwickler-Forum mit guter Erläuterung auf deine Frage:
stackoverflow.com/questions/7596073/sele...where-not-in-another

Zitat: 'es wird immer abenteuerlicher und nimmt kein Ende'.
Ist Software-Entwicklung das nicht immer?

Lieben Gruß, 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 :-).
Last edit: 1 year 2 months ago by Administrator IV.

More
1 year 2 months ago #8828 by bm
Replied by bm on topic Formulardaten in Formular aufrufen
Hallo Ingmar,

das ist mal wieder sensationell!!!

Zwar hast du hinten beim ORDER DESK statt "t1.id" -> "t.id" geschrieben (die "1" hat gefehlt), aber das ist ja kein Problem - ich brauchte sie ja nur einfügen.
Nachdem ich dann das "select t2.id" in "select t2.F1668" geändert habe, hat das doch tatsächlich funktioniert.

Das funktionierende Sql-Statement lautet dann also (also nur nochmal für Mitlesende):

select id as value,
concat(id, ' - ', F1244, ' - ', F1247, ' ', F1249) as label
from suffix_visforms_13 as t1
where t1.id not in (select t2.F1668 from suffix_visforms_16 as t2)
ORDER BY t1.id DESC;

Dass das auch so geht (also ohne JOIN), bzw. dass man das so schreiben kann, da wäre ich nie drauf gekommen.

Nochmals vielen lieben Dank!!!

Softwarentwickluing bleibt ein Abenteuer, da hast du recht :-)

Liebe Grüße
bm

More
1 year 2 months ago #8830 by Administrator IV
Replied by Administrator IV on topic Formulardaten in Formular aufrufen
Danke für das posten des finalen funktionierende SQL-Statements!

: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 :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum