Making startup JS file

Create a JS file to initialize the BTT On-Demand Workplace Area. Take SampleInit.js in BTTWeb2InternetBankSample as an example.

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.

the default JS file to initialize and save the BTT On-Demand Workplace Area

Note: BTTMain.init(BTTConfig) will call _Init() as a callback function after the model for the Workplace is ready. The _Init() function is called to initialize the view component for the Workplace elements.

Place the SampleInit.js under the example folder, where the main page can find and include it. Following is the project structure:

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.