<?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 Problem with spaces in a filename - button action to open read-only in Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360305#M575546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matthijs.&amp;nbsp; Could you please tell me exactly where you put the double quotes?&lt;/P&gt;&lt;P&gt;Did you have the /r parameter and EXCEL.EXE specified as the application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 12:59:34 GMT</pubDate>
    <dc:creator>sarahallen1</dc:creator>
    <dc:date>2012-05-21T12:59:34Z</dc:date>
    <item>
      <title>Problem with spaces in a filename - button action to open read-only in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360303#M575544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a qvw one field I have is [File].&amp;nbsp; This includes filenames like "ABC.xlsm" and "ABC 2.xlsm".&amp;nbsp; I have a button on my qvw to open the file indicated by your selections (the button has an enable condition so that it is only actionable when there is a single file based on your selections).&amp;nbsp; All the files are Excel files, and I want the button to open them as read-only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I had this solved: I was using the following settings for the button action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Launch&lt;/P&gt;&lt;P&gt;Application:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEL.EXE&lt;/P&gt;&lt;P&gt;Filename:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =' /r \\server\folder\'&amp;nbsp; &amp;amp; Only(File)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... where \\server\folder\ is obviously the file location, and Only(File) returns the filename.&amp;nbsp;&amp;nbsp; The /r bit specifies read-only.&amp;nbsp; The settings are shown in the picture below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT I have just realised the button isn't working as intended where there is a space in the filename.&amp;nbsp; So it works for "ABC.xlsm" but not for "ABC 2.xlsm".&amp;nbsp; With "ABC 2.xlsm", it tries to open 2 files in Excel, "ABC" and "2": i.e. it treats the space in the filename as some sort of list delimiter.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anybody have any suggestions?&amp;nbsp; I have already tried a few things, none with any success:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use " " double quotes (this doesn't work as QV thinks it's a bad field name)&lt;/LI&gt;&lt;LI&gt;Use [ ] square brackets around the filename (then it just thinks one file is called "[ABC" and the other is called "2.xlsm")&lt;/LI&gt;&lt;LI&gt;Not specifying EXCEL.EXE as the application, and just entering the filepath in "Application" rather than "Filename".&amp;nbsp; This works if I just put in&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '\\server\folder\'&amp;nbsp; &amp;amp; Only(File)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as the Application: i.e. it does work opening files with spaces in, such as ABC 2.xlsm.&amp;nbsp; However, I can't get the syntax to work with the read-only parameter /r.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately changing the filenames to exclude spaces is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sarah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="14528" alt="button action - read-only in excel.JPG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/14528_button+action+-+read-only+in+excel.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 09:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360303#M575544</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2012-05-21T09:45:26Z</dc:date>
    </item>
    <item>
      <title>Problem with spaces in a filename - button action to open read-only in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360304#M575545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me it worked to ensure that the filename with spaces is enclosed with double quotes (""). I did not try if it works with dynamic created filenames&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthijs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 12:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360304#M575545</guid>
      <dc:creator />
      <dc:date>2012-05-21T12:56:45Z</dc:date>
    </item>
    <item>
      <title>Problem with spaces in a filename - button action to open read-only in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360305#M575546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matthijs.&amp;nbsp; Could you please tell me exactly where you put the double quotes?&lt;/P&gt;&lt;P&gt;Did you have the /r parameter and EXCEL.EXE specified as the application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 12:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360305#M575546</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2012-05-21T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with spaces in a filename - button action to open read-only in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360306#M575548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Hi sarahallen,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;In the application box I also placed EXCEL.EXE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;In the filename box I placed something like to quickly try it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;"C:\Documents and Settings\User\Dashboard Example.xlsx"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;I also tried the option with variable path name. For this I created three variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 10pt; color: #000000;"&gt;vPath = \\server\folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vFile = File.xlsx&lt;/P&gt;&lt;P&gt;vPathFile = = '"' &amp;amp; vPath &amp;amp;vFile &amp;amp;'"'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the filename box of the button I then placed the following text&lt;/P&gt;&lt;P&gt;= vPathFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the quickly created version with above solution. Note the variable vPathFile is not really required but handy for traceability of what QlikView is doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update 22-5:&lt;/P&gt;&lt;P&gt;I have also been able to pass through read only command, you need to place '/r' in the parameters input box. [Note: this command is not included in the attached qvw]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthijs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 16:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360306#M575548</guid>
      <dc:creator />
      <dc:date>2012-05-21T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with spaces in a filename - button action to open read-only in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360307#M575550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthijs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I took so long to get back to you.&amp;nbsp; I've just tried out your solution (been a busy few months!!!) and it works really well (see settings below).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22792" class="jive-image-thumbnail jive-image" onclick="" alt="OpenInExcel.PNG" src="https://community.qlik.com/legacyfs/online/22792_OpenInExcel.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-spaces-in-a-filename-button-action-to-open-read/m-p/360307#M575550</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2012-10-02T11:01:04Z</dc:date>
    </item>
  </channel>
</rss>

