16.9 Managing Static Application Files

Navigate to Shared Components to upload, view, download, and delete static application files (including images, CSS files, and other files which must be managed independently).

16.9.1 Specifying the Location of Static Application Files

Specify the location of static application files.

Application files are stored with your application definition in the Oracle database. For performance reasons, you can also store your application files on your Web server. Edit the Static File Prefix attribute to change the location.

To edit the Static File Prefix attribute:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under User Interface, select User Interface Attributes.
  3. Click the User Interface tab.
  4. Under General, Static File Prefix - Determines the virtual path the Web server uses to point to the static files when using #APP_IMAGES# substitution string. Do not specify anything to reference files which are stored with your application definition in the database.

    For performance reasons you can also store your application files on your Web server or a Content Delivery Network (CDN). Use any valid URL to reference them. For example:

    /myFiles/

    https://www.example.com/myFiles/

  5. Click Apply Changes.

16.9.2 Referencing Static Application Files

Reference a static application file in your application using #APP_FILES# substitution string.

Static application files are only available to the currently selected application. To view sample syntax for uploaded images, see the Reference column on the Static Application Files report.

16.9.3 Creating Static Application Files

Create static application files from Shared Components.

To create a static application file:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Create page appears.

  3. On the Create page:
    1. Directory - Enter the name of the directory where the file should be stored. For example, css or css/images.
      If no directory is specified, the file is stored in the root directory.
    2. File Name - If creating a blank file (for example, script.js), enter the name of the file.
    3. Content - If uploading a file, do one of the following:
      • Drag and drop the file to the Content region.

      • Click the Content region and select the file.

    4. Click Create or Create and Create Another.

16.9.4 Viewing the Static Application Files Report

View the Static Application Files report.

To view Static Application Files as a report:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. If not already selected, click View Report icon.

    A report appears. To customize the report, use the Search bar at the top of the page.

    The Static Application Files report includes the following columns: Name, Mime Type, File Size, Reference, Download as Zip, Updated, and Updated By.

  4. To view or edit file details, click the file Name. On the Edit page:
    1. Directory - Enter the name of the directory where the file should be stored. For example, css or css/images.
      If no directory is specified, the file is stored in the root directory.
    2. File Name - Edit the name of the file.
    3. To save your changes, click Save Changes.

16.9.5 Downloading Static Application Files

Download an uploaded static application file, or download all static application files in a Zip.

16.9.5.1 Downloading a Static Application File

To download an uploaded static application file:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. If not already selected, click View Report icon.

    A report appears. To customize the report, use the Search bar at the top of the page.

  4. Locate the file to be downloaded and click the Download link.

16.9.5.2 Downloading All Static Application Files in a Zip

To download all static application files in a Zip:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. Click Download as Zip.

16.9.6 Deleting Static Application Files

Delete uploaded static application files.

16.9.6.1 Deleting a Static Application File

Delete an uploaded static application file in the Static Application Files, Edit page.

To delete an uploaded static application file:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. If not already selected, click View Report icon.

    A report appears. To customize the report, use the Search bar at the top of the page.

  4. Click the name of the file to be deleted.
  5. On the Edit page, click Delete.

16.9.6.2 Deleting Multiple or All Static Application Files

To delete multiple files or all static application files:

  1. Navigate to the Shared Components page:
    1. On the Workspace home page, click App Builder.
    2. Select an application.
    3. On the Application home page, click Shared Components.

      The Shared Components page appears.

  2. Under Files, select Static Application Files.

    The Static Application Files page appears.

  3. To delete multiple files at once, select the files to be deleted and click Delete Checked.
  4. To delete all files, click Delete All.