⟵ hearthere ⟶
  • Training course
  • Creating simple tables and fields
  • Codes base level
  • Selects and links between tables
  • Table settings basic level
  • Prefilters base level
  • Conditional formatting basic level
  • Action codes base level
  • Using pop-up windows
  • Cycles base level
  • Roles and users on the web
  • Codes advanced level
  • Action codes advanced level
  • How can I get the previous value of a field and use it in the action code?
  • Strong action blocking by server conditions
  • At what moment is the data for the action codes taken?
  • Cross-execution of actions
  • Opening a nested temporary table and returning data to the parent table
  • Features of calling linkToInput and linkToButtons from popups
  • Relative list and number changes via set
  • Inserting rows after a certain row when sorting by order field
  • Using listReplace to execute actions
  • Using the panels of other tables
  • How to open the file upload window?
  • Using an arbitrary form in linkToInput
  • How to perform actions on the rows highlighted with checks?
  • Prefilters advanced level
  • Field and table settings advanced level
  • Cycles advanced level
  • Formatting advanced level
  • Select-Tree
  • Executing a scheduled action code
  • Printing and emailing
  • Notifications
  • API interaction
  • Adaptivity and Sections
  • How to open the file upload window?

    An example of uploading a file using linkToFileUpload

    Everything is done using linkToFileUpload

    = : linkToFileUpload(title: "Select file"; code: $code; limit: 1; type: "*"; refresh: true)
    
    code: "=: set(table: $#ntn; field: 'h_file' = $#input)"
    
    

    The entire structure of the selected files is passed to the $#input variable.

    Also, if we enable the multiple parameter in the file field, we can use +field: 'h_file' + $#input