Commit 2cc07276 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Manual.rst: Change _Paged to _paged in FormEditor example. Remove description...

Manual.rst: Change _Paged to _paged in FormEditor example. Remove description to never implemented <level>.db. Add report keyword description <dbIndex>.
parent 3b5ada5f
Pipeline #1084 passed with stage
in 2 minutes
......@@ -258,7 +258,11 @@ Setup a *report* to manage all *forms*:
10 {
# All forms
sql = SELECT CONCAT('p:{{pageId:T}}&form=form&r=', f.id) as _pagee, f.id, f.name, f.title, f.tableName, CONCAT('form=form&r=', f.id) as _Paged FROM Form AS f ORDER BY f.name
sql = SELECT CONCAT('p:{{pageId:T}}&form=form&r=', f.id) as _pagee
, f.id, f.name, f.title, f.tableName
, CONCAT('U:form=form&r=', f.id) as _paged
FROM Form AS f
ORDER BY f.name
rbeg = <tr>
rend = </tr>
fbeg = <td>
......@@ -700,19 +704,29 @@ backend for orientation.
QFQ Keywords (Bodytext)
^^^^^^^^^^^^^^^^^^^^^^^
**All of the named parameter are optional.**
+-------------------+---------------------------------------------------------------------------------+
| Name | Explanation |
+===================+=================================================================================+
| form | | Formname defined in ttcontent record bodytext |
| | | Fix. E.g.: **form = person** |
| | | - by SIP: **form = {{form:SE}}** |
| | | - by SQL: **form = {{SELECT c.form FROM config AS c WHERE c.id={{a:C}} }}** |
| form | | Formname. |
| | | Static: **form = person** |
| | | By SIP: **form = {{form:SE}}** |
| | | By SQL: **form = {{SELECT c.form FROM config AS c WHERE c.id={{a:C}} }}** |
+-------------------+---------------------------------------------------------------------------------+
| r | | <record id>. The form will load the record with the specified id. |
| | | Static: **r = 123** |
| | | By SQL: **r = {{SELECT ...}}** |
| | | If not specified, the SIP parameter 'r' is used. |
+-------------------+---------------------------------------------------------------------------------+
| r | | <record id> The form will load the record with the specified id |
| | | - Variants: **r = 123**, by SQL: **r = {{SELECT ...}}** |
| | | - If not specified, the default is '0' |
| dbIndex | E.g. `dbIndex = {{indexQfq:Y}}` Select a DB index. Only necessary if a |
| | different than the standard DB should be used. |
+-------------------+---------------------------------------------------------------------------------+
| debugShowBodyText | If='1' and configuration_:*showDebugInfo: yes*, shows a tooltip with bodytext |
+-------------------+---------------------------------------------------------------------------------+
| <level>.db | Select a DB. Only necessary if a different than the standard DB should be used. |
| sqlLog | Overwrites configuration_: `SQL_LOG`_ . Only affects `Report`, not `Form`. |
+-------------------+---------------------------------------------------------------------------------+
| sqlLogMode | Overwrites configuration_: `SQL_LOG_MODE`_ . Only affects `Report`, not `Form`. |
+-------------------+---------------------------------------------------------------------------------+
| <level>.fbeg | Start token for every field (=column) |
+-------------------+---------------------------------------------------------------------------------+
......@@ -752,12 +766,6 @@ QFQ Keywords (Bodytext)
| | | *store*: content of current and sub levels are stored and shown. |
| | | To retrieve the content: `{{<level>.line.content}}`. See `syntax-of-report`_ |
+-------------------+---------------------------------------------------------------------------------+
| debugShowBodyText | If='1' and configuration_:*showDebugInfo: yes*, shows a tooltip with bodytext |
+-------------------+---------------------------------------------------------------------------------+
| sqlLog | Overwrites configuration_: `SQL_LOG`_ . Only affects `Report`, not `Form`. |
+-------------------+---------------------------------------------------------------------------------+
| sqlLogMode | Overwrites configuration_: `SQL_LOG_MODE`_ . Only affects `Report`, not `Form`. |
+-------------------+---------------------------------------------------------------------------------+
.. _`qfq-database`:
......@@ -4282,8 +4290,8 @@ Deleting a record just by specifying a table name, will only delete the defined
Example for report::
SELECT p.name, CONCAT('form=person&r=', p.id) AS _Paged FROM Person AS p
SELECT p.name, CONCAT('table=Person&r=', p.id) AS _Paged FROM Person AS p
SELECT p.name, CONCAT('U:form=person&r=', p.id) AS _paged FROM Person AS p
SELECT p.name, CONCAT('U:table=Person&r=', p.id) AS _paged FROM Person AS p
To automatically delete slave records, use a form and create `beforeDelete` FormElement(s) on the form:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment