Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
devel:documentation:application_configuration:dev:dynamic-forms [2019/02/14 09:42]
svandav
devel:documentation:application_configuration:dev:dynamic-forms [2019/02/14 12:19]
tomiskar [Attachments]
Line 40: Line 40:
   * ''BYTEARRAY'' - byte[]   * ''BYTEARRAY'' - byte[]
   * ''UUID'' - uuid identifier. Indexed.   * ''UUID'' - uuid identifier. Indexed.
-  * ''ATTACHMENT'' - attachment (~binary file). Read more about [[..:..:modules_rpt:dev:attachment_manager|attachments]].+  * ''ATTACHMENT'' - attachment (~binary file). Read more about [[#attachments|attachments]].
  
  
Line 148: Line 148:
   * java: ''^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])$''   * java: ''^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])$''
 </note> </note>
 +
 +{{ :devel:documentation:application_configuration:dev:validation.png |}}
  
 ==== Validation message ==== ==== Validation message ====
Line 173: Line 175:
  
 <note tip>Only identity extended attribute values support authorization policies. Support for other entities can be added in future.</note> <note tip>Only identity extended attribute values support authorization policies. Support for other entities can be added in future.</note>
 +
 +===== Attachments =====
 +
 +Attachments can be uploaded for the attributes with persistent type ''ATTACHMENT''. Attachment is uploaded immediately after user selects file from his file system - attachment is uploaded as [[..:..:modules_rpt:dev:attachment_manager#temporary_files_and_attachments|temporary]] to server and it's identifier is used as extended attribute value. Extended attribute can be saved then (when whole extended form is submitted).
 +
 +Attachment can be downloaded from frontend (implemented for Identity and Role agenda). If attachment is picture (~ attachment mime type starts with ''image/*''), then preview of saved extended attribute's attachment is available directly in extended attribute form.
 +
 +{{:devel:documentation:application_configuration:dev:attachment-preview.png|}}
 +
 +Read more about [[..:..:modules_rpt:dev:attachment_manager|attachments]] usage in the application (e.g. how to increase maximum file size).
 +
 +
 +
 ===== Future development ===== ===== Future development =====
  
   * Form value data migration, when persistent type is changed.   * Form value data migration, when persistent type is changed.
-  * [[https://redmine.czechidm.com/issues/1140|#1140]] Add module into form definition table - now is module resolved dynamically by owner, but this cannot be overriden by module - e.g. when reg module adds new form for identity, localization is searched by owner in core module => and cannot be found. +  * Attachment renderer: support multiple files, validation support (now is validation on input)
-  * Attachment renderer: support multiple files, validation support (now is validation on input), clearable+
  • by tomiskar