Configuring file downloads

A method is used to download files in the Web UI Framework. The method call will take in the file download input, the API input, and the API name.

The syntax of the method is:

  • class: sc.plat.FileAttachmentHelper
  • function: downloadFileAttachement
  • Parameter to be passed: A JSON object as:
    {
       FileDownloadInput: <File_Download_Input_JSON_String>, 
       APIInput: <API_Input_JSON_String>, 
       APIName: <API_Name>
    }

    where:

    File_Download_Input_JSON_String: The input required to download the file.

    API_Input_JSON_String: The output of this API should return file information.

    API_Name: The name of the API to be called with APIInput.