<?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: Get value of textbox/textarea in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416694#M8720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Mathias! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to catch the event when something is entered in the specific textbox? For example, I want to enter the name of the displayed button in this textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Todor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 13:20:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-28T13:20:18Z</dc:date>
    <item>
      <title>Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416687#M8713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with getting the value of the textarea of my extension. I am trying with jquery but it doesn't work: &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;console.log($(props.items.appearance.items.myButton).val());&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Todor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416687#M8713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416688#M8714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Todor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(...)" is usually expecting an jQuery selector like: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$('#myButton') --&amp;gt; returns the html element with the id "myButton" (e.g. &amp;lt;button id="myButton"&amp;gt;Button-Text&amp;lt;/button&amp;gt; or &amp;lt;div id="myButton"&amp;gt;&amp;lt;/div&amp;gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;What you probably want is just: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;console.log(props.items.appearance.items.myButton)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you want to look inside the properties-structure you can also just do a: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;console.log(props) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a better understanding check out the section about custom properties in the Qlik Sense documentation (&lt;A href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/Extensions/Content/extensions-add-custom-properties.htm" title="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/Extensions/Content/extensions-add-custom-properties.htm"&gt;Adding custom properties ‒ Qlik Sense&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416688#M8714</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2017-09-26T13:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416689#M8715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My example might be a bit misleading.. because I want to get the value of my textbox/textarea.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177750_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This text ("dasdasd") i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I have searched the help but couldn't find a solution ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416689#M8715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T13:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416690#M8716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try my suggestions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post your stripped down extension code I'm probably able to help you better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416690#M8716</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2017-09-26T14:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416691#M8717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is an example of my extension with your solution. &lt;BR /&gt;P.S.: I dont want to get the default value but the value from the user input&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 15:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416691#M8717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416692#M8718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I don't really know why but the layout property is not assigned to the $scope, but rather to the $scope.$parent property &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you replace your controller with the the following code you'll see an object containing properties like "layout", "component", "backendApi" etc. in the console:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15064393305532405 jive_text_macro" jivemacro_uid="_15064393305532405" modifiedtitle="true"&gt;
&lt;P&gt;controller: ['$scope', function ($scope) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myExtScope = $scope.$parent;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(myExtScope);&lt;/P&gt;
&lt;P&gt;}]&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The path to your property-value will then be: &lt;STRONG&gt;myExtScope.layout.props.buttonName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(because you set the "ref" property inside the property.js myButton variable to "props.buttonName")&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I think there's something wrong though because Qlik documentation states:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; background-color: #f4f4f4;"&gt;Add &lt;/SPAN&gt;&lt;SPAN class="syntax" style="background-color: #f4f4f4; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;console.log('layout', $scope.layout);&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; background-color: #f4f4f4;"&gt; into your controller to help you find all the properties." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;which is (surprisingly) wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 15:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416692#M8718</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2017-09-26T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416693#M8719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works perfectly. Thanks Mathias!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 06:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416693#M8719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-27T06:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416694#M8720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Mathias! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to catch the event when something is entered in the specific textbox? For example, I want to enter the name of the displayed button in this textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Todor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416694#M8720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of textbox/textarea</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416695#M8721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to subscribe to the change event of a specific property (other than finding the textbox via a jQuery selector) but you can use the Validated Event for your extension:&lt;/P&gt;&lt;H4 style="margin-top: 10px; margin-bottom: 10px; font-size: 1.143em; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif;"&gt;&lt;SPAN class="syntax" style="background-color: #f4f4f4; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;Validated&lt;/SPAN&gt;&lt;/H4&gt;&lt;P style="margin: 10px 0; font-size: 14px; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif;"&gt;Occurs if the data has been recalculated and new valid data is available.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1506610337557428" jivemacro_uid="_1506610337557428"&gt;
&lt;P&gt;myExtScope.component.model.Validated.bind( function () {&lt;/P&gt;
&lt;P&gt;console.info('new value', $scope.$parent.layout.props.buttonName);&lt;/P&gt;
&lt;P&gt;} );&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More on events can be found in the documentation: &lt;A href="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/Extensions/Content/extensions-angular-events.htm" title="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/Extensions/Content/extensions-angular-events.htm"&gt;AngularJS and events ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 14:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-value-of-textbox-textarea/m-p/1416695#M8721</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2017-09-28T14:53:20Z</dc:date>
    </item>
  </channel>
</rss>

