<?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: Definition.xml - Text with type=select does not work? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728041#M1241021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution seems to work fine for me. At one point I had a problem where, after a reload of the page (F5), the properties page of the extension did show the default value of the drop down instead of the one that had been selected before hitting reload. &lt;/P&gt;&lt;P&gt;In our case we have been doing the development and testing in the ajax client, don't know if that matters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;-Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2014 06:39:02 GMT</pubDate>
    <dc:creator>celindho</dc:creator>
    <dc:date>2014-11-14T06:39:02Z</dc:date>
    <item>
      <title>Definition.xml - Text with type=select does not work?</title>
      <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728036#M1241007</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 just tried building an extension where one of the Text properties is defined as a drop down (Type=select). I have not defined a properties.qvpp but instead QlikView creates the DynProperties.qvpp page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this combination, it appears that the property this.Layout.Text0.text will always be empty in the javascript, regardless of what i select in the properties window of the extension. Have i stumbled upon a bug or how should i proceed to make a working drop down property in the extension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Definition.xml:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14133570164911038" jivemacro_uid="_14133570164911038"&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;ExtensionObject Label="Test" Description="Dropdown test"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Text Label="Target Type" Initial="high" Type="select" Select="high,low" SelectLabel="High,Low" /&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/ExtensionObject&amp;gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my script.js:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14133570164844010" jivemacro_uid="_14133570164844010"&gt;
&lt;P&gt;var template_path = Qva.Remote + "?public=only&amp;amp;name=Extensions/Test/";&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Qva.AddExtension('Test', function() {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this.Element.innerHTML = "&amp;lt;H1 style='text-align: center; color: #AB34F3;'&amp;gt;Placeholder&amp;lt;/H1&amp;gt;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this.Element.firstChild.innerText = this.Layout.Text0.text;&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extension always shows without any content, not "High" or "Low".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;-Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728036#M1241007</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Definition.xml - Text with type=select does not work?</title>
      <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728037#M1241009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't remember where I found this (probably somewhere on here) but I tried this myself and in order to get it to work I had to include the following in my script.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// This is needed so that we can retrieve and react to selections in the extension properties when using the select type&lt;/P&gt;&lt;P&gt;if (Qva.Mgr.mySelect == undefined) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qva.Mgr.mySelect = function (e, t, n, r) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!Qva.MgrSplit(this, n, r)) return;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.AddManager(this);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Element = t;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.ByValue = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.binderid = e.binderid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.Name = this.Name;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.onchange = Qva.Mgr.mySelect.OnChange;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.onclick = Qva.CancelBubble&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qva.Mgr.mySelect.OnChange = function () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var e = Qva.GetBinder(this.binderid);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!e.Enabled) return;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.selectedIndex &amp;lt; 0) return;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var t = this.options[this.selectedIndex];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Set(this.Name, "text", t.value, true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qva.Mgr.mySelect.prototype.Paint = function (e, t) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Touched = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var n = this.Element;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var r = t.getAttribute("value");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (r == null) r = "";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var i = n.options.length;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n.disabled = e != "e";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var s = 0; s &amp;lt; i; ++s) {&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; if (n.options&lt;S&gt;.value === r) {&lt;/S&gt;&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; n.selectedIndex = s&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; }&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n.style.display = Qva.MgrGetDisplayFromMode(this, e)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 12:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728037#M1241009</guid>
      <dc:creator />
      <dc:date>2014-10-24T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Definition.xml - Text with type=select does not work?</title>
      <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728038#M1241013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the thread where I found the answer I posted. It worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/53335"&gt;http://community.qlik.com/thread/53335&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 12:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728038#M1241013</guid>
      <dc:creator />
      <dc:date>2014-10-24T12:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Definition.xml - Text with type=select does not work?</title>
      <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728039#M1241017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got it working using this code&lt;/P&gt;&lt;P&gt;Seems like a bug in QlikView...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;-Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728039#M1241017</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2014-10-24T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Definition.xml - Text with type=select does not work?</title>
      <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728040#M1241019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this solution still working for you even after you hit F5? I also tried this but it seems only to work until you hit F5 to refresh the webview. After that I cant select a new value, it keeps the value selected before the F5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728040#M1241019</guid>
      <dc:creator />
      <dc:date>2014-11-12T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Definition.xml - Text with type=select does not work?</title>
      <link>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728041#M1241021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution seems to work fine for me. At one point I had a problem where, after a reload of the page (F5), the properties page of the extension did show the default value of the drop down instead of the one that had been selected before hitting reload. &lt;/P&gt;&lt;P&gt;In our case we have been doing the development and testing in the ajax client, don't know if that matters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;-Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 06:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Definition-xml-Text-with-type-select-does-not-work/m-p/728041#M1241021</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2014-11-14T06:39:02Z</dc:date>
    </item>
  </channel>
</rss>

