This website explains the functions and scripts that are common across many D&D applications. Including these functions and scripts in your development will help speed up the initial process and also make it easier for maintaining applications throughout their use. All these functions and scripts can be included by using the following line of code:
~~~~ $(include=https://raw.githubusercontent.com/GlutesDD/qlikview-scripts/master/DraperDashQlikviewScripts.inc); ~~~~This script allows a calendar to be generated from a single function call and is included via the DraperDashQlikviewScripts.inc include file. You must create an inline table called Calendars with a single field Calendar. Type the name of the date fields used to generate each calendar as the field values.
This script allows a common calendar to be generated which allows for analysing data in the same chart or object with a single data dimension where multiple calendars are needed. This is done from a single function call and is included via the DraperDashQlikviewScripts.inc include file. Please run this function after you have generated all other calendars.
This script replaces the script in the D&D template called Icons and Images and loads into the qmem all the Icons and Images from the Resources folder. This script is ran on the inclusion of the DraperDashQlikviewScripts.inc include file and pulls in all Resources from http://discover.draperanddash.com/OpenData/Qlikview-Scripts/Resources.
This script replaces the script in the D&D template called Colour Variables and initialises the standard D&D colours used in the app template. This script is ran on the inclusion of the DraperDashQlikviewScripts.inc include file.
This script generates a HTML file with the data table supplied formatted into a HTML table allowing the file to be pushed over the web and loaded into another Qlik application using the Web Files wizard. This is done from a single function call and is included via the DraperDashQlikviewScripts.inc include file.