table "show column by default" feature not working correctly

  • 1
  • Question
  • Updated 1 month ago
  • In Progress
Trying to see if anyone else is experiencing this issue or knows of some other setting that is tied to the "show column by default" feature on a table. I have a table with about 150-200 rows, and about 8 columns. I want to hide 4 of those columns when the page loads, and show 4 of them. I have the "Allow Users to Show/Hide Column" feature enabled for each column, with 4 of those columns having the "show column by default" checked on, and the other 4 having it checked off.
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb

Posted 1 month ago

  • 1
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
Hi Nicholas L.,

Could you please provide more information about the outcome, what exactly is not working correctly?
I created a simple testpage with a table of 8 columns. "Allow users to show/hide columns" is enabled for each column. Columns 1 - 4 are shown by default, columns 5 - 8 are not. Could you please create a new page in your org using the XML below? Please let me know if that page works fine. If not, which Skuid version is currently installed? If it works as you expect, please compare your table settings to mine and let me know if you could find a significant difference. I used a UI-only model so that you can easily test it in your org:



<skuidpage personalizationmode="server" showsidebar="false" useviewportmeta="true" showheader="false">
    <models>
        <model id="NewModel" limit="20" query="true" createrowifnonefound="true" datasource="Ui-Only" processonclient="true">
            <fields>
                <field id="NewField8" displaytype="TEXT" label="NewField8" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField1" displaytype="TEXT" label="NewField1" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField2" displaytype="TEXT" label="NewField2" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField3" displaytype="TEXT" label="NewField3" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField4" displaytype="TEXT" label="NewField4" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField5" displaytype="TEXT" label="NewField5" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField6" displaytype="TEXT" label="NewField6" defaultvaluetype="fieldvalue" defaultValue="data"/>
                <field id="NewField7" displaytype="TEXT" label="NewField7" defaultvaluetype="fieldvalue" defaultValue="data"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
    </models>
    <components>
        <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="client" searchbox="true" showexportbuttons="false" hideheader="false" hidefooter="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="NewModel" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-1Jlp-367" sortonclient="false">
            <fields>
                <field id="NewField1" uniqueid="fi-1Jlp-369" hideable="true" showbydefault="true"/>
                <field id="NewField2" uniqueid="fi-1Jlp-370" hideable="true" showbydefault="true"/>
                <field id="NewField3" uniqueid="fi-1Jlp-371" hideable="true" showbydefault="true"/>
                <field id="NewField4" uniqueid="fi-1Jlp-372" hideable="true" showbydefault="true"/>
                <field id="NewField5" uniqueid="fi-1Jlp-373" hideable="true" showbydefault="false"/>
                <field id="NewField6" uniqueid="fi-1Jlp-374" hideable="true" showbydefault="false"/>
                <field id="NewField7" uniqueid="fi-1Jlp-375" hideable="true" showbydefault="false"/>
                <field id="NewField8" uniqueid="fi-1Jlp-368" hideable="true" showbydefault="false"/>
            </fields>
            <rowactions>
                <action type="edit"/>
                <action type="delete"/>
            </rowactions>
            <massactions usefirstitemasdefault="true">
                <action type="massupdate"/>
                <action type="massdelete"/>
            </massactions>
            <views>
                <view type="standard"/>
            </views>
        </skootable>
    </components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
        <actionsequences uniqueid="sk-1JlV-212"/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>