<?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: Function on JS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939661#M324169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You go to the Tools / Edit Module (CTRL+M) to get into the Macro Editor. There you need to select JScript as the Macro Language. JScript is the Microsoft JScript engine that powers all versions of Internet Explorer and is Microsofts version of Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have written one or more Javascript functions they will be available in the load script just as any other built-in function in QlikView. So for instance if you make a Macro that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function myFirstJSfunc() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return( 123 );&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go into your load script at write something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET giveMe123 = myFirstJSfunc();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 19:02:48 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-11-04T19:02:48Z</dc:date>
    <item>
      <title>Function on JS</title>
      <link>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939659#M324167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I encountered with issue about Javascript, maybe someone could help me.&lt;/P&gt;&lt;P&gt;I want to create function on JavaScript and then call it in the script. Could you tell me where I should put it? and What should I do to make it work?&lt;/P&gt;&lt;P&gt;Thanks, Alex &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939659#M324167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-04T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function on JS</title>
      <link>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939660#M324168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Under the Tools, click on "Edit Module":&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103951_Capture.PNG" style="height: 682px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I believe you can enter VBScript or JScript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939660#M324168</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-11-04T18:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function on JS</title>
      <link>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939661#M324169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You go to the Tools / Edit Module (CTRL+M) to get into the Macro Editor. There you need to select JScript as the Macro Language. JScript is the Microsoft JScript engine that powers all versions of Internet Explorer and is Microsofts version of Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have written one or more Javascript functions they will be available in the load script just as any other built-in function in QlikView. So for instance if you make a Macro that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function myFirstJSfunc() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return( 123 );&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go into your load script at write something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET giveMe123 = myFirstJSfunc();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939661#M324169</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-11-04T19:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function on JS</title>
      <link>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939662#M324170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works, t&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;hank you Petter!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;regards Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-on-JS/m-p/939662#M324170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-04T19:18:29Z</dc:date>
    </item>
  </channel>
</rss>

