<?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: Replacing script field names using mapping table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467880#M174711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eduardo,&lt;/P&gt;&lt;P&gt;what i need to change are the fieldnames in the script, this is, all "contact" strings must be replaced by "member". Your solution is appropriate&amp;nbsp; if I still need to keep the "contact" string in my application. I have what you say, in the second step the loading fields start with "member" and i save the fieldnames like that as qvd. (this happens in one qv document). in a second one, i load data from the qvds and odbc connection directly, and the script does not work since the fields were changed.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 15:40:09 GMT</pubDate>
    <dc:creator>felcar2013</dc:creator>
    <dc:date>2013-02-25T15:40:09Z</dc:date>
    <item>
      <title>Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467876#M174707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;i have a big script and unfortunately we changed field names in the data base which affects my qvds and other parts of the script&lt;/P&gt;&lt;P&gt;I wanted to know, if it is possible to replace the Fieldname_1 with the fieldname_2 at once in all the script tabs with a do-while-loop statement. I was using the Find / Replace, but it is too manual and it is getting caothic. Besides, you see that i need not only to replace the first word "contact" with "member" but also, in some cases, the second part of the string, like in the &lt;/P&gt;&lt;P&gt;"contact_DummyCustomer" with "member_NonMember". Is there a "replace" function in the script that evaluates the current field, compare it and then based on the condition "replaces" it accordingly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapping table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33837" class="jive-image" alt="TABLE.png" src="https://community.qlik.com/legacyfs/online/33837_TABLE.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 12:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467876#M174707</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-25T12:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467877#M174708</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;The best way to organize this issue is dividing phased extraction data in your scripts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first step is only read information from the database files and then generate the QVD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second step is to read this information from the first step and realize their visions and tables facts. After generating a file QVD with the result of this information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third and final step is the generation of indicators. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a change of field names in your database, just the first step would be affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab_A:&lt;/P&gt;&lt;P&gt;LOAD contact_PeriodID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , contact_DummyCustomer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;SQL Select contact_PeriodID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contact_DummyCustomer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM data_base;&lt;/P&gt;&lt;P&gt;STORE * from Tab_A into Tab_a.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;After change in the database:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab_A&lt;/P&gt;&lt;P&gt;LOAD member_PeriodID AS contact_PeriodID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , member_NonMember AS contact_DummyCustomer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;SQL Select member_PeriodID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; member_NonMember&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM data_base;&lt;/P&gt;&lt;P&gt;STORE * from Tab_A into Tab_a.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following these steps greatly decreases the work to be done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 14:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467877#M174708</guid>
      <dc:creator />
      <dc:date>2013-02-25T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467878#M174709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;felcar2013&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can replace the fields names using a mapping table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;FieldMap:&lt;/P&gt;&lt;P class="Code"&gt;Mapping SQL SELECT oldnames, newnames FROM datadictionary;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Rename fields using FieldMap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file. Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467878#M174709</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2013-02-25T15:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467879#M174710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not know this command syntax. It will be very useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467879#M174710</guid>
      <dc:creator />
      <dc:date>2013-02-25T15:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467880#M174711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eduardo,&lt;/P&gt;&lt;P&gt;what i need to change are the fieldnames in the script, this is, all "contact" strings must be replaced by "member". Your solution is appropriate&amp;nbsp; if I still need to keep the "contact" string in my application. I have what you say, in the second step the loading fields start with "member" and i save the fieldnames like that as qvd. (this happens in one qv document). in a second one, i load data from the qvds and odbc connection directly, and the script does not work since the fields were changed.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467880#M174711</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-25T15:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467881#M174712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;i got something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field_ID, Field_1, Field_2&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, contact_PeriodID, member_PeriodID&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, contact_ID, member_ID&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, contact_CustomerNumber, member_CustomerNumber&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, contact_DummyCustomer, member_NonMember&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, contact_Gender, member_Gender&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, contact_Age, member_Age&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, contact_Age_group, member_Age_Group&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, contact_PostalCode, member_PostCode&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, contact_AdvertisingCountry, member_Advertising_Country &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and wanted to loop them, but i need to replace the old field column with the new one, which is a variable string.&lt;/P&gt;&lt;P&gt;why do you use Table1 and Table2? i cannot follow the logic behind it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 4&lt;BR /&gt;&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, D, E, F&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2, 4, 0&lt;BR /&gt;&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Rename&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;fields&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; FieldMap; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 16:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467881#M174712</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-25T16:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467882#M174713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;felcar2013&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1 and Table2 are the tables you want the field names replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All field names are replaced at once. You don't need to loop them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 16:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467882#M174713</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2013-02-25T16:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467883#M174714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Jeff&lt;/P&gt;&lt;P&gt;it means, if i have 40 tables, do i need to put them all?&lt;/P&gt;&lt;P&gt;in your example, what are the numbers? i do not see the new fields in the final tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467883#M174714</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-25T17:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467884#M174715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/felcar2013" id="jive-10800715192128030618527" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;felcar2013&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numbers are values of the fields I wanted to change the field names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467884#M174715</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2013-02-25T17:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467885#M174716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, now i understand, but it means, if i have more than 40 tables, in different script tabs, where should i locate the code? My script is not recognizing the fields when i load them from qvd files. These files have the right names, so i do not need to change anything there, but in the qv document where the script is located&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 18:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467885#M174716</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-25T18:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467886#M174717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/felcar2013" id="jive-10800715198923658291425" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;felcar2013&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to put the code "Rename fields using FieldMap" at the end of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields are only renamed after the code "Rename fields using FieldMap".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 19:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467886#M174717</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2013-02-25T19:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467887#M174718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;but it did not work. I need to a kind of "find/replace" function that goes through all tables and fieldnames in the script and replace the old fields with the new fields. This shall happen for 200 different field names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can just not execute the script without getting a lot of field name erros, since it loads from qvd files, which already have the new names, that were changed in the data source (sql database).&lt;/P&gt;&lt;P&gt;thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 10:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467887#M174718</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-26T10:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467888#M174719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you set a variable using SET and use this variable ? That way you only need to change the field once at the top of the script ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET field1 = "contact_periodID";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD $(field1)&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 10:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467888#M174719</guid>
      <dc:creator>devans_1</dc:creator>
      <dc:date>2013-02-26T10:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing script field names using mapping table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467889#M174720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the mapping solution with rename fields works when i load inline, not when i need to load from external data sources. Besides, it seems that the fields are changed in-memory, not in the script, what is what i need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David, i will see your option, even though i already changed everything manually &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; took some time, but i wanted to automate it and need to continue trying, since this will happen again,&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 18:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-script-field-names-using-mapping-table/m-p/467889#M174720</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-26T18:04:13Z</dc:date>
    </item>
  </channel>
</rss>

