Total Sum,Avg,Count Column Wise
Step: 3
=====
Create Interactive Grid and SQL Query Change for Automatic Total value show 0.
SQL Query:
select ID,
RETURN_BILL,
PRODUCT_ID,
QTY,
ENTRY_BY,
ENTRY_DATE,
UPDATE_BY,
UPDATE_DATE,
ANIMAL_TYPE,
AMOUNT,
'row-show' ROW_SHOW_HIDE
from PURCHASE_RETURN_DETAILS
where RETURN_BILL=:P28_RETURN_BILL
union all
select
-100 ID,
null RETURN_BILL,
null PRODUCT_ID,
null QTY,
null ENTRY_BY,
null ENTRY_DATE,
null UPDATE_BY,
null UPDATE_DATE,
null ANIMAL_TYPE,
null AMOUNT,
'row-hide' ROW_SHOW_HIDE
from dual;
Note: You can not hide ROW_SHOW_HIDE column. But you can do Custom Attributes --> readonly
------------------------------------------------------------
Select ROW_SHOW_HIDE Column and
Go to Column Initialization JavaScript Function
Step:2
=====
Inline CSS:
tr:has(.row-hide){
display: none!important;
}
.a-GV-row.is-aggregate.a-GV-aggregate--SUM.is-grandTotal {
bottom: 0!important;
position: sticky!important;
z-index: 101;
}
=====
=====
Create Dynamic Action:
Event: Change
Action: Execute Javascript Code :
=====