Conditional Rendering of Table Global Action does not update after value changed

Barry SchnellBarry Schnell 💎💎
edited March 2, 2017 in Questions
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

3) 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 and/or

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="">
            <field id="Name"/>
            <field id="CreatedDate"/>
      <model id="Tracker" limit="1" query="false" createrowifnonefound="true" adapter="" type="" sobject="Account">
            <field id="Mode" uionly="true" displaytype="TEXT" label="Mode" defaultValue="Bar"/>
      <pagetitle model="Account" uniqueid="sk-2Q5m2_-66">
            <action type="multi" label="Update to Foo">
                  <action type="updateRow" fieldmodel="Tracker" field="Mode" enclosevalueinquotes="true" value="Foo"/>
            <action type="multi" label="Update to Bar">
                  <action type="updateRow" fieldmodel="Tracker" field="Mode" enclosevalueinquotes="true" value="Bar"/>
      <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">
            <field id="Name" allowordering="true"/>
            <field id="CreatedDate" allowordering="true"/>
         <massactions usefirstitemasdefault="true"/>
            <view type="standard"/>
         <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"/>
      <styleitem type="background" bgtype="none"/>


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!