Vanishing virtual columns on action

I have a button that adds a line to another table based on current row. When I press this button 2 of my virtual columns vanish. I have another virtual column that says though. The column that stays is LOOKUP([Total] in a database view)-LOOKUP([Subtotal] in that same database view) and the other two are
AVG(SELECT([Total] where vendor=thisrow))
and
SELECT([Total+Date] where vendor=thisrow)
The table I am adding a record to has no interaction with any tables I am looking up but Iโ€™m assuming it is recalculating the select statements when I do this action?

Solved Solved
0 8 786
1 ACCEPTED SOLUTION

Deleting the reference from Detail to Header removed the issue. Since the action was adding a detail it was updating the related details column which caused all other columns to recalculate.

View solution in original post

8 REPLIES 8

First thought - Do you have any Show_If criteria specified in the Virtual columns that are disappearing?

Beyond that, images showing us what you are seeing (or not seeing as it were) would be extremely helpful!


This is before I press the button

This is after I press the button. The 2 columns return after a few seconds.

This suggests the disappearing columns may use values from a table that changes as part of the action. They then reappear when the background sync occurs and everything gets recomputed.

@Austin_Lambeth I agree with Steve. Additionally, Detail views, which are the views on the left-hand side of your images, have a default behavior to NOT show columns that are blank.

Is there some processing attached to or initiated by the button click that removes rows from the โ€œSubtotalVerificationViewโ€ table?

One idea to resolve the disappearing columns and inform the user, is to display some informative text while the re-calculation is happening (if indeed this is the issue). Test if the returned value ISBLANK() and if so show โ€œprocessingโ€.

The action is to add a line to the Invoice Details page which has references to the Invoice Header which is where the columns are disappearing. Additionally the LastSixInvoices is based on Invoice Header in database. LastSixInvoices has no references within appsheet and both disappearing column are based on that table. 2X_5_59281b8be28eb131ec45252e8fb665ff81429edf.png

Steve
Platinum 4
Platinum 4

When discussing expressions, I (at least) would prefer the actual expressions rather than some shorthand. The expressions(-ish) you gave look suspect, but it may just be your shorthand.

In what views do the virtual column disappear? If in a detail view, the disappearance may indicate the columnโ€™s value became blankโ€“AppSheet hides columns with blank values by default in detail views.

Virtual columns are recomputed when (among other times) the row is modified, as by an action or Quick Edit. So, the answer to this is yes: โ€œI am looking up but Iโ€™m assuming it is recalculating the select statements when I do this action?โ€

LOOKUP([_THISROW].[Textract_Process_ID],โ€œSubtotalVerificationViewโ€,โ€œTextract_Process_IDโ€,โ€œTotalLineItemsโ€)-LOOKUP([_THISROW].[Textract_Process_ID],โ€œSubtotalVerificationViewโ€,โ€œTextract_Process_IDโ€,โ€œTOTAL_AMOUNT_DUEโ€)

Average(Select(LastSixInvoices[Total_Amount_Due], [Vendor_ID]=[_ThisRow].[Vendor_ID]))

LIST(" โ€œ&SUBSTITUTE(
SELECT(LastSixInvoices[Total and Bill Date],[Vendor_ID]=[_THISROW].[Vendor_ID]),โ€,","
"))
Those are the 3 formulas in the order they are in my original post

Deleting the reference from Detail to Header removed the issue. Since the action was adding a detail it was updating the related details column which caused all other columns to recalculate.

Top Labels in this Space