Hi, I am developing my 1st apps where it basically quite similar to purchase order concept where it consisted of PO header and several line items. The line items are created using repeating table from collection where some entries are manual and few are formulated (eg lookup formula, multiply, sum up). The newly created record are saved into SP using patch formula.
The challenges that I am having now is when I add a gallery to edit the line items. The gallery records are from SP and when changes are made against the records, how can I activate the formula (eg lookup formula, multiply, sum up)? Rather than allowing the record mapped from SP, I would like to see the new entries or changes made by user can be formulated when edit button is clicked.
Below is the snapshot from the Edit Screen.

Currency - Dropdown selection which made by User
Acc. Rate - lookup formula from another SP when currency drop down is selected by User
Amount - Multiply formula (Qty x Unit price)
Amount USD - Multiply formula (Amount x Acc. Rate)
Hope to have guidance from expert here. Thanks.