Project

General

Profile

Actions

Feature #15324

closed

Direct upload via qfq/report - special case of 'Inline-Edit' ('formlet')

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

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

0%

Estimated time:
Discuss:
Prio Planung:
No
Vote:
CR

Description

Anforderungen

  • Wir haetten gern eine Moeglichkeit Uploads direkt auf einer Page durchzufuehren, ohne das ein klassisches QFQ Form mit 'save/close' Button aufgeht und bedient werden muss.
    • Beispiel: Medtool > MA > Upload der Vereinbarung
    • Beispiel: RemoteExam / MY > Upload von Loesungen (insbesondere via mobile phone).
  • Ziel ist den Dateiauswahl Dialog mit einem Mausklick zu oeffnen.
  • Das ist sehr aehnlich zu #15323 (Upload) - Unterschied ist, das der Upload direkt via AJAX erfolgt.
  • Inline-Edit #6602 ist die allgemeine Formulierung fuer alle Input Typen.
  • Falls wir fuer den Upload https://www.jqwidgets.com/ verwenden, sollten wir schauen das wir das anders hinbekommen. JQW soll entfernt werden.
  • Es sollte moeglich sein gleichzeitig mehrere Files auszuwaehlen und hochladen zu koennen (in Redmine kann man z.B. beim Upload zu einem Ticket mehrere Files gleichzeitig auswaehlen).

Konzept

Vorschlag1: SELECT CONCAT('fileDestination:fileadmin/test/test.pdf'
                        ,'&table=Upload'
                        ,'&column=pathFileName'
                        ,'&capture=camera'
                        ,'&accept=image/*'
                        ,'&maxFileSize=150000'
                        ,'&fileButtonText=Waehle eine Datei'
                        ,'&fileTrash=0'
                        ,'&fileTrashText=Datei loeschen') AS _upload
Vorschlag2: SELECT CONCAT('X:fileadmin/test/test.pdf'
                        ,'|table:Upload'
                        ,'|column:pathFileName'
                        ,'|capture:camera'
                        ,'|accept:image/*'
                        ,'|maxFileSize:150000'
                        ,'|fileButtonText:Waehle eine Datei'
                        ,'|fileTrash:0'
                        ,'|fileTrashText:Datei loeschen') AS _upload

Nachdem der User die Datei im Dialogfenster ausgewaehlt und bestaetigt hat, wird ohne ein Submit Button, die Datei direkt hochgeladen und am definierten Ort abgelegt.

Bis jetzt arbeite ich mit diesem Beispiel.

10.sql= SELECT CONCAT('X:fileadmin/test/test.pdf') AS _upload

Wobei in einem ersten Schritt als Test der Qualifier 'X' benutzt wird um den pathFileName zu uebergeben.

