Actions
Feature #15323
openFormElement in QFQ/report (ohne Form POST)
Start date:
05.01.2023
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
No
Description
Creating a FormElement of type 'select list' (or something else), direct in QFQ/report.
Usecase: report which shows all properties of type 'x'. And type 'x' can be selected by a select list.
Currently, such a selectlist has to be created in plain HTML, typically via QFQ/report with '<input ...><option ...>...' - this is painfull.
Option 1: Define a FormElement via QFQ FormEditor and reference such an FormElement.id. QFQ than will just render the FE without any '<form..>' tag.
Option 2: In QFQ report, specify all necessary keywords like 'type, sql1, itemList, ...' in new keyword 'parameter' and set `<level>.content = FormElement` (or 'htmlInput', ...). Example
10 { sql = SELECT 'hello world' 20 { content = formElement sql = SELECT gr.id, gr.value FROM Ggroup AS gr WHERE gr.type='property' parameter = { "type" : "select", "label" : "Property type", "name" : "property"} } }
Related issues
Updated by Carsten Rose 3 months ago
- Related to Feature #15324: Direct upload via qfq/report - special case of 'Inline-Edit' ('formlet') added
Actions