1 Reply Latest reply: Jan 5, 2016 5:01 AM by Sangram Reddy RSS

    Property panel Specific sheet Selection

    satya_ys satya_ys

      Hi Every one ,

      If i want to select particular Sheet means (Goto Specific Sheet) in the drop down menu, what are the Sheets will be there in that App Those Sheets will be displaying in Selection Sheet Drop Down menu @@as show in below picture.

      Sheet.png

      Regards,

      Sai Madhu

      reddys310

        • Re: Property panel Specific sheet Selection
          Sangram Reddy

          Hi Madhu,

           

          I am assumming that you need the no of sheets in an app, with their ID'd.

          So make use of this code:

           

          paint: function ( $element, layout ) {

           

           

            //add your rendering code here

            debugger;

             var app=qlik.currApp();

             var cnt = 0;

            

             app.getAppObjectList("sheet",function(reply)

                      {

                      console.log(reply);

                          var str = "";

                          $.each(reply.qAppObjectList.qItems, function(key, value)

                          {

             console.log(str);

                          str += value.qData.title + ' ';

                          if(currUrl.search("analysis") >-1)

                          {

                            console.log(value.qInfo.qId);console.log(' - ');console.log(value.qData.title);

                          }

                          else

                          {

                            console.log(value.qData.title);

                          }

                      cnt+=1;

                        });

            

             console.log(cnt);

            

            });

           

            

            }

           

          This will give you the list of all the sheets in an app.

           

          Thanks and Regards,

          Sangram Reddy.