After “Remove All rows in Model” action has been invoked on a model, conditional rendering statements for buttons in a Button Set based on that model no longer update correctly.
Steps to reproduce:
- Create page using XML below
- Preview page
Actual Behavior = Expected Behavior
“Page Title : Account.Name != None - blank value” not visible
“Button Set : Account.Name != None - blank value” not visible
- Click “Empty Account Model & Create New Row”
Expected Behavior = Actual Behavior
“Page Title : Account.Name != None - blank value” not visible
“Button Set : Account.Name != None - blank value” not visible
- Input text in to “Account Name” field
Expected Behavior
Page title button should be visible
Button Set button should be visible
Actual Behavior
Page title button is visible
Button Set button is NOT visible
- Refresh page
- Input text in to “Account Name” field
Expected Behavior = Actual Behavior
Both buttons are visible
- Click “Empty Account Model & Create New Row”
Expected Behavior
Both Buttons Disappear
Actual Behavior
Page Title disappears
Button Set is still visible
Sample Page XML
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" useviewportmeta="true" showsidebar="true" showheader="true" tabtooverride="Account"> <models>
<model id="Account" limit="1" query="false" createrowifnonefound="true" datasource="salesforce" sobject="Account" type="">
<fields>
<field id="Name"/>
<field id="CreatedDate"/>
</fields>
<conditions>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="Id" field="Id"/>
</conditions>
<actions/>
</model>
</models>
<components>
<pagetitle uniqueid="sk-gsrLr-127" model="Account">
<maintitle>
<template>{{Name}}</template>
</maintitle>
<subtitle>
<template>{{Model.label}}</template>
</subtitle>
<actions>
<action type="multi" label="Empty Account Model &amp; Create New Row">
<actions>
<action type="emptyModelData" model="Account" affectedrows="all">
<models>
<model>Account</model>
</models>
</action>
<action type="createRow" model="Account" appendorprepend="prepend" defaultmodefornewitems="edit" affectedrows="all"/>
</actions>
</action>
</actions>
</pagetitle>
<basicfieldeditor showheader="true" showsavecancel="true" showerrorsinline="true" model="Account" buttonposition="" uniqueid="sk-gh0UC-96" mode="edit">
<columns>
<column width="100%">
<sections>
<section title="Section A" collapsible="no">
<fields>
<field id="Name" valuehalign="" type=""/>
</fields>
</section>
</sections>
</column>
</columns>
<renderconditions logictype="and"/>
</basicfieldeditor>
<pagetitle uniqueid="sk-gygB9-126" model="Account">
<actions>
<action type="multi" label="Page Title : Account.Name != None - blank value">
<renderconditions logictype="and">
<rendercondition type="blank" operator="!=" fieldmodel="Account" sourcetype="fieldvalue" field="Name" value="null" enclosevalueinquotes="false"/>
</renderconditions>
<enableconditions/>
</action>
</actions>
<subtitle>{{Model.label}}</subtitle>
<maintitle>{{Name}}</maintitle>
</pagetitle>
<buttonset model="Account" uniqueid="sk-gkKI9-142">
<buttons>
<button type="multi" label="Button Set : Account.Name != None - blank value">
<renderconditions logictype="and">
<rendercondition type="blank" operator="!=" fieldmodel="Account" sourcetype="fieldvalue" field="Name" value="null" enclosevalueinquotes="false"/>
</renderconditions>
<enableconditions/>
</button>
</buttons>
</buttonset>
</components>
<resources>
<labels/>
<css/>
<javascript/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuidpage>