SUM ( SELECT (Order Details[Total], [Order Id] = [_THISROW].[Order Id]))
When I add new items to the order, the order total does not update; it only updates when I go into the order, go into edit mode and save it again. In the AppSheet example order app, this step is not necessary.
Is there a specific reason it does not work with a normal column? Ideally, I want to save this order_total value to the database as well, which does not work with a virtual column.
If the “child” has an IsAPartOf Ref column back to the “parent”, then we will also recompute all app formulas in the parent. When we do this, it means we also have to update and save the parent on sync. Otherwise, we will only recompute virtual columns.
I could have sworn it was. Adding @Adam_Stone_AppSheet. Pim, could you try one thing. If you change an existing Details record, does it recompute the app formulas in the parent Order record? Maybe we only got that piece done but overlooked the case where a new Details record is added.
Within a nested form view, all the AppFormulas will update. For example, when adding a new order and then adding line items before saving the order. When adding or editing line items after the main order has been saved (i.e. from the detail view), currently only virtual column AppFormulas will update. We are working on making this more consistent such that all AppFormulas will update in both cases when the line item IsAPartOf the order.