1. 20 Apr, 2017 2 commits
    • Carsten  Rose's avatar
      #3218 / download.php / export · d46e131a
      Carsten Rose authored
      Implemented spinning wheel (hourglass) displayed during rendering and downloading PDF.
      Link.php, Report.php: New $vars[NAME_EXTRA_CONTENT_WRAP] which holds a '<button>' definition with necesary 'data-*' attributes. The Modal Dialog needs a uniq html id (derived from ttContentUid). That one is returned to Report() if there is at least one download element.
      d46e131a
    • Carsten  Rose's avatar
      #3218 / download.php / export · 4e01a68b
      Carsten Rose authored
      Implemented download.php to offer SIP protected downloads for single files (any filetype) as well as concatenated PDF files and converted HTML pages.
      download.php: API Interface
      DownloadException.php: New exception class for downloads - might be extended for better error handling.
      OnArray.php: new function getArrayItemKeyNameStartWith() to filter for specific elements in an array. New function arrayEscapeshellarg() to escape args
      Download.php: Main class.
      Link.php, Report.php: implemented new link type 'd' (=download)
      4e01a68b
  2. 17 Apr, 2017 1 commit
  3. 13 Apr, 2017 1 commit
    • Carsten  Rose's avatar
      #3573 / TypeaheadLdap: Prefetch funktioniert nicht · d645dee0
      Carsten Rose authored
      Manual.rst: Prefetch doc enhanced.
      Ldap.php: replacement of '?' in LDAP search not processed with MODE_LDAP_PREFETCH - fixed. FE_TYPEAHEAD_LDAP_KEY_PRINTF renamed to FE_TYPEAHEAD_LDAP_ID_PRINTF
      AbstractBuildForm.php: copy 'FE_TYPEAHEAD_LDAP_ID_PRINTF' to SIP seems never be done - fixed
      d645dee0
  4. 12 Apr, 2017 1 commit
  5. 11 Apr, 2017 1 commit
    • Carsten  Rose's avatar
      #3547 / FE of type 'note' causes writing of empty fields. · f9363525
      Carsten Rose authored
      During expanding of templateGroups, existing FE with no meaning for save (like note, subrecord, ...) has been created, filled with empty values and saved. Fixed for FEs with type 'subrecord' and 'note' - needs more investigation to check for further sideeffects.
      f9363525
  6. 10 Apr, 2017 2 commits
    • Carsten  Rose's avatar
      #3546 / lean: Internal Server Error · 2bf035a9
      Carsten Rose authored
      Action elements, assigned to a container which are not a templategroup, threw an exception. In general, it makes no sense (at the time of writing this) to assign an action element to a pill or fieldset, but it should not throw an exception. Fixed - just ignore such assignment.
      2bf035a9
    • Carsten  Rose's avatar
      #3544 / Form: view current form · 0c1a3e5b
      Carsten Rose authored
      Implemented.
      0c1a3e5b
  7. 08 Apr, 2017 1 commit
  8. 04 Apr, 2017 1 commit
    • Carsten  Rose's avatar
      #3502 / TemplateGroups: Checkboxen werden beim ersten Speichern (insert) nicht... · 246aeeab
      Carsten Rose authored
      #3502 / TemplateGroups: Checkboxen werden beim ersten Speichern (insert) nicht geschrieben - ein anschliessendes Update ist ok
      Das Problem tritt nur auf bei MultiCheckboxen. Neu werden im Store  STORE_ADDITIONAL_FORM_ELEMENTS (ist bereits frueher, extra fuer Checkboxen, eingefuehrt worden) fuer alle TemplateGroup FEs (type=checkbox) die Fake Elemente angelegt. Dazu wird neu NAME_TG_COPIES in dem FEs gefuellt mit dem 'TG max copies'-Wert.
      246aeeab
  9. 02 Apr, 2017 1 commit
    • Carsten  Rose's avatar
      #3385 / templateGroup: insert/update/delete non primary records · 8db50d60
      Carsten Rose authored
      Manual.rst: update doc how to insert/update/delete non primary templateGroup records.
      FormAction.php: removed $templateGroupIndex - solved implicit by defining a LIMIT on 'slaveId' . Implemented '%D' (one below %d). Implemented FE_SQL_HONOR_FORM_ELEMENTS - reduces unecassary SQL queries.
      HelperFormElement.php: moved function 'explodeTemplateGroupElements()' to 'QuickFormQuery.php'
      Database.php: remove call to explodeTemplateGroupElements() - not necessary at that place.
      QuickFormQuery.php: fill STORE_RECORD during Formload - to read templateGroup records very early. Local copy of `getNativeFormElements()`, new `explodeTemplateGroupElements()`
      8db50d60
  10. 30 Mar, 2017 3 commits
  11. 29 Mar, 2017 2 commits
    • Carsten  Rose's avatar
      #3463 / form.mode=readonly · d84dad1a
      Carsten Rose authored
      Implemented the option to make a form `readonly`. this can be done statically or dynamically via variable (e.g. SIP).
      QuickFormQuery.php, AbstractBuildForm.php: Force 'readonly' by overwriting FormElement individual 'mode' setting.
      BuildFormBootstrap.php: Introduced new variable F_SHOW_BUTTON.
      d84dad1a
    • Carsten  Rose's avatar
      #3447 / Icons das man im FrontEnd direkt das gewaehlte FormElement im... · e96bb108
      Carsten Rose authored
      #3447 / Icons das man im FrontEnd direkt das gewaehlte FormElement im Formulareditor bearbeiten kann.
      AbstractBuildForm.php: Add checkbox left to the 'EditForm'-Button to toogle the 'FormElemnt'-Icons -as the regular 'Form Edit'-Pencil, the 'FormElement Checkbox' is only displayed if the user is logged in BE.
      BuildFormBootstrap.php: new function 'buildEditFormElementCheckbos()'
      e96bb108
  12. 28 Mar, 2017 1 commit
    • Carsten  Rose's avatar
      #3456 / LDAP: with Credentials to access 'webpass' · 8cb94e92
      Carsten Rose authored
      Manual.rst: Updated doc for a) config.qfq.ini: LDAP_1_RDN, LDAP_1_PASSWORD, b) Form.parameter|FormElement.parameter: ldapUseBindCredentials
      ErrorHandler.php: removed details - the end user should not too many details.
      FormAction.php, Ldap.php, QuickFormQuery.php: implement 'ldapUseBindCredentials'
      Ldap.php: set_error_handler() to catch ldap_bind() problems. Always set LDAP_OPT_PROTOCOL_VERSION=3 - this might cause problems with som LDAP Servers - we will see.
      8cb94e92
  13. 27 Mar, 2017 2 commits
  14. 26 Mar, 2017 2 commits
    • Carsten  Rose's avatar
      #3433 | templateGroup on primary Record: Values of removed copies are not deleted · 5d817af7
      Carsten Rose authored
      The new implementation creates empty fake instances of all copies of templateGroup FormElements. Those are empty. Before save, the submitted form values will be expanded with the empty fake templateGroup FormElements and such empty values will be saved.
      FormAction.php: Rename constant SQL_FORM_ELEMENT_TEMPLATE_GROUP to SQL_FORM_ELEMENT_TEMPLATE_GROUP_FE_ID - to be more precise.
      HelperFormElement.php, Database.php: new function explodeTemplateGroupElements()
      5d817af7
    • Carsten  Rose's avatar
      #3431 / typeAheadSql: columnname 'key' is a reserverd SQL statement - replace... · f906b671
      Carsten Rose authored
      #3431 / typeAheadSql: columnname 'key' is a reserverd SQL statement - replace by 'id'. Additional the parametername 'typeAheadLdapKeyPrintf' renamed to 'typeAheadLdapIdPrintf'.
      typeAhead.php: fixed typo.
      TypeAhead.php: introduced new mapping from 'id' (SQL) to 'key' (API).
      AbstractBuildForm.php: Constant renamed.
      Database.php: update function makeArrayDict() to reflect name mapping.
      f906b671
  15. 25 Mar, 2017 3 commits
  16. 23 Mar, 2017 2 commits
  17. 20 Mar, 2017 1 commit
  18. 19 Mar, 2017 1 commit
  19. 17 Mar, 2017 1 commit
    • Carsten  Rose's avatar
      Typeahead (#3369): Parameternames has changed, configuration is possible on... · f287852c
      Carsten Rose authored
      Typeahead (#3369): Parameternames has changed, configuration is possible on the Form and on the FormElement.
      typeahead.php: if there is an exception, the message body is sent as regular 'content' for the dropdownbox. At the moment this is the only way to transmit any error messages.
      Ldap.php: missing FE_TYPEAHEAD_LDAP_KEY_PRINTF, FE_TYPEAHEAD_LDAP_VALUE_PRINTF will be substituted by the other. If both missing, an exception is thrown.
      f287852c
  20. 16 Mar, 2017 3 commits
  21. 15 Mar, 2017 2 commits
    • Carsten  Rose's avatar
      TypeAhead.php: fixed typo · 393f1232
      Carsten Rose authored
      Ldap.php: fixed implementation errors of first run.
      AbstractBuildForm.php: set defaults for limit and minlegth. Implement function checkSqlAppendLimit()
      393f1232
    • Carsten  Rose's avatar
      typeAhead: second implementation of typeAhead - user can customize LDAP queries. · 3f119a48
      Carsten Rose authored
      TypeAhead.php: Reformat of various constants. Hard coded LDAP query replaced by one submitted via SIP.
      KeyValueStringParser.php: Implemented explodeWrapped() - behaves like 'explode()' but will respect strings wrapped in quotes as no explodeable.
      Ldap.php: New class to manage LDAP access.
      AbstractBuildForm.php: Add attributes DATA_TYPEAHEAD_LIMIT, DATA_TYPEAHEAD_MINLENGTH. Parsing of FormElement.parameter.typeahead* parameter.
      3f119a48
  22. 14 Mar, 2017 1 commit
  23. 06 Mar, 2017 1 commit
  24. 05 Mar, 2017 1 commit
    • Carsten  Rose's avatar
      #3180=#2081 dynamicUpdate, rearrange 'input hidden' elements from checkboxes,... · 9a267b44
      Carsten Rose authored
      #3180=#2081 dynamicUpdate, rearrange 'input hidden' elements from checkboxes, radios to top of form.
      
      CODING.md: add some doc about STORE_ADDITIONAL_FORM_ELEMENTS.
      load.php (#2081): rearrange delivered JSON to fullfill client API.
      AbstractBuildForm.php: rename getJsonElementUpdate() to getFormElemenForJson(). Extend getFormElementForJson() to support changes for label and note. Fill store STORE_ADDITIONAL_FORM_ELEMENTS with 'hidden input' elments.
      QuickFormQuery.php: implement Client JOSN API update.
      9a267b44
  25. 02 Mar, 2017 1 commit
  26. 01 Mar, 2017 2 commits
    • Carsten  Rose's avatar
      Implemented generating of 'id' per FormElement. · 1d995d96
      Carsten Rose authored
      Support.php: new function insertAttribute().
      AbstractBuildForm.php: added 'id' to all FormElements.
      BuildFormBootstrap: extended customWrap to insert 'id' in every wrap element.
      QuickFormQuery.php: Add 'id' to Form ToolTip.
      1d995d96
    • Carsten  Rose's avatar
      Preparation 'DynamicUpdate' fuer beliebige Felder. · 70a4f34d
      Carsten Rose authored
      FillStoreForm.php, HelperFormElement.php, BuildFormBootstap.php, BuildFormPlain.php, BuildFormTable.php, QuickFormQuery.php: Rename buildFormElementId() to buildFormElementname(). New Function buildFormElementId(). Rename variable $htmlFormElementId to $htmlFormElementName.
      Support.php: tooltips now contain an html id.
      Constants.php: Preparation for API 'element-update'.
      70a4f34d