4 Replies Latest reply: Feb 14, 2014 1:16 AM by Vadim Tsushko RSS

    QDF bootstrap code in Partial Reload mode

    Vadim Tsushko

      In developing mode I sometimes use partial reload for my end user applications.

      So instead of full datamodel reload, I reload only variables and some configuration files.

      That used to work with binary load too - binary load command skipped in partial reload mode.

      Now QVF bootstrap code breaks on partial reload.

      Currently I wrapped QVF initilization fragment by IF statement

       

      IF NOT IsPartialReload() THEN
        let vG.BasePath=; 
        // Basic search for 1.Init.qvs
        $(Include=..\..\..\..\3.include\1.basevariable\1.init.qvs);
        $(Include=..\..\..\3.include\1.basevariable\1.init.qvs);
        $(Include=..\..\3.include\1.basevariable\1.init.qvs);
        $(Include=..\3.include\1.basevariable\1.init.qvs);
        Exit script when '$(vG.BasePath)'= '';
      ENDIF
      

       

      Also I updated LoadVariableCSV - changed LOAD statement to REPLACE LOAD

      It works for me now.

      Would it be worthwhile if all QDF bootstrap code can work in partial reload mode?