<?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: How to create new objects dynamically from load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790751#M665204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not possible to do this without using a macro, but my question here would be why do you need to do this anyway?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be possible for you to create all the objects you need normally, and then if after your reload some are not needed, use conditional display conditions to hide those that are not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think if you go down the route of dynamic object creation, you're entering a rabbit hole where your application may get unnecessarily complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 15:38:34 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2015-01-14T15:38:34Z</dc:date>
    <item>
      <title>How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790747#M665200</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;IS it possible to create objects (buttons, filters and etc.) dynamically from a load script? without using a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790747#M665200</guid>
      <dc:creator />
      <dc:date>2015-01-14T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790748#M665201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi don't think so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun with QV,&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790748#M665201</guid>
      <dc:creator>francoiscave</dc:creator>
      <dc:date>2015-01-14T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790749#M665202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if I do use a macro?&lt;/P&gt;&lt;P&gt;what is a appropriate way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790749#M665202</guid>
      <dc:creator />
      <dc:date>2015-01-14T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790750#M665203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boris,&lt;/P&gt;&lt;P&gt;Use the macro is never the best solution...&lt;/P&gt;&lt;P&gt;Macro could be unsafe and failed security.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's go to design your objects &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790750#M665203</guid>
      <dc:creator>francoiscave</dc:creator>
      <dc:date>2015-01-14T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790751#M665204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not possible to do this without using a macro, but my question here would be why do you need to do this anyway?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be possible for you to create all the objects you need normally, and then if after your reload some are not needed, use conditional display conditions to hide those that are not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think if you go down the route of dynamic object creation, you're entering a rabbit hole where your application may get unnecessarily complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790751#M665204</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-01-14T15:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790752#M665205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We provide out customers a generic QV app with pre defined charts and filters which &lt;/P&gt;&lt;P&gt;reflect our generic product and thus its generic database structure which has predefined dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually different project have some customization in their project and they are adding more dimension to the database.&lt;/P&gt;&lt;P&gt;If they want this new dimension to be reflected in the same chart as other dimension we need it to be added dynamically when they add it to their database.&lt;/P&gt;&lt;P&gt; as most of the users are not QV developers we try to deliver a BI solution which won't require further developments. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 17:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790752#M665205</guid>
      <dc:creator />
      <dc:date>2015-01-14T17:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790753#M665206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding dimensions to a database doesn't guarantee that they are added in the QV application, unless the script is like&lt;/P&gt;&lt;P&gt;SELECT * FROM table;&lt;/P&gt;&lt;P&gt;And, using * is not a good idea for many reasons.&amp;nbsp; So, the must be somebody who modifies QV script.&amp;nbsp; And if you allow to modify script, it is much safer to allow them to modify front end objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790753#M665206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-14T18:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790754#M665207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot create objects in the load script even using a macro. Creating or manipulating objects using the API requires the ActiveDocument object which does not exist during script execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do significant "programmatic" customization by using variables and data references in your objects. The variables and data can be set by the script through logic and data loaded from external configuration files. As a trivial example, consider setting a "vCompanyName" variable that is used in Headings on sheets. Variables and data can be used to configure the visibility of objects as well as the details of the expressions and dimensions used in those objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a more pure programming approach, you can manipulate the files in the -prj directory to create and modify objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790754#M665207</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-14T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790755#M665208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the end user is a marketing/business user, he is not a QV developer, yet alone he is not scripting.&lt;/P&gt;&lt;P&gt;I'll add and say that he, as a user, doesn't have access to the QV server itslef, only to the Web application access point.&lt;/P&gt;&lt;P&gt;Each our product major version is accompanied with QV generic modules for this version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we allow each project to add UI changes and scripts by its own we won't be able to deliver changes, big ones or incremental.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790755#M665208</guid>
      <dc:creator />
      <dc:date>2015-01-14T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790756#M665209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Boris,&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Have you need some more help ?&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;If not, can you mark an answer as Correct or helpful to close this thread.&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;François&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 11:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790756#M665209</guid>
      <dc:creator>francoiscave</dc:creator>
      <dc:date>2015-01-15T11:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790757#M665210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is going to be using a macro to create and object and activating it with an action on a document open and then changing the value of a variable.&lt;/P&gt;&lt;P&gt;Do you know how to address a variabale from a macro script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 11:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790757#M665210</guid>
      <dc:creator />
      <dc:date>2015-01-15T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790758#M665211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can manage variables using the macro API. Is this an app that is meant to run in a server?&amp;nbsp; You should not manipulate object properties in server apps. Or are you planning to do the config in a desktop run and then move to the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 15:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790758#M665211</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-15T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790759#M665212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating UI objects based on the data in Internal Tables is perfectly possible with a macro triggered by the OnPostReload event. But this will only work in QV Desktop or the OCX component (plug-in).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check APIGuide.qvw for functions like&lt;SPAN style="font-family: 'courier new', courier;"&gt; CreateStraightTable&lt;/SPAN&gt;. It's gonna be a complex job, however...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To manipulate variables from your macro, you can use stuff like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ActiveDocument.Variables("VariableName").GetContent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ActiveDocument.Variables("VariableName").SetContent &lt;EM&gt;ContentData&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see the APIGuide.qvw document&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 17:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790759#M665212</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-15T17:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create new objects dynamically from load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790760#M665213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think you could handle this with Conditional Dimensions much easier than the macro API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 23:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-new-objects-dynamically-from-load-script/m-p/790760#M665213</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-15T23:22:03Z</dc:date>
    </item>
  </channel>
</rss>