Parameter
  • fileDestination = <pathFileName>
  • table = <tablename>
  • column = <columnname>
  • capture = camera
  • accept = <mime type>,image/*,video/*,audio/*,.doc,.docx,.pdf
  • maxFileSize = <size> - max filesize in bytes (no unit), kilobytes (k/K) or megabytes (m/M) for an uploaded file.
  • fileButtonText: Overwrite default ‘Choose File’
  • fileTrash = [0|1] - Default: ‘1’. This option en-/disables the trash button right beside the file chooser. By default the trash is visible. The trash is only visible if a) there is already a file uploaded or b) a new file has been chosen.
  • fileTrashText = <string> - Default: ‘’. Will be shown right beside the trash glyph-icon.

unterstrichen = required
nicht unterstrichen = optional

Fragen

Sollen Buchstaben als Token verwendet werden oder die ausgeschriebenen Parameter Bezeichungen wie beim Upload Formelement?


Files


Related issues

Related to QFQ - Feature #6602: Inline-Edit (Formlet): in Report auf Mausklick ein mini-form oeffnenNewPascal Rössler02.09.2018

Actions
Related to QFQ - Feature #15323: FormElement in QFQ/report (ohne Form POST)PriorizeEnis Nuredini05.01.2023

Actions
Related to QFQ - Feature #6609: Formlet: JSON API erweiternNewCarsten Rose04.09.2018

Actions
Actions #1

Updated by Carsten Rose about 1 year ago

  • Description updated (diff)
Actions #2

Updated by Carsten Rose about 1 year ago

  • Related to Feature #6602: Inline-Edit (Formlet): in Report auf Mausklick ein mini-form oeffnen added
Actions #3

Updated by Carsten Rose about 1 year ago

  • Related to Feature #15323: FormElement in QFQ/report (ohne Form POST) added
Actions #6

Updated by Carsten Rose about 1 year ago

Actions #7

Updated by Carsten Rose about 1 year ago

  • Subject changed from Direct upload via qfq/report to Direct upload via qfq/report - special case of 'formlet'
  • Description updated (diff)
Actions #8

Updated by Carsten Rose about 1 year ago

  • Tracker changed from Support to Feature
Actions #9

Updated by Enis Nuredini about 1 year ago

  • Assignee changed from Enis Nuredini to Pascal Rössler
Actions #10

Updated by Carsten Rose about 1 year ago

  • Description updated (diff)
Actions #11

Updated by Carsten Rose about 1 year ago

  • Subject changed from Direct upload via qfq/report - special case of 'formlet' to Direct upload via qfq/report - special case of 'Inline-Edit' ('formlet')
Actions #12

Updated by Carsten Rose about 1 year ago

Actions #13

Updated by Carsten Rose about 1 year ago

  • Description updated (diff)
Actions #14

Updated by Pascal Rössler about 1 year ago

  • Status changed from Priorize to In Progress
Actions #15

Updated by Pascal Rössler about 1 year ago

  • Description updated (diff)
Actions #16

Updated by Pascal Rössler about 1 year ago

  • Description updated (diff)
Actions #17

Updated by Pascal Rössler about 1 year ago

  • Description updated (diff)
Actions #18

Updated by Pascal Rössler about 1 year ago

  • Description updated (diff)
Actions #19

Updated by Pascal Rössler about 1 year ago

  • Description updated (diff)
Actions #20

Updated by Pascal Rössler about 1 year ago

  • Description updated (diff)
Actions #21

Updated by Carsten Rose about 1 year ago

  • Description updated (diff)

Notation:

  • Vorschlag 2 kommt der bisher verwendeten Notation schon recht nahe.
  • Shortcuts (ein Buchstabe) haben wir fast keine mehr und ist in diesem Fall (zu viele Optionen, die Long-Keywords gibt es bereits) nicht sinnvoll:
Vorschlag2a: SELECT CONCAT('X|fileDestination:fileadmin/test/test.pdf'
                        ,'|table:Upload'
                        ,'|column:pathFileName'
                        ,'|capture:camera'
                        ,'|accept:image/*'
                        ,'|maxFileSize:150000'
                        ,'|fileButtonText:Waehle eine Datei'
                        ,'|fileTrash:0'
                        ,'|fileTrashText:Datei loeschen') AS _link
  • Bei der Variante ... AS _upload kann das X| entfallen.
  • Wichtig ist das nebem dem Keyword ... AS _upload auch die Variante 'X|... AS _link funktioniert - damit koennte man dann z.B. den Upload auch in einem Form im Titel oder der Kommentarspalte machen: {{ 'X|...' AS _link}}

Es sollte alles durch die Linkklasse gehen, damit wir deren Opionen out of the Box nutzen koennen:

  • b:0|1 - Button via Bootstrap anzeigen: ja/nein/Farbe
  • q:... - Sicherheitsabfrage
  • r: - Link/Button: 0 - normal, 3 - disabled, 5 - nicht anzeigen, ...
  • ...
Actions #22

Updated by Carsten Rose 6 months ago

  • Assignee changed from Pascal Rössler to Support: Web
  • Target version changed from 24.8.0 to CodingWeek2023
Actions #23

Updated by Carsten Rose 5 months ago

  • Category set to 38
Actions #24

Updated by Carsten Rose 5 months ago

  • Status changed from In Progress to New
Actions #25

Updated by Carsten Rose 5 months ago

  • Category deleted (38)
  • Vote CR added
Actions #26

Updated by Carsten Rose 5 months ago

  • Status changed from New to Priorize
Actions #27

Updated by Carsten Rose 5 months ago

  • Status changed from Priorize to In Progress
Actions #28

Updated by Carsten Rose 5 months ago

  • Assignee changed from Support: Web to Enis Nuredini
Actions #29

Updated by Carsten Rose 2 months ago

  • Target version changed from CodingWeek2023 to 24.1.0.rc1
Actions #30

Updated by Carsten Rose 2 months ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF