Hi Bob,
I am trying to understand how a form should be set-up in order to enable both, new record insert and editing of stored records.
I have setup a simple form with 1 dropdown field, 1 text box and 1 hidden field named cf_id. There are also 2 actions: 1 DB Multi Record Loader to feed the dropdown and 1 DB Record Loader for edit/insert.
The DB Multi Record Loader picks up fields id,title from #__content under modelID content
The DB Record Loader:
DB field used to query the table record: cf_id
Request param: token
Table: cs_TestContent
Editing a record works fine but if I do not provide a token=1 param I get an Error 500 message complaining about a missing WHERE clause:
Please give me a hint where to look for a solution.
Thanks,
adop
I am trying to understand how a form should be set-up in order to enable both, new record insert and editing of stored records.
I have setup a simple form with 1 dropdown field, 1 text box and 1 hidden field named cf_id. There are also 2 actions: 1 DB Multi Record Loader to feed the dropdown and 1 DB Record Loader for edit/insert.
The DB Multi Record Loader picks up fields id,title from #__content under modelID content
The DB Record Loader:
DB field used to query the table record: cf_id
Request param: token
Table: cs_TestContent
Editing a record works fine but if I do not provide a token=1 param I get an Error 500 message complaining about a missing WHERE clause:
JDatabaseMySQL::query: 1064 - 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 '' at line 1 SQL=SELECT * FROM `cs_testContent` AS `CsTestContent` WHERE
but I don't see why there should be a WHERE clause on the table feeding the dropdown field.Please give me a hint where to look for a solution.
Thanks,
adop