Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-854

Allow passing additional params to custom file upload template

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 5.0.9
    • Fix Version/s: 5.0.11
    • Component/s: Components
    • Labels:

      Description

      Currently application developer can have custom file upload template by calling Fileupload#setTemplate(String uri) and if required extending FileuploadDlg to manage new custom template. If the custom template requires some additional parameters to customize template before showing to end user there are few ways to achieve this
      1. Set them in desktop using Desktop.setAttribute() & retrieve in extended FileuploadDlg (disadvantage is - need to have additional method calls for setAttribute() before each Fileupload.get() )
      2. Set as arg in execution before calling Fileupload.get() & retrieve in extended FileuploadDlg(disadvantage - same as 1)
      3. Use a service to retrieve in extended FileuploadDlg (need to maintain hard reference to service in extended FileuploadDlg class)

      Possible enhancement could be: Have a protected method in Fileupload class that can be overridden to add additional parameters for template.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ashishd ashishd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: