Skip to main content

When a table global action is conditionally rendered, the visibility of the action does not respond properly to changes in model field value.


Steps to reproduce:


  1. Create page using XML below

  2. Click “Update to Foo” button

Expected Behavior = Actual Behavior

“Show/Hide Me” button disappears


  1. Click “Update to Bar” button

Expected Behavior

“Show/Hide Me” button should be displayed


Actual Behavior

“Show/Hide Me” button remains hidden


This might be related to https://community.skuid.com/t/field-editor-disappears-after-save-skuid-7-24?rfm=1&topic_submit=true and/or https://community.skuid.com/t/page-title-buttons-do-not-conditionally-render-correctly-after-save?rfm=1&topic_submit=true.


Sample Page XML


<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
<model id="Account" limit="100" query="true" createrowifnonefound="false" sobject="Account" adapter="" type="">
<fields>
<field id="Name"/>
<field id="CreatedDate"/>
</fields>
<conditions/>
<actions/>
</model>
<model id="Tracker" limit="1" query="false" createrowifnonefound="true" adapter="" type="" sobject="Account">
<fields>
<field id="Mode" uionly="true" displaytype="TEXT" label="Mode" defaultValue="Bar"/>
</fields>
<conditions/>
<actions/>
</model>
</models>
<components>
<pagetitle model="Account" uniqueid="sk-2Q5m2_-66">
<maintitle>
<template>{{Model.labelPlural}}</template>
</maintitle>
<subtitle>
<template>Home</template>
</subtitle>
<actions>
<action type="multi" label="Update to Foo">
<actions>
<action type="updateRow" fieldmodel="Tracker" field="Mode" enclosevalueinquotes="true" value="Foo"/>
</actions>
</action>
<action type="multi" label="Update to Bar">
<actions>
<action type="updateRow" fieldmodel="Tracker" field="Mode" enclosevalueinquotes="true" value="Bar"/>
</actions>
</action>
</actions>
</pagetitle>
<skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="10" createrecords="false" model="Account" mode="readonly" uniqueid="sk-2Q5m2_-67" emptysearchbehavior="query">
<fields>
<field id="Name" allowordering="true"/>
<field id="CreatedDate" allowordering="true"/>
</fields>
<rowactions/>
<massactions usefirstitemasdefault="true"/>
<views>
<view type="standard"/>
</views>
<actions defaultlabel="Global Actions" defaulticon="sk-icon-magic" usefirstitemasdefault="true">
<action type="multi" label="Show/Hide Me" icon="sk-icon-magic">
<renderconditions logictype="and">
<rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="Tracker" sourcetype="fieldvalue" nosourcerowbehavior="skipandnorender" field="Mode" value="Bar"/>
</renderconditions>
</action>
</actions>
<searchfields/>
</skootable>
</components>
<resources>
<labels/>
<css/>
<javascript/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuidpage>

Hi, Barry,
Thanks for the straightforward example. I’m seeing the issue, and will make note of it for our dev team so they can take a look at it.
Emily


Thanks Emily!


This fix has been made and is planned for Banzai Update 9


Awesome news, thanks Ben!


This fix is now available from Get the Latest Skuid Releases & Everything That Came Before in either the Banzai Update 9 release or the Rockaway Release.


Tested and confirmed with Skuid 8.8.  Thank you!


Reply