<?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: External Source - Listbox HTML GUI SDK in Dev Space</title>
    <link>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/511430#M1105</link>
    <description>&lt;P&gt;MAN - I am in awe of you two - lots of catching up for me to do.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 12:59:04 GMT</pubDate>
    <dc:creator>SeanAdams</dc:creator>
    <dc:date>2020-01-09T12:59:04Z</dc:date>
    <item>
      <title>External Source - Listbox HTML GUI SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/325053#M696</link>
      <description>&lt;P&gt;Second question from me today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've previously created a HTML GUI tool which populates a dropdown using the meta-info from the macro input, and i've succesfully transferred this logic to work for a listbox; however, in this sitatuation, we want to use the option to get the data from an external source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone advise on how I could look to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At present my HTML&amp;nbsp; for the listbox selector looks like...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;      &amp;lt;section&amp;gt;
          &amp;lt;h2&amp;gt;XMSG("Select the field containing your task content")&amp;lt;/h2&amp;gt;
        &amp;lt;ayx data-ui-props='{type:"ListBox", widgetId:"TaskContent", searchable: true}' data-item-props='{dataName:"TaskContent", dataType:"FieldSelectorMulti"}'&amp;gt;&amp;lt;/ayx&amp;gt;
      &amp;lt;/section&amp;gt;&lt;/PRE&gt;&lt;P&gt;My understanding is that it's the data-item-props that forces the widget to pull data from the meta-info, but I'm not sure how I can amend this to work with an external source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:11:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/325053#M696</guid>
      <dc:creator>BenMoss</dc:creator>
      <dc:date>2018-11-09T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: External Source - Listbox HTML GUI SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/325089#M697</link>
      <description>&lt;P&gt;We're going deep today&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/5143"&gt;@BenMoss&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So clearly this help is conditional on you not winning the SNES :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create the data item in JavaScript and its got some warts...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the HTML do:&lt;/P&gt;&lt;PRE&gt;&amp;lt;ayx data-ui-props='{type:"ListBox", widgetId:"TaskContent", searchable: true}'&amp;gt;&amp;lt;/ayx&amp;gt;&lt;/PRE&gt;&lt;P&gt;Then within Alteryx.Gui.AfterLoad,&amp;nbsp;do something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;Alteryx.Gui.AfterLoad = function(manager, AlteryxDataItems) {&lt;BR /&gt;# ...&lt;BR /&gt;var fsm = new AlteryxDataItems.FieldSelectorMulti("TaskContent", { manager: manager } )&lt;BR /&gt;fsm.forceFieldInFieldList({strName: "James", strType: "Int16"})&lt;BR /&gt;manager.addDataItem(fsm)&lt;BR /&gt;manager.bindDataItemToWidget(fsm, "TaskContent")&lt;BR /&gt;#...&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does seem to add missing but isnt&amp;nbsp;far off what you need&lt;/P&gt;&lt;P&gt;You will need to amend the forceField bit to what you need&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:43:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/325089#M697</guid>
      <dc:creator>jdunkerley79</dc:creator>
      <dc:date>2018-11-09T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: External Source - Listbox HTML GUI SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/511430#M1105</link>
      <description>&lt;P&gt;MAN - I am in awe of you two - lots of catching up for me to do.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 12:59:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/External-Source-Listbox-HTML-GUI-SDK/m-p/511430#M1105</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2020-01-09T12:59:04Z</dc:date>
    </item>
  </channel>
</rss>

