<?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: Problem in a dynamically adapting code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824608#M290482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made the first part. The fields are now all loaded normally, only the ALIAS_names are different:&lt;/P&gt;&lt;P&gt;- When there is an operating_hrs field, I need an alias_name that is shorter than the field_name (the user should be&lt;BR /&gt;&amp;nbsp;&amp;nbsp; able on the GUI to select which of all these fields are to be displayed)&lt;/P&gt;&lt;P&gt;- When there is some other field, the alias_name should still be 'dummy_[nr]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works now. Now I just have to modify the second loop to remove all the fields that are no longer required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 10:06:07 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-03-18T10:06:07Z</dc:date>
    <item>
      <title>Problem in a dynamically adapting code</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824605#M290479</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;I have a code loading a list which changes slightly every month:&lt;/P&gt;&lt;P&gt;- Starting from column 35 or so (counting from the left), there are columns for the total_operating_hrs;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; In March (now), there are 2 columns there - one for Jan, one for Feb&lt;BR /&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; In April, there will be one more for March&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... and so on till December.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather complex loop to generate&lt;/P&gt;&lt;P&gt;- a variable holding the field_name and&lt;/P&gt;&lt;P&gt;- a variable holding an alias_name&lt;/P&gt;&lt;P&gt;for every column from 35 to 44.&lt;/P&gt;&lt;P&gt;=&amp;gt; When there are no operating_hrs in the column (I check the field_names), then&lt;/P&gt;&lt;P&gt;- the variable for the field_name says "dummy_[nr.] and&lt;/P&gt;&lt;P&gt;- the variable for the alias_name says the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue now is this:&lt;/P&gt;&lt;P&gt;- When the field_name_variable says 'dummy_36' for instance, I can only load that when I put it in quotes as it is not a valid&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_name. There is an error_message if I don't use quotes.&lt;BR /&gt;&amp;nbsp; &amp;lt;=&amp;gt; When there is a valid field_name in that variable, it is still in quotes, so the LOAD will give me the field_name in every record instead of the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just thinking of maybe doing it another way altogether, but I'd be happy if there was a possible fix to this - I put a lot of work into first generating all the columns (up to the one where November will be) and then deleting the bogus ones again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 09:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824605#M290479</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-18T09:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a dynamically adapting code</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824606#M290480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you could load these data without embedded labels/fieldnames only as columns and used afterwards a rename-statement.&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, 18 Mar 2015 09:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824606#M290480</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-18T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a dynamically adapting code</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824607#M290481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes. I was thinking about something like that. I could use another loop afterwards to just delete the columns I don't need.&lt;/P&gt;&lt;P&gt;It doesn't seem to be possible to make QlikView use quotes in the LOAD only when the field_variable says 'dummy' and use [] otherwise (as the field_name contains BLANKs), I always get an expression_error when I try.&lt;/P&gt;&lt;P&gt;I will now try changing the strategy altogether and load it in another way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 09:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824607#M290481</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-18T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a dynamically adapting code</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824608#M290482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made the first part. The fields are now all loaded normally, only the ALIAS_names are different:&lt;/P&gt;&lt;P&gt;- When there is an operating_hrs field, I need an alias_name that is shorter than the field_name (the user should be&lt;BR /&gt;&amp;nbsp;&amp;nbsp; able on the GUI to select which of all these fields are to be displayed)&lt;/P&gt;&lt;P&gt;- When there is some other field, the alias_name should still be 'dummy_[nr]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works now. Now I just have to modify the second loop to remove all the fields that are no longer required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824608#M290482</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-18T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a dynamically adapting code</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824609#M290483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;cannot imagine your data,&lt;/P&gt;&lt;P&gt;would it be possible to upload just an example of the headerlines und underlying data?&lt;/P&gt;&lt;P&gt;Will this be generated from Excel? or csv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-dynamically-adapting-code/m-p/824609#M290483</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-18T10:13:54Z</dc:date>
    </item>
  </channel>
</rss>

