First, it sets up the BTTConfig Object to BTTMain.BTTConfig. Then it calls the BTTMain.init() to initialize BTT On-Demand Workplace Area, and callsBTTMain.save()to trigger the saving process.
Put the SampleInit.js under the example folder, where the main page can find and include it.
As some links in the main page can trigger the view component function, the SampleVO.js is used to bind the HTML event handler to the instance of the view component. Please see Web2 On-Demand Workplace Sample for reference.