Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to embed dashboard last updated time in a new html page (mashup)

i have this simple code but i can't get it to display my last updated dashboard time

<!doctype html>

<html>

<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>Qlik Sense Mashup</title>

<meta charset="utf-8">

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<meta name="HandheldFriendly" content="True">

<meta name="MobileOptimized" content="320">

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

<meta name="apple-mobile-web-app-capable" content="yes">

<meta name="apple-mobile-web-app-status-bar-style" content="black">

<meta http-equiv="cleartype" content="on">

<link rel="stylesheet" href="../../resources/autogenerated/qlik-styles.css">

<link rel="stylesheet" href="zzjjhjhjhjzz.css">

<script src="../../resources/assets/external/requirejs/require.js"></script>

</head>

<body style="overflow: auto">

<h3>Last Update</h3>

<div id="reloadTime"></div>

<div class="flex-container">

<div id="QV01" class="qvplaceholder">heello world</div>

<div id="QV02" class="qvplaceholder"></div>

<div id="QV03" class="qvplaceholder"></div>

<div id="QV04" class="qvplaceholder"></div>

<div id="QV05" class="qvplaceholder"></div>

<div id="QV06" class="qvplaceholder"></div>

</div>

<!--Error Popup-->

<div id="popup">

<button type="button" class="close" data-dismiss="modal" aria-label="Close" id="closePopup"><span aria-hidden="true">×</span></button>

<p id="popupText"></p>

</div>

<script>

// JavaScript

var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );

var config = {

                host: window.location.hostname,

                prefix: prefix,

                port: window.location.port,

                isSecure: window.location.protocol === "https:"

};

require.config( {

                baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"

} );

require( ["js/qlik"], function ( qlik ) {

                var app = qlik.openApp('c986a581-7c18-4054-9a78-7c4bdcd987b8', config);

console.log(app);

                var reloadTime = "";

                app.variable.getByName('modifiedDate').then(function (reloadTime){

console.log (reloadTime)

                               $("reloadTime" ).html(reloadTime); 

                           

                });

})

</script>

</body>

</html>

1 Solution
2 Replies
Anonymous
Not applicable
Author

Danke sehr Erik ( thanks Erik ) it worked like magic