<?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 Creating a table based on Custom Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-table-based-on-Custom-Function/m-p/381980#M491187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom function i want to place in a certain table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping that the table would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users&lt;/P&gt;&lt;P&gt;v0001&lt;/P&gt;&lt;P&gt;v3002&lt;/P&gt;&lt;P&gt;v8003&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;v1039&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom function is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Function MainMember(X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strComputer = "cmhveyqlikview"&lt;BR /&gt;Set colGroups = GetObject("WinNT://" &amp;amp; strComputer &amp;amp; "")&lt;BR /&gt;colGroups.Filter = Array("group")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each objGroup In colGroups&lt;BR /&gt;if objGroup.Name = "QlikView Administrators" then&lt;BR /&gt;For Each objUser in objGroup.Members&lt;BR /&gt;MainMember=objUser.Name&lt;BR /&gt;Next&lt;BR /&gt;end if&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 15:53:48 GMT</pubDate>
    <dc:creator>Qvmaster2019</dc:creator>
    <dc:date>2012-08-29T15:53:48Z</dc:date>
    <item>
      <title>Creating a table based on Custom Function</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-table-based-on-Custom-Function/m-p/381980#M491187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom function i want to place in a certain table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping that the table would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users&lt;/P&gt;&lt;P&gt;v0001&lt;/P&gt;&lt;P&gt;v3002&lt;/P&gt;&lt;P&gt;v8003&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;v1039&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom function is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Function MainMember(X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strComputer = "cmhveyqlikview"&lt;BR /&gt;Set colGroups = GetObject("WinNT://" &amp;amp; strComputer &amp;amp; "")&lt;BR /&gt;colGroups.Filter = Array("group")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each objGroup In colGroups&lt;BR /&gt;if objGroup.Name = "QlikView Administrators" then&lt;BR /&gt;For Each objUser in objGroup.Members&lt;BR /&gt;MainMember=objUser.Name&lt;BR /&gt;Next&lt;BR /&gt;end if&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 15:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-table-based-on-Custom-Function/m-p/381980#M491187</guid>
      <dc:creator>Qvmaster2019</dc:creator>
      <dc:date>2012-08-29T15:53:48Z</dc:date>
    </item>
  </channel>
</rss>

