Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic row total column that updates as user inputs and tabs out

BillUKJan 8 2019 — edited Mar 31 2019

Hi,

I'm using APEX v18.2 and I have rows in my Interactive Grid table where users are entering numeric values for each day of the week. I would like a Weekly Total column which calculates and displays the weekly total based on summing up the values for the individual days of the week. I would like this to update as soon as the user has entered a value for one of the days and tabbed out. The table is as below:

ItemMonTueWedThuFriSatSunWeekly Total
Apples1010101010101070
Pears20101010202020110
Oranges243124101045

The items rows are not always fixed and the user could add x number of rows depending on how many items they have on order. Currently this column is for display purposes only and I will not be doing anything else with the Weekly Total value.

My question is, how can I achieve this requirement in APEX. I have tried to follow a couple of posts (below) but not had any luck in implementing this. I would be grateful if someone could please outline the main steps or point me in the correct direction of similar examples.

Interactive Grid Cookbook - Dynamic Total Column page

https://jeffkemponoracle.com/2016/04/declarative-tabular-form-dynamic-totals/

https://www.youtube.com/watch?v=eHWtpukGyUE - Oracle APEX | Calculate Tabular Form [Rows & Columns] by JS

Regards

This post has been answered by John Snyders-Oracle on Jan 11 2019
Jump to Answer
Comments
Post Details
Added on Jan 8 2019
12 comments
9,768 views