Formula Field Value not updating when formula uses global merge syntax

  • 3
  • Problem
  • Updated 2 years ago
  • Acknowledged
  • (Edited)
Formula fields that use global merge syntax are not updating when the data in the merge syntax changes.  


Steps to reproduce
1) Create page with XML below
2) Preview page
3) Change the first records name

Expected Behavior
Formula field "AccountRow0Name" is updated in all rows

Actual Behavior
Only the row that is changed is updated

4) Click "+" on table to add a new row

Expected Behavior
AccountRowCount in all rows should reflect the current number of rows and AccountRow0Name should be updated in all rows

Actual Behavior
AccountRowCount and AccountRow0Name in new row are correct but existing rows were not updated

Page XML

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
      <model id="Account" limit="20" query="true" createrowifnonefound="false" sobject="Account" adapter="" type="">
            <field id="Name"/>
            <field id="CreatedDate"/>
            <field id="AccountRow0Name" uionly="true" displaytype="FORMULA" label="AccountRow0Name" readonly="true" returntype="TEXT" precision="9" scale="2">
            <field id="AccountRowCount" uionly="true" displaytype="FORMULA" label="AccountRowCount" readonly="true" returntype="DOUBLE" precision="9" scale="2">
      <pagetitle model="Account" uniqueid="sk-cNOcY-70">
            <action type="savecancel" window="self"/>
      <skootable showconditions="true" showsavecancel="false" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" model="Account" buttonposition="" mode="read" uniqueid="sk-cNaQf-118">
            <field id="Name"/>
            <field id="AccountRowCount" decimalplaces="" valuehalign="" type=""/>
            <field id="AccountRow0Name" decimalplaces="" valuehalign="" type=""/>
            <action type="edit"/>
            <action type="delete"/>
         <massactions usefirstitemasdefault="true">
            <action type="massupdate"/>
            <action type="massdelete"/>
            <view type="standard"/>
      <styleitem type="background" bgtype="none"/>
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,456 Points 10k badge 2x thumb

Posted 4 years ago

  • 3
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 9,332 Points 5k badge 2x thumb

Thanks for reporting this bug. The devs are aware of it and will consider it for a future release. This post will be updated when a fix is available. 

Photo of Barry Schnell

Barry Schnell, Champion

  • 18,456 Points 10k badge 2x thumb
Thanks Karen!
Photo of and thorough

and thorough

  • 788 Points 500 badge 2x thumb
Has this been fixed?  I think I'm having a similar issue: I have a formula field in a UI-only model that uses global merge syntax to check whether conditions on other models are inactive, e.g., {{$Model.MyModel.conditions.2.inactive}}.  The formula result does not update in real time when the referenced condition is activated.  However, if a new row is added to the UI-only model, the new row shows the correct formula result.  I thought maybe this was only an issue on a UI model so I tried adding the UI formula field to a model tied to a Salesforce object and had the same problem where the formula result did not update in real time.

Thanks for any help or info on this!