1 Reply Latest reply: Jul 13, 2016 3:08 AM by Thibaut Schueller RSS

    qlik sense mashup get field value

    Jonathan Tago

      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

        • Re: qlik sense mashup get field value
          Thibaut Schueller

          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

            });

             }

            )};