Project

General

Profile

Actions

Feature #15323

open

FormElement in QFQ/report (ohne Form POST)

Added by Carsten Rose about 1 year ago. Updated about 1 year ago.

Status:
Priorize
Priority:
Normal
Assignee:
Enis Nuredini
Target version:
Start date:
05.01.2023
Due date:
% Done:

0%

Estimated time:
Discuss:
Prio Planung:
No
Vote:

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

Related to QFQ - Feature #15324: Direct upload via qfq/report - special case of 'Inline-Edit' ('formlet')ClosedEnis Nuredini05.01.2023

Actions
Actions #1

Updated by Carsten Rose about 1 year ago

  • Related to Feature #15324: Direct upload via qfq/report - special case of 'Inline-Edit' ('formlet') added
Actions #2

Updated by Carsten Rose about 1 year ago

  • Tracker changed from Support to Feature
Actions #3

Updated by Carsten Rose about 1 year ago

  • Subject changed from FormElement in QFQ/report to FormElement in QFQ/report (ohne Form POST)
Actions

Also available in: Atom PDF