<?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: Qlik Sense SSE Python - send_initial_metadata in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-SSE-Python-send-initial-metadata/m-p/1521083#M9712</link>
    <description>&lt;P&gt;I change this line :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                table.fields.add(name=col, dataType=SSE.DUAL)&lt;/PRE&gt;&lt;P&gt;By&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                table.fields.add(name=col, dataType=SSE.STRING)&lt;/PRE&gt;&lt;P&gt;And that work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 14:07:50 GMT</pubDate>
    <dc:creator>Aurelien_Martinez</dc:creator>
    <dc:date>2018-12-14T14:07:50Z</dc:date>
    <item>
      <title>Qlik Sense SSE Python - send_initial_metadata</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-SSE-Python-send-initial-metadata/m-p/1520880#M9711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to create a SSE plugin for read Google SpreadSheet.&lt;/P&gt;&lt;P&gt;I can load data but I can't get column name (in first line of my spreadsheet). I have try to use this code&lt;/P&gt;&lt;PRE&gt;md = (('qlik-tabledescription-bin', table.SerializeToString()),)&lt;BR /&gt;context.send_initial_metadata(md)&lt;/PRE&gt;&lt;P&gt;But when I send data to Qlik Sense, only the first row is loaded (but I have hearders).&lt;/P&gt;&lt;PRE&gt;    def _load_spreadsheet(request, context):
        for request_rows in request:
            spreadSheetId = request_rows.rows[0].duals[0].strData
            sheet = request_rows.rows[0].duals[1].strData
            result = google_sheet.load_spreadsheet(spreadSheetId, sheet)
            table = SSE.TableDescription(name=sheet, numberOfRows=10000)

            for col in result[0]:
                table.fields.add(name=col, dataType=SSE.DUAL)

            md = (('qlik-tabledescription-bin', table.SerializeToString()),)
            context.send_initial_metadata(md)

            del result[0]

            table = []

            for result_row in result:
                line = []
                for item in result_row:
                    dual = SSE.Dual(strData=item)
                    line.append(dual)
                yield SSE.BundledRows(rows=[SSE.Row(duals=line)])&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aurélien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-SSE-Python-send-initial-metadata/m-p/1520880#M9711</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2024-11-16T07:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense SSE Python - send_initial_metadata</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-SSE-Python-send-initial-metadata/m-p/1521083#M9712</link>
      <description>&lt;P&gt;I change this line :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                table.fields.add(name=col, dataType=SSE.DUAL)&lt;/PRE&gt;&lt;P&gt;By&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                table.fields.add(name=col, dataType=SSE.STRING)&lt;/PRE&gt;&lt;P&gt;And that work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 14:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-SSE-Python-send-initial-metadata/m-p/1521083#M9712</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2018-12-14T14:07:50Z</dc:date>
    </item>
  </channel>
</rss>

