40 Replies Latest reply: Aug 3, 2018 9:31 AM by Magnus Svanfeldt RSS

    LCGV function not working

    Ali Hijazi

      Hello

       

      I'm using the version 1.7.1 of the QDF

      I'm trying to link / mount containers

       

      in my script I put the following code:

       

      /*

      QDF initiation script

      */

      set vG.BasePath=;  //Clrear cache

      set vG.SharedBasePath=; //Clrear cache

      SET vG.RootContainer='lib://QDF_ROOT/';

      SET vG.HomeContainer='lib://QDF_ROOT/3.Customer_Case_Analysis/';

      $(Include=lib://QDF_ROOT/InitLink.qvs);

      /*****************************************************************/

       

       

      /*

      we need to read QVD files from the QVD Generator resource

          and mainly from the Transform folder of the QVDs

      */

       

      call LCGV('QVDGEN','QVD');

      /*****************************************************************/?

       

      However I get the following warning: (check attached image)

       

       

       

      kindly advise as I'm stuck and don't know a work around this issue

       

       

      Ali M. Hijazi - BI Solution Architect

      ali.hijazi@setelia.com<mailto:Jean.Aboujaoude@setelia.com>

      Mobile : +961 03 197337- Tel: +33 (0)1 55 43 26 01 - 961 (5) 955 417- Fax: + 33 (0)1 55 43 26 10

       

      This message and any attachments are confidential. If you are not the intended recipient or his authorized agent, please be advised that copying, distributing or revealing the contents of this message is expressly prohibited. If you are not the intended recipient, kindly notify the sender immediately by return e-mail and delete this message from your system.

       

       

        • Re: LCGV function not working
          Felip Drechsler

          HI Ali,

           

          Can you share a picture on how the QDF is setup (container structure)?

          I've encountered some problems with the Administration folder, but not other containers.

           

          Could be that your folder is named something else, or similar (lower and upper case)?

          • Re: LCGV function not working
            Magnus Svanfeldt

            I tried your example setup of containers and it works for me with only one data connection pointing to the QDF_ROOT-folder.

            The main difference is that I'm using the InitLink.qvs in the home container and not the root container.

             

            // InitLink.qvs Initiating Qlik Deployment Framework

            SET vG.BasePath=;  //Clear cache

            SET vG.SharedBasePath=; //Clear cache

            SET vG.RootContainer='QDF_ROOT';

            SET vG.HomeContainer='3.Customer_Case_Analysis';

            $(Must_Include=lib://$(vG.RootContainer)/$(vG.HomeContainer)/InitLink.qvs);

             

            CALL LCGV('QVDGEN','QVD');

              • Re: LCGV function not working
                Ali Hijazi

                QVDGEN is the prefix of the container or the name of the folder connection?

                • Re: LCGV function not working
                  Ali Hijazi

                  finally it worked

                  thank you very much indeed

                  • Re: LCGV function not working
                    Magnus Svanfeldt

                    Depending on how you want to setup your data connections, you should initialize the QDF in different ways.

                    Here is some code that shows 3 different ways depending on if you use a single LIB for all containers or if you use a separate LIB for each container. Alt 1 and Alt 2 treats the Shared container in different ways.

                     

                     

                    // =================================================

                    // InitLink.qvs Initiating Qlik Deployment Framework

                    // =================================================

                     

                    // Clear cache in QDF - makes the code reload variables

                    SET vG.BasePath=;

                    SET vG.SharedBasePath=;

                     

                    /***** Alternative 1 *****/

                    /* Use Single LIB - One data source LIB for all containers pointing on the Root above containers */

                    /* Shared Container works without it's own LIB if Prefix in deploytool is Shared */

                    SET vG.RootContainer='QDF_ROOT'; // Data source LIB Name

                    SET vG.HomeContainer='3.Customer_Case_Analysis'; // Folder name in file structure

                    $(Must_Include=lib://$(vG.RootContainer)/$(vG.HomeContainer)/InitLink.qvs);

                    /*************************/

                     

                     

                    /***** Alternative 2 *****/

                    /* Use Single LIB but QDF treats it like Separate LIB - One data source LIB for all containers pointing on the Root above containers */

                    /* Shared LIB data source must be called 'Shared' to be able to work */

                    // SET vG.RootContainer='QDF_ROOT'; // Data source LIB Name

                    // SET vG.HomeContainer='$(vG.RootContainer)/3.Customer_Case_Analysis'; // Folder name in file structure

                    // $(Must_Include=lib://$(vG.HomeContainer)/InitLink.qvs);

                    /*************************/

                     

                     

                    /***** Alternative 3 *****/

                    /* Separate LIB - One data source LIB per container */

                    /* Shared LIB data source must be called 'Shared' to be able to work */

                    // SET vG.HomeContainer='QDF_CCA'; // Prefix name in deploytool and data source LIB name

                    // $(Must_Include=lib://$(vG.HomeContainer)/InitLink.qvs);

                    /*************************/

                     

                     

                    // Add other containers using prefix name in deploytool

                    CALL LCGV('QDF_QVDGEN','QVD');