<?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>Question Re: initiallyVisibleFields SmartTable property not workin... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022598#M4904332</link>
    <description>working with jsonmodel is not supported in smart thing.</description>
    <pubDate>Thu, 20 Feb 2025 13:26:24 GMT</pubDate>
    <dc:creator>junwu</dc:creator>
    <dc:date>2025-02-20T13:26:24Z</dc:date>
    <item>
      <title>initiallyVisibleFields SmartTable property not working with JSONModel-based SmartTable</title>
      <link>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaq-p/14022461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a SmartTable that takes data from a simple JSON model instead of an oData service. This is possible as you can see from &lt;A href="https://community.sap.com/t5/technology-q-a/application-with-smarttable-and-jsonmodel-binding/qaq-p/351048" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;BR /&gt;The table has many columns (I won't list them all for convenience), so I would like to display only some of them in the beginning. I tried to use the initiallyVisibleFields property by inserting the name of the data as it is written in the JSON model (and also as I recall it in the items), but when I go to test all the columns are still visible.&lt;/P&gt;&lt;P&gt;All data is shown correctly in the rows.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;st:SmartTable
    entitySet="BPSet"
    tableBindingPath="BPModel&amp;gt;/"
    header="{i18n&amp;gt;contractsList}"
    showRowCount="true"
    tableType="Table"
    showFullScreenButton="false"
    useVariantManagement="false"
    enableAutoBinding="true"
    enableExport="true"
    useTablePersonalisation="true"
    initiallyVisibleFields="Ebeln,Name1"
&amp;gt;
    &amp;lt;st:customToolbar&amp;gt;
        &amp;lt;m:OverflowToolbar design="Transparent"&amp;gt;
            &amp;lt;m:ToolbarSpacer /&amp;gt;
            &amp;lt;m:Button
                id="ButtonFilter"
                type="Emphasized"
                icon="sap-icon://filter"
                text="{i18n&amp;gt;contractsAllowed}"
                width="auto"
                enabled="true"
                iconDensityAware="false"
                press="contractsAllowedFilter"
            /&amp;gt;
            &amp;lt;m:Button
                id="ButtonRefresh"
                type="Emphasized"
                text="{i18n&amp;gt;refresh}"
                tooltip="{i18n&amp;gt;refresh}"
                press="getRunItems"
                icon="sap-icon://refresh"
            /&amp;gt;
            &amp;lt;m:Button
                id="ButtonTacitRenewal"
                type="Emphasized"
                text="{i18n&amp;gt;tacitRenewal}"
                tooltip="{i18n&amp;gt;tacitRenewal}"
                width="auto"
                enabled="true"
                iconDensityAware="false"
                press="onTacitRenewal"
            /&amp;gt;
            &amp;lt;m:ToolbarSpacer /&amp;gt;
        &amp;lt;/m:OverflowToolbar&amp;gt;
    &amp;lt;/st:customToolbar&amp;gt;
    &amp;lt;m:Table
        id="detailContractsTable"
        mode="MultiSelect"
        itemPress="toListaDoc"
    &amp;gt;
        &amp;lt;m:columns&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "Ebeln", "leadingProperty": "Ebeln"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;ContractId}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "Name1", "leadingProperty": "Name1"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;Name}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "createdAt", "leadingProperty": "createdAt"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;creationDate}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "createdBy", "leadingProperty": "createdBy"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;createdBy}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "modifiedAt", "leadingProperty": "modifiedAt"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;modifiedAt}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "modifiedBy", "leadingProperty": "modifiedBy"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;modifiedBy}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
            &amp;lt;m:Column&amp;gt;
                &amp;lt;m:customData&amp;gt;
                    &amp;lt;core:CustomData
                        key="p13nData"
                        value='{"columnKey": "Status", "leadingProperty": "Status"}'
                    /&amp;gt;
                &amp;lt;/m:customData&amp;gt;
                &amp;lt;m:Text text="{i18n&amp;gt;status}" /&amp;gt;
            &amp;lt;/m:Column&amp;gt;
        &amp;lt;/m:columns&amp;gt;
        &amp;lt;m:items&amp;gt;
            &amp;lt;m:ColumnListItem
                type="Navigation"
                press="onPress"
            &amp;gt;
                &amp;lt;m:cells&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;Ebeln}" /&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;Name1}" /&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;createdAt}" /&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;createdBy}" /&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;modifiedAt}" /&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;modifiedBy}" /&amp;gt;
                    &amp;lt;m:Text text="{BPModel&amp;gt;Status}" /&amp;gt;
                &amp;lt;/m:cells&amp;gt;
            &amp;lt;/m:ColumnListItem&amp;gt;
        &amp;lt;/m:items&amp;gt;
    &amp;lt;/m:Table&amp;gt;
&amp;lt;/st:SmartTable&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaq-p/14022461</guid>
      <dc:creator>ragnarox97</dc:creator>
      <dc:date>2025-02-20T10:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: initiallyVisibleFields SmartTable property not workin...</title>
      <link>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022552#M4904325</link>
      <description>&lt;P&gt;it is not supported. please forget it.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022552#M4904325</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-02-20T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: initiallyVisibleFields SmartTable property not workin...</title>
      <link>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022556#M4904326</link>
      <description>&lt;P&gt;What does it means It's not supported? The property initiallyVisibleFields is not supported? It's like It doesn't exists?&lt;/P&gt;&lt;P&gt;So I have to go for a manual way to manage the initial columns visibility?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022556#M4904326</guid>
      <dc:creator>ragnarox97</dc:creator>
      <dc:date>2025-02-20T12:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: initiallyVisibleFields SmartTable property not workin...</title>
      <link>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022598#M4904332</link>
      <description>working with jsonmodel is not supported in smart thing.</description>
      <pubDate>Thu, 20 Feb 2025 13:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initiallyvisiblefields-smarttable-property-not-working-with-jsonmodel-based/qaa-p/14022598#M4904332</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-02-20T13:26:24Z</dc:date>
    </item>
  </channel>
</rss>

