<?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 GetText from TextBox via Javascript API in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278373#M1236083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that works and it makes sense I must say. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;That's why I could not find textObject on the API!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 09:20:59 GMT</pubDate>
    <dc:creator>tduarte</dc:creator>
    <dc:date>2011-11-09T09:20:59Z</dc:date>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278368#M1236070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to retreive the Value of an TextBox via the Ajax API...&lt;/P&gt;&lt;P&gt;Refering to the AjaxAPI documentation there is a method called GetText()...&lt;/P&gt;&lt;P&gt;I tried this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var myObj = qva.GetQvObject("TX21");&amp;nbsp;&amp;nbsp; //it's a TextBox Object&lt;/P&gt;&lt;P&gt;var text = myObj.GetText();&lt;/P&gt;&lt;P&gt;alert("text");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I'm getting an Error, saying that myObj.GetText is not a function.&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;pat&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/GetText-from-TextBox-via-Javascript-API/m-p/278368#M1236070</guid>
      <dc:creator />
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278369#M1236072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason you are getting the error is because QlikView Ajax Public API is not implemented until the GetQvObject() has executed it's onUpdate function.&amp;nbsp; The onUpdate function is the second parameter that can be used by the GetQvObject function which is where you need to make your call.&amp;nbsp; You can call the on update function like so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var text;&lt;/P&gt;&lt;P&gt;var myObj = qva.GetQvObject("TX21", function () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text = textObject.QvaPublic.GetText();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("the text value is: " + text;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---- Another way to look at it... ----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var text;&lt;/P&gt;&lt;P&gt;function onUpdate() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text = textObject.QvaPublic.GetText();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(text); // you should see the text.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var myObj = qva.GetQvObject("TX21", onUpdate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// notice that any references to text immediately after this are null and undefined. This is because the onUpdate callback function has not been executed yet...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alert(textObject.QvaPublic.GetText()); // the value of QvaPublic is "undefefined"&lt;/P&gt;&lt;P&gt;alert(text); // the value of text here is null &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 15:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278369#M1236072</guid>
      <dc:creator />
      <dc:date>2011-08-18T15:40:15Z</dc:date>
    </item>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278370#M1236076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks for this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 09:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278370#M1236076</guid>
      <dc:creator />
      <dc:date>2011-08-19T09:55:24Z</dc:date>
    </item>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278371#M1236079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the code above to also return the context of a textbox but it's not working.&lt;/P&gt;&lt;P&gt;I'm getting the following error on the brower degub console: "textObject is not defined"&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Telmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 18:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278371#M1236079</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2011-11-08T18:55:00Z</dc:date>
    </item>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278372#M1236081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oops... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myObj should be textObject... correction below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;var text;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;var textObject = qva.GetQvObject("TX21", function () {&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text = textObject.QvaPublic.GetText();&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("the text value is: " + text;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 18:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278372#M1236081</guid>
      <dc:creator />
      <dc:date>2011-11-08T18:58:53Z</dc:date>
    </item>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278373#M1236083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that works and it makes sense I must say. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;That's why I could not find textObject on the API!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 09:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278373#M1236083</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2011-11-09T09:20:59Z</dc:date>
    </item>
    <item>
      <title>GetText from TextBox via Javascript API</title>
      <link>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278374#M1236085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way we can store the text in the variable without doing it within textObject so that we can use it in another function for example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 16:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetText-from-TextBox-via-Javascript-API/m-p/278374#M1236085</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2011-11-15T16:44:17Z</dc:date>
    </item>
  </channel>
</rss>

