Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

fmazzarelli
Contributor III

JavaScript

Hi Community,

if I create an expression, could I use javascript instead of a fornula?

Example:

// JavaScript source code

function init() {

    var mapOptions = {

        center: new google.maps.LatLng(39.7685571, -86.1578993, 19),

        mapTypeId: google.maps.MapTypeId.SATELLITE,

        zoom: 18

    };

    var myMap;     myMap = new google.maps.Map(document.getElementById('map'), mapOptions);

}

function loadScript() {

    var script = document.createElement('script');

    script.src = 'http://maps.googleapis.com/maps/api/js?sensor=false&callback=init';

    document.body.appendChild(script);                

}

window.onload = loadScript;