<?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: Macro to create folder from Ajax Accesspoint in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1846311#M1215466</link>
    <description>&lt;P&gt;Thanks you for responding Marcus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I figured I need some sort of server side macro. To export the chart I used&amp;nbsp;ServerSideExport which worked well. Do have any idea on where I can find more&amp;nbsp; info on the macro that I require?&lt;/P&gt;&lt;P&gt;Currently my company does not mind the user creating the folde. So the appropriate access will be given.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 16:02:01 GMT</pubDate>
    <dc:creator>VivenReddy</dc:creator>
    <dc:date>2021-10-13T16:02:01Z</dc:date>
    <item>
      <title>Macro to create folder from Ajax Accesspoint</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1845831#M1215459</link>
      <description>&lt;P&gt;I've searched the community forums and I'm unable to get clarity on this issue.&lt;/P&gt;&lt;P&gt;I need a macro that will create a folder when the user presses a button.&amp;nbsp; I have been able to get this to work in Qlikview Desktop but I need it to work from Ajax accesspoint.&lt;/P&gt;&lt;P&gt;Here is the macro that I'm using:&lt;/P&gt;&lt;P&gt;sub createFolder&lt;BR /&gt;set Var = ActiveDocument.GetVariable("vUserReportFolder")&lt;BR /&gt;newfolderpath = Var.GetContent.String&lt;BR /&gt;set filesys = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;If Not filesys.FolderExists(newfolderpath) Then&lt;BR /&gt;Set newfolder = filesys.CreateFolder(newfolderpath)&lt;BR /&gt;rem msgbox("A new folder has been created: " &amp;amp; newfolderpath)&lt;BR /&gt;End If&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;In the QMC, I have enabled macro execution and unsafe macro execution in security settings.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 22:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1845831#M1215459</guid>
      <dc:creator>VivenReddy</dc:creator>
      <dc:date>2021-10-12T22:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create folder from Ajax Accesspoint</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1845997#M1215464</link>
      <description>&lt;P&gt;With normal macros it won't be possible. It might be possible with server-side macros. I never used them - just know that there is such a feature. If this kind of action is really supported it would require that the machine on which the server runs and the server-user have the appropriate access rights to the wanted target. I rather doubt that this is case&amp;nbsp; respectively that your company want to allow it ...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 08:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1845997#M1215464</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-13T08:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create folder from Ajax Accesspoint</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1846311#M1215466</link>
      <description>&lt;P&gt;Thanks you for responding Marcus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I figured I need some sort of server side macro. To export the chart I used&amp;nbsp;ServerSideExport which worked well. Do have any idea on where I can find more&amp;nbsp; info on the macro that I require?&lt;/P&gt;&lt;P&gt;Currently my company does not mind the user creating the folde. So the appropriate access will be given.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 16:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1846311#M1215466</guid>
      <dc:creator>VivenReddy</dc:creator>
      <dc:date>2021-10-13T16:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create folder from Ajax Accesspoint</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1846336#M1215468</link>
      <description>&lt;P&gt;I must admit that I have some doubts that you could directly create the folder with the AJAX client even with server-side macros.&lt;/P&gt;&lt;P&gt;It's not quite clear for me what would be the real benefit that users could create a folder through QlikView instead of doing it directly within the explorer. Such a tasks might be also simplified with some links/batches on the user-side.&lt;/P&gt;&lt;P&gt;Nevertheless you might consider some workaround like storing the object within a default-folder on the server and including the path-information within the file-name and each n minutes a windows-tasks checked this folder and move this file to the wanted destination by creating the folder if needed and removing the path-information from the file-name again.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 17:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-folder-from-Ajax-Accesspoint/m-p/1846336#M1215468</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-13T17:06:04Z</dc:date>
    </item>
  </channel>
</rss>

