<?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: Using other datatypes in fullscriptsupport_pandas example in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38968#M14185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to get it working by using &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ScriptEvalStr. &lt;/STRONG&gt;But in this case, I can only use strings, is anyone aware of a method in which you can return both strings &amp;amp; numbers?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, String, Mixed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0, "a", 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, "b", "ten"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, "c", "eleven"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, "d", 11&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET vScript = '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tableDescription = True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # tableDescription must be set to True if it should be sent to Qlik&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.name = "SSETableLoad"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the table name, note that it is overridden in a table name is specified in the Load Script&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.fields.add(name="String1",dataType=0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.fields.add(name="String2",dataType=0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.fields.add(name="String3",dataType=0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;qResult=q.values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Return the same values as retrieved';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load * Extension ScriptPandas.&lt;STRONG&gt;ScriptEvalStr&lt;/STRONG&gt;('$(vScript)', Table1{String as String1,String as String2,String as String3});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;exit script&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2018 09:56:17 GMT</pubDate>
    <dc:creator>stevenkoppens</dc:creator>
    <dc:date>2018-03-02T09:56:17Z</dc:date>
    <item>
      <title>Using other datatypes in fullscriptsupport_pandas example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38967#M14184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm struggling to use other datatypes than numeric in the SSE example &lt;STRONG&gt;fullscriptsupport_pandas&lt;/STRONG&gt;, I've modified the example slightly. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;So, this first part works where I'm just sending the first column 3 times (which is numeric):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;ID, String, Mixed&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;0, "a", 10&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;1, "b", "ten"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;2, "c", "eleven"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;3, "d", 11&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;SET vScript = '&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;tableDescription = True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # tableDescription must be set to True if it should be sent to Qlik&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.name = "SSETableLoad"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the table name, note that it is overridden in a table name is specified in the Load Script&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.fields.add(name="Id1",dataType=1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.fields.add(name="Id2",dataType=1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.fields.add(name="Id3",dataType=1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;qResult=q.values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Return the same values as retrieved';&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load * Extension ScriptPandas.ScriptEval('$(vScript)', Table1{ID as Id1,ID as Id2,ID as Id3}); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit script&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;But if I slightly modify the script and try to include the String column, I get a an error:&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 style="padding-left: 30px;"&gt;&lt;EM&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;ID, String, Mixed&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;0, "a", 10&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;1, "b", "ten"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;2, "c", "eleven"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;3, "d", 11&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;SET vScript = '&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;tableDescription = True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # tableDescription must be set to True if it should be sent to Qlik&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.name = "SSETableLoad"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the table name, note that it is overridden in a table name is specified in the Load Script&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.fields.add(name="Id1",dataType=1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&lt;STRONG&gt;table.fields.add(name="String1",dataType=0)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;table.fields.add(name="Id3",dataType=1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;qResult=q.values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Return the same values as retrieved';&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load * Extension ScriptPandas.ScriptEval('$(vScript)', Table1{ID as Id1,&lt;STRONG&gt;String as String1&lt;/STRONG&gt;,ID as Id3}); &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;exit script&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The following error occurred:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 13px; background: rgba(255, 38, 38, 0.2);"&gt;Connector reply error: grpc::StatusCode::UNKNOWN: 'Exception iterating responses: 'a' has type &amp;lt;class 'str'&amp;gt;, but expected one of: ((&amp;lt;class 'numbers.Real'&amp;gt;,),) for field Dual.numData'&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Could anyone explain to me what I'm missing?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Steven&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38967#M14184</guid>
      <dc:creator>stevenkoppens</dc:creator>
      <dc:date>2024-11-16T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using other datatypes in fullscriptsupport_pandas example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38968#M14185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to get it working by using &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ScriptEvalStr. &lt;/STRONG&gt;But in this case, I can only use strings, is anyone aware of a method in which you can return both strings &amp;amp; numbers?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, String, Mixed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0, "a", 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, "b", "ten"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, "c", "eleven"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, "d", 11&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET vScript = '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tableDescription = True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # tableDescription must be set to True if it should be sent to Qlik&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.name = "SSETableLoad"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the table name, note that it is overridden in a table name is specified in the Load Script&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.fields.add(name="String1",dataType=0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.fields.add(name="String2",dataType=0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;table.fields.add(name="String3",dataType=0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;qResult=q.values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Return the same values as retrieved';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load * Extension ScriptPandas.&lt;STRONG&gt;ScriptEvalStr&lt;/STRONG&gt;('$(vScript)', Table1{String as String1,String as String2,String as String3});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;exit script&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38968#M14185</guid>
      <dc:creator>stevenkoppens</dc:creator>
      <dc:date>2018-03-02T09:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using other datatypes in fullscriptsupport_pandas example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38969#M14186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven!&lt;/P&gt;&lt;P&gt;Thank you for reaching out. When I reproduced the issue you're describing I noticed it's a bug in the plugin. The tableDescription should use the dataTypes in the tableDescription over the returnType of the function, which it doesn't right now. You can see that in the &lt;EM&gt;get_dual&lt;/EM&gt;s method in scripteval.py file. We are assuming all columns have the same returnType which is determined by the function. The latter explains why you could only return strings when using the &lt;EM&gt;ScriptEvalStr&lt;/EM&gt; and numerics when using &lt;EM&gt;ScriptEval&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to write a quick fix for it, but I need to clean it up a bit before updating the code on GitHub. I'll update you when I've fixed it. I believe I can have it updated at the beginning of next week! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Josefine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38969#M14186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T11:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using other datatypes in fullscriptsupport_pandas example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38970#M14187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fix is merged into the master branch in the &lt;EM&gt;server-side-extension&lt;/EM&gt; GitHub repo now. You can find the pull request here: &lt;A href="https://github.com/qlik-oss/server-side-extension/pull/29" title="https://github.com/qlik-oss/server-side-extension/pull/29"&gt;https://github.com/qlik-oss/server-side-extension/pull/29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, &lt;/P&gt;&lt;P&gt;Josefine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 08:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Using-other-datatypes-in-fullscriptsupport-pandas-example/m-p/38970#M14187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-12T08:34:48Z</dc:date>
    </item>
  </channel>
</rss>

