<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re. :Multiple authors in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236904#M88033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Russell,&lt;/P&gt;&lt;P&gt;I have an idea to resolve your problem. You should use (in your script) a DOS command to create a temporary file you will use as an "occupation flag". Then, you will only have to test if the file exists or not before making your modifications.&lt;/P&gt;&lt;P&gt;The script will be something like that:&lt;/P&gt;&lt;P&gt;SET TFile = QVTemp.txt; // Store there the name of your temporary file&lt;/P&gt;&lt;P&gt;// Set a variable indicating if the QVD exists or not&lt;BR /&gt;IF FileSize('$(TFile)') &amp;gt; 0 THEN&lt;BR /&gt; // What you do if already in use&lt;BR /&gt;ELSE&lt;BR /&gt; EXECUTE cmd /c echo 'In use' &amp;gt; QVTemp.txt;&lt;BR /&gt; // What you do if free&lt;BR /&gt; EXECUTE cmd /c del QVTemp.txt;&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Does it answer your question ?&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Franck SEREGAZA&lt;/P&gt;&lt;P&gt;Business &amp;amp; Decision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 12:35:50 GMT</pubDate>
    <dc:creator>fseregaza</dc:creator>
    <dc:date>2010-02-11T12:35:50Z</dc:date>
    <item>
      <title>Multiple authors</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236903#M88032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV8.50&lt;/P&gt;&lt;P&gt;We are fortunate to have 2 developers and 6 professionals. We are all running one QVD. On occasion, we have had clashes of author, i.e. two or more people trying to change and save a single document.&lt;/P&gt;&lt;P&gt;Does anyone know of a way we can alert users, in the way Excel does for example, when someone else has a file open?&lt;/P&gt;&lt;P&gt;Ta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236903#M88032</guid>
      <dc:creator />
      <dc:date>2010-02-11T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re. :Multiple authors</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236904#M88033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Russell,&lt;/P&gt;&lt;P&gt;I have an idea to resolve your problem. You should use (in your script) a DOS command to create a temporary file you will use as an "occupation flag". Then, you will only have to test if the file exists or not before making your modifications.&lt;/P&gt;&lt;P&gt;The script will be something like that:&lt;/P&gt;&lt;P&gt;SET TFile = QVTemp.txt; // Store there the name of your temporary file&lt;/P&gt;&lt;P&gt;// Set a variable indicating if the QVD exists or not&lt;BR /&gt;IF FileSize('$(TFile)') &amp;gt; 0 THEN&lt;BR /&gt; // What you do if already in use&lt;BR /&gt;ELSE&lt;BR /&gt; EXECUTE cmd /c echo 'In use' &amp;gt; QVTemp.txt;&lt;BR /&gt; // What you do if free&lt;BR /&gt; EXECUTE cmd /c del QVTemp.txt;&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Does it answer your question ?&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Franck SEREGAZA&lt;/P&gt;&lt;P&gt;Business &amp;amp; Decision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236904#M88033</guid>
      <dc:creator>fseregaza</dc:creator>
      <dc:date>2010-02-11T12:35:50Z</dc:date>
    </item>
    <item>
      <title>Re. :Multiple authors</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236905#M88034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Franck, I love the simplicity of your idea, and I am sure it will work.&lt;/P&gt;&lt;P&gt;Would you know how to record the active user's ID in the qvtemp.txt file? I was thinking this could then be displayed as an alert when opening the document.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Russell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236905#M88034</guid>
      <dc:creator />
      <dc:date>2010-02-11T12:43:43Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Multiple authors</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236906#M88035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on what you want, you can use 2 QV functions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;QVUser(): return the login of the QV user (interesting only when you use a security for opening your application).&lt;/LI&gt;&lt;LI&gt;OSUser(): return the OS user which opened the application (you should use this one).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope it will fit you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Franck SEREGAZA&lt;/P&gt;&lt;P&gt;Business &amp;amp; Decision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 13:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-authors/m-p/236906#M88035</guid>
      <dc:creator>fseregaza</dc:creator>
      <dc:date>2010-02-11T13:49:23Z</dc:date>
    </item>
  </channel>
</rss>

