<?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 Connection with bAllowMultiple=true in Dev Space</title>
    <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/303514#M629</link>
    <description>&lt;P&gt;I want my custom component to have one input connector that can have multiple upstream components connected - like the Union tool.&lt;/P&gt;&lt;P&gt;I'm guessing that I do this by passing true for the bAllowMultiple parameter when I create a new Connection in IPlugin.GetInputConnections()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I tried this, but then in GetConfigurationControl() instead of the eIncomingMetaInfo being like:&lt;/P&gt;&lt;PRE&gt;&amp;lt;MetaInfo connection="Output"&amp;gt;
    &amp;lt;RecordInfo&amp;gt;
        &amp;lt;Field name="customer_id" size="254" ...  type="V_String" /&amp;gt;
        &amp;lt;Field name="first_name" size="254" ... type="V_String" /&amp;gt;
        &amp;lt;Field name="last_name" size="254" ... type="V_String" /&amp;gt;
        ...
   &amp;lt;/RecordInfo&amp;gt;
&amp;lt;/MetaInfo&amp;gt;&lt;/PRE&gt;&lt;P&gt;I just get:&lt;/P&gt;&lt;PRE&gt;&amp;lt;MultiMetaInfo&amp;gt;
    &amp;lt;MetaInfo name="#1" /&amp;gt;
&amp;lt;/MultiMetaInfo&amp;gt;&lt;/PRE&gt;&lt;P&gt;So, how do I get the RecordInfo? Shouldn't the MetaInfo node contain a RecordInfo node?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2018 08:26:49 GMT</pubDate>
    <dc:creator>360Andy</dc:creator>
    <dc:date>2018-09-19T08:26:49Z</dc:date>
    <item>
      <title>Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/303514#M629</link>
      <description>&lt;P&gt;I want my custom component to have one input connector that can have multiple upstream components connected - like the Union tool.&lt;/P&gt;&lt;P&gt;I'm guessing that I do this by passing true for the bAllowMultiple parameter when I create a new Connection in IPlugin.GetInputConnections()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I tried this, but then in GetConfigurationControl() instead of the eIncomingMetaInfo being like:&lt;/P&gt;&lt;PRE&gt;&amp;lt;MetaInfo connection="Output"&amp;gt;
    &amp;lt;RecordInfo&amp;gt;
        &amp;lt;Field name="customer_id" size="254" ...  type="V_String" /&amp;gt;
        &amp;lt;Field name="first_name" size="254" ... type="V_String" /&amp;gt;
        &amp;lt;Field name="last_name" size="254" ... type="V_String" /&amp;gt;
        ...
   &amp;lt;/RecordInfo&amp;gt;
&amp;lt;/MetaInfo&amp;gt;&lt;/PRE&gt;&lt;P&gt;I just get:&lt;/P&gt;&lt;PRE&gt;&amp;lt;MultiMetaInfo&amp;gt;
    &amp;lt;MetaInfo name="#1" /&amp;gt;
