Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all,
We have created single mashup page wherin we have used whole sheet as single object.
Mashup is running good but after 30 min we are getting session expired message due to inactivity in qliksense.
How can we keep session live on mashup page? For trial purpose we have added clock object as running on mash up page where clock is running fine but area on html page where we have kept sheet object shows session expired.
Kindly advise some solution. [ I am not expecting solution as to keep every single object from sheet on html page it takes too much customization which I do not want]
Hello,
You can create a loop that do selections in your mashup.
In the js, create a function that loop every n seconds :
app.field('Country').selectValues([{qText: Country}], false, true);}
And in the $(document).ready(function() you call this function :
$(document).ready(function(){
var num = 0;
var numCountry = Math.floor(Math.random() * 5);
var numFood = 0;
var nbBoucle = 1;
do {
var numCountry2 = Math.floor(Math.random() * 5);
}
while (numCountry == numCountry2);
var arrCountry = ["FRANCE","BELGIUM","GERMANY","ITALY","SPAIN","GREAT BRITAIN"];
var Country = arrCountry[numCountry];
var Country2 = arrCountry[numCountry2];
// Initialisation des sélections
app.field('Country').clear();
app.field('Country').selectValues([{qText: arrCountry[numCountry]}], false, true);
// Initialisation des images
document.getElementById('idsquare-2-1').style.backgroundImage = 'url(./img/FOODNOFOOD.png)'
document.getElementById('idsquare-3-1').style.backgroundImage = 'url(./img/offlineonline.png)'
globalLoop(num, Country, Country2, nbBoucle);
Dear paul,
Thank you for your response. Below is my js script, can you please where I can write given code :
Dear Paul,
I am still awaiting for your response