How to calculate total & grand total in master-detail form with Interactive Grid in oracle apex

  Рет қаралды 6,332

nam-ora-apexify

nam-ora-apexify

Күн бұрын

#masterDetail #Oracledatabase #OracleApex #Sql #PLSql #javascript
In this video, I have explained how to calculate total & grand total in master-detail form with Interactive Grid in oracle apex 20.2 in detail.
---------------------Facebook Link--------------------------------
/ namoraapexify
------------------Master-Detail Form--------------------------------------
• How to create manual a...
------------------------------Grand Total showing in tabular Form---------------------
• How to display grand t...
// for calculating total
var qty = ($v("C_QTY") != "")?parseFloat($v("C_QTY")):0;
var price = ($v("C_PRICE") != "")?parseFloat($v("C_PRICE")):0;
var tot = 0;
if(!isNaN(qty) && !isNaN(price)){
tot = qty*price;
}
$s("C_TOTAL", tot);
// For calculating Grand Total
var model = apex.region("item_dtl").widget().interactiveGrid("getViews", "grid").model;
var qtyKey = model.getFieldKey("QTY");
var totKey = model.getFieldKey("TOTAL");
var totQty = 0;
var totAmt = 0;
model.forEach(function(r) {
var qty = parseFloat(r[qtyKey], 10);
var tot = parseFloat(r[totKey], 10);
if (!isNaN(qty)) {
totQty += qty;
}
if (!isNaN(tot)) {
totAmt += tot;
}
});
$s('P83_TOTAL_QTY',totQty);
$s('P83_GRAND_TOTAL',totAmt);

Пікірлер: 11
@danieldallagnol6068
@danieldallagnol6068 Жыл бұрын
The best.Congratulations. Simple and efficient
@vibhordutt9461
@vibhordutt9461 Жыл бұрын
Hi, Your videos are really helpful, Thank you for sharing this info. can you guide me in one case? I am creating a Master detail form which has nested detail regions, I am having issue to generate the sequence for the second detail level
@nazmulhaque4007
@nazmulhaque4007 Жыл бұрын
Spacially Thanks for the calculation Code put in description.
@nazmulhaque4007
@nazmulhaque4007 Жыл бұрын
Realy Nice and Usefull Vedio, Thanks a Lot
@SathiSobuj
@SathiSobuj 2 жыл бұрын
This was very helpful for me. Thank u.
@imranhasan590
@imranhasan590 Жыл бұрын
যখন Details তে Quantity এবং Price দেই তখন Total টাকা দেখায়। কিন্তু Create করার পর যখন pencil icon তে Click করে detail check করি তখন Total টাকা আর দেখায় না,,,, এই সমাধান কিভাবে স্যার। দয়াকরে জানাবেন। 🙂
@sameralsombaty4447
@sameralsombaty4447 Жыл бұрын
Very good
@sonjoydas1824
@sonjoydas1824 Жыл бұрын
calculating total part is not working apex 21..
@usmanAli-hw5xu
@usmanAli-hw5xu 2 жыл бұрын
calculating total part is not working apex 21..
@nam-ora-apexify
@nam-ora-apexify 2 жыл бұрын
Will work. Follow the steps carefully
@vamsipratthi5367
@vamsipratthi5367 Жыл бұрын
Yes, it's not working
Oracle APEX Master Detail Concepts and Demo
30:51
ERPstuff
Рет қаралды 2,5 М.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 45 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 29 МЛН
Oracle APEX 23.2 Workflows Demystified - Setup and Demo
20:21
#OracleApex #checkbox/#AllCheckbox (#selectall) in interactive Report
20:17
Priyabrata Chakraborty Oracle Apex jquery
Рет қаралды 6 М.
Oracle APEX - Interactive GRID Get Selected Values #oracle #oracleapex #apex
12:35