<?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: Issues in displaying tabular information in report with dynamic data source in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1399249#M11266</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt; for sharing the code snippet. I tried this and it did not work for me, the display name is not reflected in the final output.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 19:56:52 GMT</pubDate>
    <dc:creator>sai_phaneendra</dc:creator>
    <dc:date>2024-03-21T19:56:52Z</dc:date>
    <item>
      <title>Issues in displaying tabular information in report with dynamic data source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1398390#M11253</link>
      <description>&lt;P&gt;I was able to create a Report through ArcGIS Pro interface and access it through SDK. I am trying to show a table with 8 columns.&lt;BR /&gt;&lt;BR /&gt;The datasource is dynamic and generated by manipulating the original datasource to suit the report needs. Updated the report columns uing the SDK, but seeing the following issues&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;The column headers does not render the display name that was set&lt;/LI&gt;&lt;LI&gt;Column size is auto set which trims the column header instead of wrapping&lt;/LI&gt;&lt;LI&gt;Unable to display more than 6 columns (not in the sample)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Attached a sample project of what I have tried along with the datasource.&lt;/P&gt;&lt;P&gt;Any guidance or reference is much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1398390#M11253</guid>
      <dc:creator>sai_phaneendra</dc:creator>
      <dc:date>2024-03-20T13:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in displaying tabular information in report with dynamic data source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1398435#M11255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can set DisplayName and other&amp;nbsp;&lt;SPAN&gt;CIMTableField properties after report creating:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        List&amp;lt;string&amp;gt; displayNames = new List&amp;lt;string&amp;gt;() { "Project Id", "Id", "Field 1", "Field 2", "Field 3", "Field 4", "Field 5", "Field 6", };

        internal async Task Execute()
        {
            if (FLayer == null) return;

            try
            {
                var reportDataSource = PrepareDataSource();
                var report = await CreateReportAsync(reportDataSource);

                for (int i = 0; i &amp;lt; report.DataSource.Fields.Count(); i++)
                {
                    var cimField = report.DataSource.Fields.ElementAt(i);
                    cimField.DisplayName = displayNames[i];
                    if (i == 0) cimField.Group = true;
                    if (i == 3 || i == 5 || i == 7)
                    {
                        cimField.IsVisible = false;
                    }
                }


                MessageBox.Show("Report created successfuly.");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Failed to create report. Error" + ex.Message);
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Mar 2024 14:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1398435#M11255</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-03-20T14:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in displaying tabular information in report with dynamic data source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1399249#M11266</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt; for sharing the code snippet. I tried this and it did not work for me, the display name is not reflected in the final output.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 19:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1399249#M11266</guid>
      <dc:creator>sai_phaneendra</dc:creator>
      <dc:date>2024-03-21T19:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in displaying tabular information in report with dynamic data source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1400826#M11287</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;Any thoughts ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 12:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1400826#M11287</guid>
      <dc:creator>sai_phaneendra</dc:creator>
      <dc:date>2024-03-26T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in displaying tabular information in report with dynamic data source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1401180#M11296</link>
      <description>&lt;P&gt;I tested the "DisplayName", "IsVisible", and the "FieldOrder" properties of&amp;nbsp;CIMReportField and i was not able to get any of these properties to work as expected.&amp;nbsp; Also, the&amp;nbsp; ‘ReportDataSource’ method doesn’t use the ‘useSelectionSet’ parameter as documented.&amp;nbsp; When i set the parameter to false the report still only shows the selected features.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked the Report API dev team to take a look at this, however, in the meantime i would recommend using the Alias in the Fields definition:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1711487984566.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99156iC1A2DD83C2D83959/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1711487984566.png" alt="Wolf_0-1711487984566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To hide a column just don't add the column to the CIMReportField array.&amp;nbsp; To change the order you have to re-arrange the order in your CIMReportField array.&amp;nbsp; And in order to add all records to your report you need to clear all selected features before you run (export/preview) the report.&amp;nbsp; If the selected features are not cleared only the selected features will appear in your report.&lt;/P&gt;&lt;P&gt;I reply on this thread after i hear back from the Report API dev team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 21:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-in-displaying-tabular-information-in-report/m-p/1401180#M11296</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2024-03-26T21:27:47Z</dc:date>
    </item>
  </channel>
</rss>

