<?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 .NET SDK - GetFieldList() does only return non-hidden fields in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8695#M147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should be enough to set this value to true in the FieldList properties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2017/apis/net%20sdk/html/P_Qlik_Engine_FieldListDef_ShowHidden.htm" title="https://help.qlik.com/en-US/sense-developer/November2017/apis/net%20sdk/html/P_Qlik_Engine_FieldListDef_ShowHidden.htm"&gt;https://help.qlik.com/en-US/sense-developer/November2017/apis/net%20sdk/html/P_Qlik_Engine_FieldListDef_ShowHidden.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15185261325983597" jivemacro_uid="_15185261325983597" modifiedtitle="true"&gt;
&lt;P&gt;var fieldList = app.GetFieldList();&lt;/P&gt;
&lt;P&gt;using (fieldList.SuspendedLayout)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; fieldList.Properties.FieldListDef.ShowHidden = true;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;var fields = fieldList.Items;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't actually run the code though, so I could be mistaken...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 12:57:19 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2018-02-13T12:57:19Z</dc:date>
    <item>
      <title>Qlik .NET SDK - GetFieldList() does only return non-hidden fields</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8694#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this question goes especially to the C# developers that are using the Qlik .NET SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created a simple C# tool that extracts the list of available fields of a given Qlik App&lt;/P&gt;&lt;P&gt;and stores them into an Excel-Sheet. This should later be used for internal documentation purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far we used the method &lt;SPAN style="color: #191970; font-weight: bold;"&gt;GetFieldList&lt;/SPAN&gt;() to receive a list of all fields and afterwards iterated over&lt;/P&gt;&lt;P&gt;each Item. Yesterday one of the tool users approached us and asked why the Excel sheet does&lt;/P&gt;&lt;P&gt;not contain the hidden fields. Long story short, we searched through the SDK documentation and&lt;/P&gt;&lt;P&gt;other sources and learned about the FieldListDe&lt;SPAN style="font-size: 10pt;"&gt;f properties,&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt; in particular qShowHidden. But we don't&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;really know how to tell the API to do the FieldList request and consider qShowHidden = true.&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;So far we have something like this:&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004085;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldListProperties&lt;/SPAN&gt; fieldListProperties = &lt;SPAN style="color: #008b8b; font-weight: bold;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #004085;"&gt;FieldListProperties&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldListProperties.Info = &lt;SPAN style="color: #008b8b; font-weight: bold;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #004085;"&gt;NxInfo&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldListProperties.Info.Id = &lt;SPAN style="color: #0000ff;"&gt;"FieldList"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldListProperties.Info.Type = &lt;SPAN style="color: #0000ff;"&gt;"FieldList"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldListProperties.FieldListDef = &lt;SPAN style="color: #008b8b; font-weight: bold;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #004085;"&gt;FieldListDef&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldListProperties.FieldListDef.&lt;SPAN style="color: #191970; font-weight: bold;"&gt;Set&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;"qShowHidden"&lt;/SPAN&gt;, &lt;SPAN style="color: #008b8b; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fieldList = app.&lt;SPAN style="color: #191970; font-weight: bold;"&gt;CreateGenericSessionObjectAsync&lt;/SPAN&gt;&amp;lt;Qlik.Sense.Client.&lt;SPAN style="color: #004085;"&gt;IFieldList&lt;/SPAN&gt;&amp;gt;((&lt;SPAN style="color: #004085;"&gt;AsyncHandle&lt;/SPAN&gt;) &lt;SPAN style="font-weight: bold;"&gt;null&lt;/SPAN&gt;, &lt;SPAN style="color: #008b8b; font-weight: bold;"&gt;new&lt;/SPAN&gt; Func&amp;lt;Qlik.Engine.Communication.IO.&lt;SPAN style="color: #004085;"&gt;Response&lt;/SPAN&gt;, Qlik.Sense.Client.&lt;SPAN style="color: #004085;"&gt;IFieldList&lt;/SPAN&gt;&amp;gt;(&lt;SPAN style="color: #004085;"&gt;AppExtensions&lt;/SPAN&gt;.&lt;SPAN style="color: #191970; font-weight: bold;"&gt;OnGetFieldListAsync&lt;/SPAN&gt;()), fieldListProperties);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This actually does not compile, because Func needs some kind of pointer or so to an acutal method that reads the return&lt;/P&gt;&lt;P&gt;object out of the Response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help solving this issue is appreciated. Thank you very much.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP&gt;&lt;/SAMP&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8694#M146</guid>
      <dc:creator>rheinerrhenus</dc:creator>
      <dc:date>2018-02-12T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik .NET SDK - GetFieldList() does only return non-hidden fields</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8695#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should be enough to set this value to true in the FieldList properties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2017/apis/net%20sdk/html/P_Qlik_Engine_FieldListDef_ShowHidden.htm" title="https://help.qlik.com/en-US/sense-developer/November2017/apis/net%20sdk/html/P_Qlik_Engine_FieldListDef_ShowHidden.htm"&gt;https://help.qlik.com/en-US/sense-developer/November2017/apis/net%20sdk/html/P_Qlik_Engine_FieldListDef_ShowHidden.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15185261325983597" jivemacro_uid="_15185261325983597" modifiedtitle="true"&gt;
&lt;P&gt;var fieldList = app.GetFieldList();&lt;/P&gt;
&lt;P&gt;using (fieldList.SuspendedLayout)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; fieldList.Properties.FieldListDef.ShowHidden = true;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;var fields = fieldList.Items;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't actually run the code though, so I could be mistaken...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8695#M147</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-02-13T12:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik .NET SDK - GetFieldList() does only return non-hidden fields</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8696#M148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. That works perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-NET-SDK-GetFieldList-does-only-return-non-hidden-fields/m-p/8696#M148</guid>
      <dc:creator>rheinerrhenus</dc:creator>
      <dc:date>2018-02-13T13:39:27Z</dc:date>
    </item>
  </channel>
</rss>

