7 Replies Latest reply: Aug 16, 2017 8:35 AM by santosh lal RSS

    List selection not working in Qliksense Mashup

    santosh lal

      Below code not working,

      value of field is coming but selection is not happening in field Department.

      Kindly help

      Callback function:

       

      function ListDep(reply, app){

      console.info(reply);

       

      $("#ListDep").empty();

      var qObject=reply.qListObject;

       

      $.each(qObject.qDataPages[0].qMatrix,function(){

      var item=this[0];

      var selt="";

      if(item.qState == "S"){

       

      currentReg=item.qText;

      selt = " style=\"font-weight:bold;\"";

      }

       

      $("#ListDep").append('<li><a data-select="'+ item.qText+'"  href="#">'+ item.qText + '</a></li>');

       

      });

      $("#ListDep li").click(function(){

      var value = $(this).text();

       

      app.field('Department').selectMatch(value,false);

       

      });

       

       

      }

       

       

      //open apps -- inserted here --

      var app = qlik.openApp('Helpdesk Management.qvf', config);

       

       

      //get objects -- inserted here --

      app.getObject('QV01','hRZaKk');

      //create cubes and lists -- inserted here --

      app.createList({

      "qFrequencyMode": "V",

      "qDef": {

      "qFieldDefs": [

      "Department"

      ]

      },

      "qExpressions": [],

      "qInitialDataFetch": [

      {

      "qHeight": 20,

      "qWidth": 1

      }

      ],

      "qLibraryId": "RBBKJP"

      }, ListDep);

      } );