<?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: Subfield issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914120#M652242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's not the length of the string, but the quoting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered instead of using concat() / subfield() to just peek() the TABLE_NAME from Temp_Tables in your loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 12:05:03 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-24T12:05:03Z</dc:date>
    <item>
      <title>Subfield issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914118#M652240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I try to use following script, but it return issue. Subfield function doesn't work, it seems that string is too long. Did somebody had similar problem. Please advise how you resolve it &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(vFile)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; // Read list of sheets&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Temp_Tables:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sqltables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Temp1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD Concat(DISTINCT &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;TABLE_NAME, '|') as Concat,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count&lt;STRONG style="font-style: inherit;"&gt;(DISTINCT &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;TABLE_NAME) as Count&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Temp_Tables;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LET vConcat = Chr(39) &amp;amp; Peek('Concat') &amp;amp; Chr(39);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LET vCount = Peek('Count');&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DROP Tables Temp1, &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Temp_Tables;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; // Get just the file name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; let vFileName = mid(vFile, index(vFile, '\', -1) + 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; // Enumerate sheets&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; for iSheet = 1 to $(vCount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; let vSheetName = SubField($(vConcat), '|', $(iSheet));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; let vSheetName = replace(replace(replace(vSheetName, chr(39), ''), chr(36),''),'#','.')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Script line error:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vSheetName = &lt;STRONG&gt;SubField &lt;/STRONG&gt;(''BA Detail$'FilterDatabase|'BA Detail$'Print_Titles|'BA Summary$'Print_Titles|'F16 Detail$'|'F16 Detail$'FilterDatabase|'F16 Detail$'Print_Titles|'F16 Summary$'|'F16 Summary$'Print_Titles|'Prior Detail$'FilterDatabase|'Prior Detail$'Print_Titles|'SPIN Data$'FilterDatabase|'Total Recap$'FilterDatabase|'Total Recap$'Print_Area|'Total Recap$'Print_Titles', '|', 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 11:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914118#M652240</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-07-24T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914119#M652241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The apostrophes are problematic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914119#M652241</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-07-24T12:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914120#M652242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's not the length of the string, but the quoting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered instead of using concat() / subfield() to just peek() the TABLE_NAME from Temp_Tables in your loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914120#M652242</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-24T12:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914121#M652243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added replace function, but it still not works&lt;/P&gt;&lt;P&gt;Replace(Concat(DISTINCT TABLE_NAME, '|'),chr(39),'') &lt;STRONG style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;as Concat&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 14:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914121#M652243</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-07-24T14:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914122#M652244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried do this, but had the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 14:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-issue/m-p/914122#M652244</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-07-24T14:17:31Z</dc:date>
    </item>
  </channel>
</rss>

