Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Utils.helper.ExternalFileUtils

          Utils.helper.ExternalFileUtils

          Framework uses Utils.helper.ExternalFileUtils, a new utility class, to manage the loading of external libraries in Consumer Goods Cloud Modeler and use it in the UI container on the mobile device.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Description

          These public methods are used:

          • loadExternalJavascriptAsync()
          • loadExternalStyling()

          loadExternalJavascriptAsync(Id, Filename)

          This method loads and executes a JavaScript file and registers it with the given ID. The method doesn’t need to reload if it’s called again by using the same parameters.

          Parameters

          id- ID of the external library that’s defined in the Modeler.

          fileName- Name of the file to load including any subfolders.

          loadExternalStyling(id, fileName)

          This method imports and loads a .css file and registers it with the given ID. The method doesn’t need to reload if it’s called again by using the same parameters.

          Parameters

          id- ID of the external library that’s defined in the Modeler.

          fileName- Name of the file to load including any subfolders.

           
          Loading
          Salesforce Help | Article