Hi, I'm building out a quoting app, and I'm ...

Hi,

Iโ€™m building out a quoting app, and Iโ€™m having a hard time with getting Appsheet to update a value, based on the sum of other values. For my quoting app, I have a spreadsheet for quotes, and a spreadsheet for two things that go into my quoting items - manufacturing time and materials. Since any item Iโ€™m quoting can have multiple materia, I obviously use a reference for that. Same with multiple manufacturing times.

Iโ€™m able to create a virtual column that basically does the followingโ€ฆ

  1. Add up all the costs of material line items 2. Add up all the costs of manufacturing time line items. 3. Display total cost per item being quoted.

This works great with virtual columns - I have a virtual column named โ€œtotal_costโ€. The moment I add a material, the virtual column updates, which is great.

However, I donโ€™t want to just display the column โ€œtotal_costโ€. I want to save it so I can access this cost from other apps Iโ€™m building. I have a column called โ€œsaved_costโ€ with the app formula โ€œ=[Total_Cost]โ€. This works when you first are creating an item and adding materials and manufacturing times, but once you save that item, it locks the saved_cost. I can then add materials, manufacturing times, and delete them, and the virtual column โ€œtotal_costโ€ gets updated, but the โ€œsaved_costโ€ column doesnโ€™t.

In order to get the saved cost to update it, I essentially have to click โ€œeditโ€ on a quote, and then save. Because Iโ€™m editing it, it updates โ€œsaved_costโ€ with the virtual column value.

Is there a way around this? Iโ€™m thinking one of two waysโ€ฆ

  1. When Iโ€™m saving a material that Iโ€™m adding to a job, have an action that replaces โ€œsaveโ€ which updates that original quote column with the new cost. 2. Have some sort of โ€œrefreshโ€ or โ€œupdateโ€ button/action that will recalculate the total_cost and copy it to the โ€œsaved_costโ€ column.

Or is there an easier way to do this Iโ€™m missing?

Thanks!

0 3 929
3 REPLIES 3

Hi @Greg_Huston,

As per my understanding, the second option you have listed above of creating an update action button for setting [Saved_Cost} real column with latest in VC [total_cost]) in parent table is workable approach.

This will be however a pure manual operation in that, whenever user adds child table records , after that she/he will need to tap the action in corresponding parent record.

However if the view is arranged such that the related child records are added/updated from the corresponding parentโ€™s detail record, then overall operation will be user friendly.

There could of course be more efficient solutions.

Hi @Greg_Huston,Alternatively, an easier approach, if feasible for you,. You may wish to calculate the total cost value in your parent table by using spreadsheet formula just for that real total cost column ( and any similar aggregate column).

This approach will update the total cost in the parent table as soon as user saves the child table record.

Something similar has been done in Order Capture sample app. Please refer to Orders table Total Cost column

appsheet.com - Order Capture - An app for managing customers, products, and orders. Order Capture - An app for managing customers, products, and orders. appsheet.com

Check this sample app appsheet.com - EventAction - Created by Aleksi EventAction - Created by Aleksi appsheet.com

Top Labels in this Space