After attending a great BI 2014 event this past week in Orlando, I learned that many did not know how to set up background processing in Design Studio. After reviewing the materials in Learning Hub, I adapted this application slightly differently, with less code.
If your application has multiple queries, perhaps you do not want to load them all at once for a faster better end user experience.
Step 1:
On start up, set up background processing event.
APPLICATION.doBackgroundProcessing():
Step 2: Load in Script on data source
The first data source will load when the application is launched so the Load in Script will be set to False
The second data source will be launched after an event, in this case a button.
Step 3: Review outline
Step 4: Load data source 2 when the button "Load Chart" is clicked:
Step 5: View in runtime
Notice that the cross tab is loaded but the chart is not.
Step 6: Click Load Chart
Here is a recording:
You can learn more about Design Studio, including hands-on experience at this Jump Start ASUG Annual Conference SAPPHIRE with a Pre-Conference Session - Back and Better than Ever