In Oracle Apex, in master-detail form, my detail is interactive Grid
I want calculation on runtime like when I give some value in the amount column in the first row then add a row and again I input some value in the amount column both rows some show in page item in master on runtime
Specify a static id to your grid, for example, igitems.
Now create a dynamic action on the amount column of IG for change event. Create a true action as Set Value. Set the type as PL/SQL expression. Specify the PL/SQL expression as :AMOUNT. Submit item AMOUNT. Set affected items Px_AMOUNT. Then create another true action to execute JavaScript code and add the following code in it:
Suppose you have an item Px_AMOUNT on your page. The above program will calculate the sum of the amount column and will set the value of the Px_AMOUNT item.