Ejemplo n.º 1
0
        public void PI_Init(int nToolID, AlteryxRecordInfoNet.EngineInterface engineInterface, XmlElement pXmlProperties)
        {
            engine = engineInterface;
            toolId = nToolID;
            output = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(nToolID, engineInterface);
            config = pXmlProperties["Configuration"];

            mdx        = config["mdx"]?.InnerText ?? "";
            dataSource = config["dataSource"]?.InnerText ?? "";
            catalog    = config["catalog"]?.InnerText ?? "";
        }
        // Called by Alteryx to initlialize the plugin with configuration info.
        public void PI_Init(int nToolID, AlteryxRecordInfoNet.EngineInterface engineInterface, System.Xml.XmlElement pXmlProperties)
        {
            // Save the incoming information.
            m_nToolId         = nToolID;
            m_engineInterface = engineInterface;
            m_xmlProperties   = pXmlProperties;

            // Create our PluginOutputConnectionHelper that will be used to manage
            // any outgoing connections.
            m_outputHelper           = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(m_nToolId, m_engineInterface);
            m_attachmentOutputHelper = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(m_nToolId, m_engineInterface);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Called by Alteryx to initialize the plug in with configuration info.
        /// </summary>
        /// <param name="nToolId">Tool ID</param>
        /// <param name="engineInterface">Connection to Alteryx Engine (for logging and so on).</param>
        /// <param name="pXmlProperties">Configuration details</param>
        public void PI_Init(int nToolId, AlteryxRecordInfoNet.EngineInterface engineInterface, XmlElement pXmlProperties)
        {
            this.NToolId = nToolId;
            this.Engine  = engineInterface;

            this.XmlConfig = pXmlProperties;

            foreach (var kvp in this._outputs)
            {
                kvp.Value.SetValue(this, new OutputHelper(this, kvp.Key), null);
            }

            this.DebugMessage("PI_Init Called");
        }