Skip to content
Snippets Groups Projects
Commit ec25500e authored by Jan Haller's avatar Jan Haller
Browse files

Refs #17498 - Documentation.

parent bcf9cbdf
No related branches found
No related tags found
3 merge requests!691New version v24.3.0,!665Refs #17498 - previous/next button on form,!655previous/next buttons on form
......@@ -528,6 +528,13 @@ Form.parameter
+-----------------------------+--------+----------------------------------------------------------------------------------------------------------+
| fieldsetClass | string | Overwrite default from :ref:`configuration`. |
+-----------------------------+--------+----------------------------------------------------------------------------------------------------------+
| btnPreviousNextSql | string | Query that selects records which are then accessible by the previous/next buttons. |
| | | See :ref:`btnPreviousNextSql` |
+-----------------------------+--------+----------------------------------------------------------------------------------------------------------+
| btnPreviousNextLoop | digit | 0: off, 1: Allow to loop through the records (from last to first and vice versa). |
+-----------------------------+--------+----------------------------------------------------------------------------------------------------------+
| btnPreviousNextWrap | string | Wrap the buttons in custom HTML. Default: '<span class="pull-right"><div class="btn-group" role="group">'|
+-----------------------------+--------+----------------------------------------------------------------------------------------------------------+
* Example in field Form.parameter::
......@@ -541,7 +548,7 @@ submitButtonText
""""""""""""""""
If specified and non empty, display a regular submit button at the bottom of the page with the given text.
This gives the form a ordinary HTML-form look'n' feel. With this option, the standard buttons on the top right border
This gives the form a ordinary HTML-form look 'n' feel. With this option, the standard buttons on the top right border
should be hidden to not confuse the user.
* Optional.
......@@ -600,6 +607,15 @@ The 'extraDeleteForm' parameter might be specified for a 'form' and/or for 'subr
See also: :ref:`delete-record`.
btnPreviousNextSql
""""""""""""""""""
Generates two buttons in the form title that link to the previous/next record. Records are selected by a query which
uses the columns 'id', 'btnPrevious' (optional), 'btnNext' (optional) and 'btnCurrent' (optional). Optional columns can
be used to style the buttons using the AS _link notation. 'bntCurrent' generates a third button in between the other two.
E.g. `{{!SELECT id AS id FROM Car}}` or `{{!SELECT id AS id, CONCAT('p:<pageSlug>?form=<form>?r=', id, '|s|b|G:<glyphicon>')
AS btnPrevious FROM Car}}`.
.. _form-mode-global:
Form mode global
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment