<?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>idea Re: Sub Routine Definitions in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/1745219#M3507</link>
    <description>&lt;P&gt;Great idea. We could use GitHub as the open source repo - which provides some control over pull request / merge approvals.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 16:27:45 GMT</pubDate>
    <dc:creator>AndrewMcIlwrick</dc:creator>
    <dc:date>2020-09-18T16:27:45Z</dc:date>
    <item>
      <title>Sub Routine Definitions</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idi-p/1745000</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;Let's make Qlik Sense "open source". Let's create reusable functions that can be shared with one another! This wouldn't be difficult to implement... Let me explain:&lt;/P&gt;
&lt;P&gt;I find myself reusing logic for different tables or fields, and this is cumbersome and inefficient. So I thought, "why don't I create a dynamic script that will carry out the logic I need and just enter in the necessary parameters (using subroutines and calling the function)". But this is only helpful for me as I know how to use the subroutine. What if we could add a definition/tooltip on a subroutine so that when a user types "call function_xyz", it presents the user with the tooltip, much like the standard Qlik functions that show a narrative and includes the syntax like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN class="statement"&gt;Date#(&lt;/SPAN&gt;&lt;SPAN&gt;text[, format]&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement"&gt;This means we could create our own logic in qvs files and share with the community, saving time and money.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement"&gt;Some examples of where I have implemented dynamic subroutines:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement"&gt;1. make_ytd() - creates YTD, LTD, rolling 3 month, rolling 12 month fields in a table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement"&gt;2. standardize_nulls() - Standardizing empty values in a table with "null()" - the reason for this, is sometimes the value can be an empty string, '', or null() or just doesn't have a value altogether, so this standardizes all the field values with a length of 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement"&gt;3. set_country() - (This is one specific to one of my clients). It converts the country field in a table to user-friendly values, eg. 'South Africa', 'Kenya'. Again, this is dynamic. All 3 examples work with different table names, different field names etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="statement"&gt;Hopefully, we can get this functionality as it'll mean we can share our scripts, and anyone can pick it up and start using it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your time&lt;/P&gt;
&lt;P&gt;Kingsley&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 08:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idi-p/1745000</guid>
      <dc:creator>KingsleyJH</dc:creator>
      <dc:date>2020-11-25T08:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sub Routine Definitions</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/1745219#M3507</link>
      <description>&lt;P&gt;Great idea. We could use GitHub as the open source repo - which provides some control over pull request / merge approvals.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/1745219#M3507</guid>
      <dc:creator>AndrewMcIlwrick</dc:creator>
      <dc:date>2020-09-18T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sub Routine Definitions - Status changed to: Open - Collecting Feedback</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/1831299#M7123</link>
      <description />
      <pubDate>Thu, 26 Aug 2021 08:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/1831299#M7123</guid>
      <dc:creator>Ian_Crosland</dc:creator>
      <dc:date>2021-08-26T08:50:57Z</dc:date>
    </item>
    <item>
      <title>From now on, please track this idea from the Ideation por...</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/2101521#M14760</link>
      <description>&lt;P&gt;From now on, please track this idea from the Ideation portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Link to new idea" href="https://ideation.qlik.com/app/#/case/274710" target="_blank" rel="noopener"&gt;Link to new idea&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Meghann&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you &lt;STRONG&gt;only&lt;/STRONG&gt; see 1 tab with the login page, please try clicking this link first: &lt;STRONG&gt;&lt;A title="Authenticate me!" href="#" target="_blank" rel="noopener"&gt;Authenticate me!&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;t&lt;/EM&gt;&lt;EM&gt;hen try the link above again. Ensure pop-up blocker is off.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 16:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/2101521#M14760</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2023-08-02T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sub Routine Definitions - Status changed to: Closed - Archived</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/2101522#M14761</link>
      <description />
      <pubDate>Wed, 02 Aug 2023 16:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Sub-Routine-Definitions/idc-p/2101522#M14761</guid>
      <dc:creator>Ideation</dc:creator>
      <dc:date>2023-08-02T16:33:04Z</dc:date>
    </item>
  </channel>
</rss>

