Hi,
I use checkboxes in the table list.
In the 1st table column:
Path: select
Header: is empty
Custom Header: I selected it.
In the "select header" there is a checkbox with field name "state" and setting "Select All".
In the lines under the header "select" I have the checkbox with Field Name "state" and Setting "Single Entry Selector".
If I click on the checkbox with setting "select all" in the table header, then all checkboxes in the table are ticked. This is correct and works.
Above the table I have the “publish_selected” button with ToolBar Settings in a form. Type: submit
to the page/URL: publish_selected
On the page "publish_selected" in Action: "Save Data"
This action is intended to use "update existing Record" to save the checkbox status selected with "select all" (Table field name: "state" with Value: "1" in the database table.
Now the problem:
All checkboxes have a checkmark and are selected, but only one checkbox is saved in the database with the status “1”.
What is the problem? I can't find a solution for saving the status of several selected checkboxes with hooks.
Maybe someone has an idea?
F.
I use checkboxes in the table list.
In the 1st table column:
Path: select
Header: is empty
Custom Header: I selected it.
In the "select header" there is a checkbox with field name "state" and setting "Select All".
In the lines under the header "select" I have the checkbox with Field Name "state" and Setting "Single Entry Selector".
If I click on the checkbox with setting "select all" in the table header, then all checkboxes in the table are ticked. This is correct and works.
Above the table I have the “publish_selected” button with ToolBar Settings in a form. Type: submit
to the page/URL: publish_selected
On the page "publish_selected" in Action: "Save Data"
This action is intended to use "update existing Record" to save the checkbox status selected with "select all" (Table field name: "state" with Value: "1" in the database table.
Now the problem:
All checkboxes have a checkmark and are selected, but only one checkbox is saved in the database with the status “1”.
What is the problem? I can't find a solution for saving the status of several selected checkboxes with hooks.
Maybe someone has an idea?
F.
You need to login to be able to post a reply.