First, the file 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.
Place the SampleInit.js under the example folder, where the main page can find and include it. Following is the project structure:
As some links in the main page can trigger the view component function, the SampleVO.js is used to bind some HTML event to some handlers. See Web2.0 On-Demand Workplace Sample for more informaiton.