Гость
18 Фев 2014 19:35

Using the provided instructions, I constructed a SQL statement in a List Autocomplete Field using [USER_ID]. I turned on the "List values from SQL query" field (i.e. set it to Yes) and placed the SQL statement in the "SQL query" field. On the front end, the form doesn't display and it instead throws a 404 error, with a debug statement as follows:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[USER_ID]' at line 2 SQL=SELECT ... AS id, CONCAT('Name: ', ...) AS text FROM ... WHERE user_id = [USER_ID]

(I intentionally removed the table and field names.)

It appears Cobalt 8 is not converting placeholders such as [USER_ID].

Последние изменения: 02 Март 2014


Konstantin
Total posts: 1,113
19 Фев 2014 06:38

Fixed


Гость
20 Фев 2014 17:33

I tried again the new package Serg sent but it still failed. I replaced it with an actual user id and the sql works fine. Should I uninstall Cobalt first before uploading the zip file?


Konstantin
Total posts: 1,113
20 Фев 2014 23:37

Is Cobalt and all selectable fields has latest version?


Sergey
Total posts: 13,748
21 Фев 2014 01:32

Update 8.491


Konstantin
Total posts: 1,113
26 Фев 2014 00:38

Please check new versions on our site and update.


Гость
26 Фев 2014 12:18

Version 8.493 works! There are some minor issues with it, but I'll create a separate question. Thank you!

Работает на Cobalt