<?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: document trigger &amp;quot;onOpen&amp;quot; set Field with if-else in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759311#M1260787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the [] brackets inside the expression may be the problem. Try it without:&lt;/P&gt;&lt;P&gt;=[$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(%LANG = 'DE', 'Q-Gate-Typ_DE', 'Q-Gate-Typ_EN'))]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2014 14:32:21 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-11-17T14:32:21Z</dc:date>
    <item>
      <title>document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759304#M1260773</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;I have a Problem. I want to use the onOpen-Trigger to set a value in a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="openTrigger.png" class="jive-image" height="196" src="https://community.qlik.com/legacyfs/online/71423_openTrigger.png" style="width: 498.032786885246px; height: 196px;" width="498" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the select language i have to set different fields.&lt;/P&gt;&lt;P&gt;I want to reslove this problem with a if/else statement like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ifelse.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71424_ifelse.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No the Problem is, it doesn't work.&lt;/P&gt;&lt;P&gt;I've tried it with "=" and without one. But it was the same result &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759304#M1260773</guid>
      <dc:creator>phil-ebm</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759305#M1260775</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[$(=If(%LANG......._EN]))]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759305#M1260775</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-17T12:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759306#M1260778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is in %LANG, it is a field but which value is used in the opening moment?&lt;/P&gt;&lt;P&gt;If you select the field with a value use the getfield selection ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759306#M1260778</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-11-17T12:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759307#M1260780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answers, but it is still not working.&lt;/P&gt;&lt;P&gt;with the value i habe no problem but with the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i write only one Field without the if-statement it works but when i add the second field in the if-statement there is no reaction when I open the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 13:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759307#M1260780</guid>
      <dc:creator>phil-ebm</dc:creator>
      <dc:date>2014-11-17T13:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759308#M1260782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add '=' first in the Field expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, are you sure %LANG has either DE or EN selected &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;when the app is opened?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kristofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 13:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759308#M1260782</guid>
      <dc:creator>kristoferahlin</dc:creator>
      <dc:date>2014-11-17T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759309#M1260784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes i'm sure that DE or EN is selected onopen because i set DE as default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 13:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759309#M1260784</guid>
      <dc:creator>phil-ebm</dc:creator>
      <dc:date>2014-11-17T13:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759310#M1260785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One alternative might be to define a variable depending on the value in %LANG and use that variable in field expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vLang = =if(%LANG = 'DE', 'Q-Gate-Typ_DE', 'Q-Gate-Typ_EN')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then put =$(vLang) as Field expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you select a value in %LANG?&lt;/P&gt;&lt;P&gt;Selecting a value in %LANG and setting the Q-Gate-Typ_ fields at the same time as "on document open" tiggers migth be problematic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 14:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759310#M1260785</guid>
      <dc:creator>kristoferahlin</dc:creator>
      <dc:date>2014-11-17T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759311#M1260787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the [] brackets inside the expression may be the problem. Try it without:&lt;/P&gt;&lt;P&gt;=[$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(%LANG = 'DE', 'Q-Gate-Typ_DE', 'Q-Gate-Typ_EN'))]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 14:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759311#M1260787</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-17T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: document trigger "onOpen" set Field with if-else</title>
      <link>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759312#M1260788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your Users will be accessing it via the Accesspoint using the Ajax client, then do test a simple OnOpen Trigger in WebView mode or Ajax via the Accesspoint first to avoid disappointment later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 20:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/document-trigger-quot-onOpen-quot-set-Field-with-if-else/m-p/759312#M1260788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-17T20:05:05Z</dc:date>
    </item>
  </channel>
</rss>

