5 Replies Latest reply: Feb 23, 2012 9:26 AM by Rakesh Mehta RSS

    URL connect in script

      Hello everybody,

      I need to connect to a QV server in the script and make it throw a script error if the connection can't be established. I tried to do the following:


      SET ErroreMode = 0;

      CONNECT to '[http://servername/qlikview/index.htm'; | http://servername/qlikview/index.htm';]

      if ScriptError > 1 then
      SET ErrorMode = 1;
      SET vURL = False
      exit script;
      end if

      SET ErroreMode = 1;
      SET vURL=True;



      Basically, all I need is to know, if the server is available and set the variable accordingly. The topic has already been discussed, but I can't get it working for me.

      Thank you for any advice,