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

qlik sense mashup get field value

hello all

i;m working on a mahsup and i;m trying to get the value of a certain field. in order to make this more simple lets say that there is only one value in this field

how can i do this ? this doesn't work ???

var AAA = app.field('fieldname').qSelected

thanks

1 Reply
Not applicable
Author

Hello, i would create a list.

function createListBox()

  app.createList({

  "qFrequencyMode": "V",

  "qShowAlternatives": true,

  "qDef": {

  "qFieldDefs": [

  "Fieldname"

  ]

  },

  "qExpressions": [],

  "qInitialDataFetch": [

  {

  "qHeight": 50, // load 50 values

  "qWidth": 1

  }

  ]

  },

  function(u){

  var e=u.qListObject;

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

  {

     //display values

  });

   }

  )};