Include Custom JS or Json file in VBCS

  • Create a Sample WebApp
  • Navigate to resources and create a sample JSON and JS file

  • Navigate to webApp Json Tab and paths give a short name to the given path as shown in below


  • Now we can access the location and the files contained withing the path in our custom JavaScript code
define(["text!test/data.json","text!test/new-data.json","test/download_file"], (jsonDataStr,newjsonDataStr,download_file) => {
  'use strict';

  class PageModule {
  }
  let jsonData = JSON.parse(jsonDataStr);
  let newjsonData = JSON.parse(newjsonDataStr);

Comments

Popular posts from this blog

Mavenize an Oracle ADF Application

Creating Column Filter on a VBCS Table using ListDataProvider(LDP)

Using Custom Colors in Sunburst Chart