I would like to know if there is a possibility for a field to be calculated automatically according to some conditions. For instance.
I have the sallers table and the field [CALCULATED] yes/no type.
I have the order items table which has the field [UNIT_PRICE]. This field is currently receiving a formula that comes from the spreadsheet which fetches the unit price value of the product from the [PRICES] table.
What I need?
Automatically calculate the price of products when the CALCULATED field of the sallers table is equal to NO. When YES, allow the seller to enter a value in this field.
Look my table order items to see the formula I’ve done.
Any given column can be populated via only one the following mechanisms:
user entry (in this case, an initial value expression can be defined that populates the column unless a user overrides it; and, if the column is never shown, that value can’t be overridden by users)
App formula
Spreadsheet formula
it sounds like you need something like the following:
Show/hide the user-entry column based on the Calculated column’s value
Hide the spreadsheet-formula column
creat a new column for its an app formula that, based on the Calculated column’s value, takes its value either from the user-entry column or from the spreadsheet-formula column; use this column for display and subsequent calculations
Vendedores = Is the same of Sellers table;
[REDE] = is the equivalent of the [CALCULATED] field, as informed previously. The field [REDE] is of the yes/no type.
Your verbatim formula from the spreadsheet won’t work as an expression in AppSheet. You need to adapt your spreadsheet formula that uses spreadsheet functions into an AppSheet expression that uses AppSheet functions.
No. I don’t know enough about the data structure of your spreadsheet or you app to parse your spreadsheet formula or draft an expression for an App formula.