&amp;lt;/MultiMetaInfo&amp;gt;&lt;/PRE&gt;&lt;P&gt;So, how do I get the RecordInfo? Shouldn't the MetaInfo node contain a RecordInfo node?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 08:26:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/303514#M629</guid>
      <dc:creator>360Andy</dc:creator>
      <dc:date>2018-09-19T08:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/303970#M631</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3529"&gt;@TashaA&lt;/a&gt;&amp;nbsp;is there some documentation on this kind of thing somewhere? The documentation I have doesn't cover this.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:32:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/303970#M631</guid>
      <dc:creator>360Andy</dc:creator>
      <dc:date>2018-09-20T07:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/304700#M633</link>
      <description>&lt;P&gt;Adding&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1939"&gt;@BlytheE&lt;/a&gt;, our new Product Manager of Developer Tools!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 16:25:48 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/304700#M633</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2018-09-21T16:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/304871#M634</link>
      <description>&lt;P&gt;Are you using the Python SDK, the C# SDK, or the C++ SDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you write your ToolNameConfig.xml are you setting AllowMultiple to true there? i.e.&lt;/P&gt;&lt;PRE&gt;    &amp;lt;InputConnections&amp;gt;
      &amp;lt;Connection Name="Input" AllowMultiple="True" Optional="False" Type="Connection" Label="I"/&amp;gt;
    &amp;lt;/InputConnections&amp;gt;&lt;/PRE&gt;&lt;P&gt;There's an example Python SDK tool that does this that may help you. You can find it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/developer/current/Python/Examples.htm?tocpath=SDKs%7CBuild%20Custom%20Tools%7CPython%20SDK%7C_____6" target="_blank"&gt;https://help.alteryx.com/developer/current/Python/Examples.htm?tocpath=SDKs%7CBuild%20Custom%20Tools%7CPython%20SDK%7C_____6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that there is a defect on that page as of this posting--the single anchor multiple input download link points to a different example tool. That should be fixed for posterity, but for now you can download the relevant tool &lt;A href="http://help.alteryx.com/developer/SDKExamples/PythonSDK_SingleAnchorMultipleInputs_Example.yxi" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 21:52:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/304871#M634</guid>
      <dc:creator>MichaelCh</dc:creator>
      <dc:date>2018-09-21T21:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/309364#M656</link>
      <description>&lt;P&gt;Hi Michael, thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using C# for the UI and C++ for the engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I'm specifying true for AllowMultiple like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public Connection[] GetInputConnections()
{
	return new Connection[]
                { new Connection("Pairs", null, true, false, 'P') };
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to be working because after changing this to true I get &amp;lt;MultiMetaInfo&amp;gt; passed to GetConfigurationControl() rather than &amp;lt;MetaInfo&amp;gt;.&lt;/P&gt;&lt;P&gt;My problem is that the &amp;lt;MultiMetaInfo&amp;gt; doesn't contain any &amp;lt;RecordInfo&amp;gt;s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 14:30:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/309364#M656</guid>
      <dc:creator>360Andy</dc:creator>
      <dc:date>2018-10-08T14:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/327727#M700</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/7428"&gt;@MichaelCh&lt;/a&gt;, any idea how I get the &amp;lt;RecordInfo&amp;gt; with multiple inputs?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:44:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/327727#M700</guid>
      <dc:creator>360Andy</dc:creator>
      <dc:date>2018-11-14T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/327743#M702</link>
      <description>&lt;P&gt;I'm not familiar with the C# SDK; it sounds like it operates differently from the C++ and Python SDKs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would expect with the other SDKs is that for multiple inputs on my PI plugin, PI_AddIncomingConnection would be called once for each input. That method would have to return an II plugin. Then for each input, the II plugin would be called with II_Init containing the RecordInfo for that input.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:13:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/327743#M702</guid>
      <dc:creator>MichaelCh</dc:creator>
      <dc:date>2018-11-14T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/327766#M703</link>
      <description>&lt;P&gt;I'm using C++ for the engine and that is where the Plugin Interface methods, like PI_AddIncomingConnection(), are&amp;nbsp;implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm only using C# for the UI, where it implements the&amp;nbsp;IPluginConfiguration interface methods:&amp;nbsp;GetConfigurationControl() &amp;amp;&amp;nbsp;SaveResultsToXml().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using C++ for the engine and C# for the UI is how the SDK sample code that I copied works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is the IPluginConfiguration interface I'm having a problem with, not the Plugin Interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method GetConfigurationControl() is like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public Control GetConfigurationControl(AlteryxGuiToolkit.Document.Properties docProperties,
            XmlElement eConfig,
            XmlElement[] eIncomingMetaInfo,
            int nToolId,
            string strToolName)&lt;/PRE&gt;&lt;P&gt;The comment from the sample code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// This method is called by Alteryx to initialize this configuration control from data&lt;BR /&gt;// stored in the module containing this tool.&lt;/P&gt;&lt;P&gt;// Tool configuration is handled through an XML document managed by Alteryx. When it is&lt;BR /&gt;// time to initialize this control (generally when it is made visible to the user), this&lt;BR /&gt;// method is called, passing the XML document in with the eConfig parameter.&lt;/P&gt;&lt;P&gt;// When this tool is connected to one or more upstream data providers, the structure of&lt;BR /&gt;// each data stream is passed as an entry in the eIncomingMetaInfo array. This data can&lt;BR /&gt;// then be used to dynamically construct your UI based on the type of input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key thing being "&lt;SPAN&gt;the structure of &lt;/SPAN&gt;&lt;SPAN&gt;each data stream is passed as an entry in the eIncomingMetaInfo array&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;But when AllowMultiple is true, the&amp;nbsp;&lt;SPAN&gt;eIncomingMetaInfo array does not contain the structure of the upstream data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:42:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/327766#M703</guid>
      <dc:creator>360Andy</dc:creator>
      <dc:date>2018-11-14T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connection with bAllowMultiple=true</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/341954#M720</link>
      <description>&lt;P&gt;I know nothing about the C# UI SDK unfortunately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a reason to continue to use it rather than the HTML UI SDK?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 23:31:37 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Connection-with-bAllowMultiple-true/m-p/341954#M720</guid>
      <dc:creator>MichaelCh</dc:creator>
      <dc:date>2018-12-12T23:31:37Z</dc:date>
    </item>
  </channel>
</rss>

