<?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: Variable Field Names in On-Demand App Generation (ODAG) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140291#M92707</link>
    <description>&lt;P&gt;Thank you for your quick response!&lt;/P&gt;
&lt;P&gt;So the only way to bind the template app is through a field, and I can't somehow replace the binding variable, right?&lt;/P&gt;
&lt;P&gt;In my case, I don't use ODAG but Dynamic Views. I understand that the design is the same.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 12:17:44 GMT</pubDate>
    <dc:creator>mary_papadopoulou</dc:creator>
    <dc:date>2023-11-22T12:17:44Z</dc:date>
    <item>
      <title>Variable Field Names in On-Demand App Generation (ODAG)</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/44168#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question regards ODAG, but may simply be a problem with my dollar-sign expansions.&lt;/P&gt;&lt;P&gt;I want to be able to create an ODAG application with field names that are pulled in from an external table. This means that I don't want to hardcode field names in the data load editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample ODAG application "Flight Data", has a few fields that are being used for selections, including "Origin Code". Here is a snippet of code in the "Flight Data Detail" app that shows how the odag variable is used to access the field selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET ORIGIN = ;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET ORIGIN = $(odso_Origin Code);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET ORIGIN_COLNAME='ORIGIN';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Trace ORIGIN: $(ORIGIN);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Trace for this code looks like this (with a single selection on the Origin Code field):&lt;/P&gt;&lt;P&gt;ORIGIN: chr(39) &amp;amp; 'ABI' &amp;amp; chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is use a variable field name, which I could set based upon a table, instead of hard-coding $(odso_Origin Code).&lt;/P&gt;&lt;P&gt;So I imagine something like this.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Let fieldName = 'Origin Code';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Set ODSO = odso_$(fieldName);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Let ODSO2 = '$(ODSO)';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET ORIGIN2 = ;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET ORIGIN2 = $($(ODSO2));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET ORIGIN2_COLNAME='ORIGIN2';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Trace ORIGIN2: $(ORIGIN2);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;This isn't working and I've tried, many different variations of Sets and Lets, Dollar-sign expansions, string expressions that are later evaluated, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if the issue Qlik-General or ODAG specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 18:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/44168#M2965</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2018-06-18T18:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Field Names in On-Demand App Generation (ODAG)</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/44169#M2966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this is not possible. When an On Demand app is created it first replaces the $(odso_FIELD) before running the app; it is hard coded in the script. By generating the variable with the above code, the Template app won't see any bindings, and therefore not replace the Binding variable, with the appropriate values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2018 18:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/44169#M2966</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2018-09-22T18:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Field Names in On-Demand App Generation (ODAG)</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/44170#M2967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I pretty much figured, but this is unfortunate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/44170#M2967</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2018-09-24T20:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Field Names in On-Demand App Generation (ODAG)</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140251#M92700</link>
      <description>&lt;P&gt;Is there still the above limitation?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 11:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140251#M92700</guid>
      <dc:creator>mary_papadopoulou</dc:creator>
      <dc:date>2023-11-22T11:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Field Names in On-Demand App Generation (ODAG)</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140272#M92704</link>
      <description>&lt;P&gt;It´s not a limitation. It´s by design.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 11:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140272#M92704</guid>
      <dc:creator>PabloLabbeImaps</dc:creator>
      <dc:date>2023-11-22T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Field Names in On-Demand App Generation (ODAG)</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140291#M92707</link>
      <description>&lt;P&gt;Thank you for your quick response!&lt;/P&gt;
&lt;P&gt;So the only way to bind the template app is through a field, and I can't somehow replace the binding variable, right?&lt;/P&gt;
&lt;P&gt;In my case, I don't use ODAG but Dynamic Views. I understand that the design is the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 12:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Field-Names-in-On-Demand-App-Generation-ODAG/m-p/2140291#M92707</guid>
      <dc:creator>mary_papadopoulou</dc:creator>
      <dc:date>2023-11-22T12:17:44Z</dc:date>
    </item>
  </channel>
</rss>

