0 Replies Latest reply: Jul 10, 2016 11:43 PM by Rakesh Paul RSS

    Adding to Application under same API mashup

    Rakesh Paul

      Hi All,

       

      I am trying to build an API mashup where I need two application to be added. I am being able to add one application by using these piece of code but failing to add one more -

       

       

      if (value.qDocName === "Backlog" || value.qDocName === "Backlog.qvf"){

       

       

       

        //open apps -- inserted here --

       

      var app = qlik.openApp(value.qDocName, config);

       

       

       

       

       

        var app2 = qlik.openApp('Backlog.qvf', config);

       

        $( ".qvobject" ).each( function () {

       

        var qvid = $( this ).data( "qvid" );

       

        //get objects -- inserted here --

       

        app1.getObject('QV01','2b4b05de-765f-403c-b706-9172960e8dc8');//Revenue

       

        app1.getObject('QV42','mEwmpfJ');//Actual/Forecast

       

       

       

      app.getObject( this, qvid ).then( function ( object ) {

       

        qvobjects[qvid] = object;

       

        } );

       

        } );

       

        qlik.setOnError( function ( error ) {

       

        alert( error.message );

       

        } );

       

        }

       

      Please suggest how I can add one more app into here.

       

      Regards,

      Rakesh Paul