<?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: Custom Connector Troubles in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663128#M7907</link>
    <description>&lt;P&gt;Did you define the table and the fields in the Init() method? Or are you trying to define the table on the fly?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2020 01:33:55 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2020-01-07T01:33:55Z</dc:date>
    <item>
      <title>Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662245#M7901</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Hoping someone here can help me out. I have been creating a custom connector based off of the "simple" example that's been provided by Qlik.&lt;/P&gt;&lt;P&gt;Most of it is done, I'm just getting hung up on one thing:&lt;/P&gt;&lt;P&gt;I can't pass data from my Server file to my Connection file. In other words, I have chosen a couple of items during the Selection screen that I need to access when I press the Load Data button, but I have no way of being able to do that from what I can tell.&lt;/P&gt;&lt;P&gt;The reason I need to do this is that the actual Loading of the data needs to be dynamic based on a couple of internal values that are found, not just the table name, as it's not really a table that I'm reaching out to.&lt;/P&gt;&lt;P&gt;Even if there's just a way within my C# code to access the text that's on the QlikView Editor, that'd allow me to get what I need from here. But right now, in the Connection file, during the Init() method, I cannot find any way to access any internal information about the connection that I'm using.&lt;/P&gt;&lt;P&gt;If someone can help, that would be awesome, or if anyone needs more information, I'll try to provide it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 18:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662245#M7901</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2021-12-15T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662256#M7902</link>
      <description>&lt;P&gt;The connection string is the communication between your connection edit dialog and the connector.&amp;nbsp; Any parameters you set in the edit dialog must be saved in the connection string as key=value pairs.&amp;nbsp; Those items will then be available in the Init() method via QvxConnection.MParameters. Init() will get called when a CONNECT statement is executed in the script.&lt;/P&gt;&lt;P&gt;During execution, each SELECT statement will be passed to the&amp;nbsp;ExtractQuery() method. You can override this method and interrogate the SELECT statement to capture any specifics you need from the statement.&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662256#M7902</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-03T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662257#M7903</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this. I will take a look at this and see if I can get it to work.&lt;/P&gt;&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 21:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662257#M7903</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-02T21:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662830#M7904</link>
      <description>&lt;P&gt;Hello. Sorry for jumping in. I've a question. You mention your custom connector is based on the simple example provided by Qlik. Which one do you mean? I'm making a custom connector and hang on the part where the json handler is called in the example. Do you have this item, if not, how do you communicate from the web files to a function in the c# files?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 09:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1662830#M7904</guid>
      <dc:creator>Edgar_Koster</dc:creator>
      <dc:date>2020-01-06T09:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663079#M7905</link>
      <description>&lt;P&gt;This is working great. While I'm not finished yet, I believe this will get me across the finish line. Thank you very much for your help&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 19:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663079#M7905</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-06T19:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663105#M7906</link>
      <description>&lt;P&gt;I spoke too soon&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;I tried to bypass the custom connection string thing and I think it might have kicked me in the butt.&lt;/P&gt;&lt;P&gt;Where I'm at: I'm loading tables/fields in the SelectDialog just fine. Connection created at this point.&lt;/P&gt;&lt;P&gt;When I have a table selected from the above, with x number of fields, and go to Load Data, I keep getting an error that the Table cannot be found.&lt;/P&gt;&lt;P&gt;I'm worried that even though the Query is coming through in ExtractQuery, that there's something missing that's preventing the Table from being found.&lt;/P&gt;&lt;P&gt;I hope that makes sense and you can still help me out.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 21:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663105#M7906</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-06T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663128#M7907</link>
      <description>&lt;P&gt;Did you define the table and the fields in the Init() method? Or are you trying to define the table on the fly?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 01:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663128#M7907</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-07T01:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663134#M7908</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;I landed in the middle. I want to define it on the fly inside the ExtractQuery method as that's where I have the info I need in order to do it. But in the end, I defined my MTables below, and then modified the Name and added fields. I did NOT define fields in the Init().&lt;/P&gt;&lt;P&gt;My Init():&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;MTables = new List&amp;lt;QvxTable&amp;gt;
{
     new QvxTable
     {
          TableName = "placeholder",
          GetRows = GetApplicationEvents,
      }
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I did the below to translate the fields from the Query into a string list, and eventually into a QvxField List, and then finally into a QvxField Array.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;List&amp;lt;string&amp;gt; fieldList = new List&amp;lt;string&amp;gt;();

fieldList = finalFields.Split(',').ToList();
var currentFieldsList = new List&amp;lt;QvxField&amp;gt;();

foreach (string field in fieldList)
{
     QvxLog.Log(QvxLogFacility.Application, QvxLogSeverity.Error, "THE FIELD: " + field);
     currentFieldsList.Add(new QvxField(field, QvxFieldType.QVX_TEXT, QvxNullRepresentation.QVX_NULL_FLAG_SUPPRESS_DATA, FieldAttrType.ASCII));
}

QvxLog.Log(QvxLogFacility.Application, QvxLogSeverity.Error, "mtablesname: " + MTables[0].TableName);
MTables[0].TableName = currentTable;
var currentFieldsArray = new QvxField[] { };
currentFieldsArray = currentFieldsList.ToArray();
MTables[0].Fields = currentFieldsArray;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I SOOOOO appreciate your help. I keep getting really close and then hit these new speed bumps as I learn this new concept.&lt;/P&gt;&lt;P&gt;- Casey&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 02:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663134#M7908</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-07T02:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663405#M7909</link>
      <description>&lt;P&gt;Are you returning a&amp;nbsp;QvxDataTable from ExtractQuery()?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 18:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663405#M7909</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-07T18:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663407#M7910</link>
      <description>&lt;P&gt;Yes I am. And I think I might have figured out my issue. I'm trying to extract the Table name from the Query to finish setting up my MTables. However I think my string manipulation is simply wrong. I'm working on testing the theory as I'm typing this to see if it was just my mistake on extraction of the table name.&lt;/P&gt;&lt;P&gt;Will update.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 18:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663407#M7910</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-07T18:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663422#M7911</link>
      <description>&lt;P&gt;That was my issue at that point. My latest issue is that I can't get the syntax right for a table that has a space in the name. I've tried wrapping it in quotes, but also tried putting it into square brackets. Both methods result in an invalid Syntax error message.&lt;/P&gt;&lt;P&gt;It works fine with a table with no spaces. Is there a way through this, or will I be required to manipulate my tables to all have no spaces?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 19:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663422#M7911</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-07T19:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663522#M7912</link>
      <description>&lt;P&gt;I haven't tried spaces in my tablenames. I do use double quotes elsewhere in my select statement, Are you removing escaped quotes in ExtractQuery? Something like:&lt;/P&gt;&lt;P&gt;query = Regex.Replace(query, "\\\"", "");&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663522#M7912</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-08T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector Troubles</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663770#M7913</link>
      <description>&lt;P&gt;Thank you again. I adjusted my table names to remove spaces and other special characters, and I'm up and running now.&lt;/P&gt;&lt;P&gt;I appreciate all of your help. Have a great rest of your week.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Casey&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Custom-Connector-Troubles/m-p/1663770#M7913</guid>
      <dc:creator>caseyk</dc:creator>
      <dc:date>2020-01-08T15:31:03Z</dc:date>
    </item>
  </channel>
</rss>

