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!

IG grid new record cell setActiveRecordValue NOT saved by "Save" button even data seems saved

seanzhNov 19 2025 — edited Nov 19 2025

Hi,

Our Apex is 24.2.10,

Please see screenshot about my IG grid here. Qty must be multiple of break qty CIP, say this item has break qty=6 and the user types 8, I will round it to 12 automatically by using Qty column's change event like here. it works fine, the problem is Save button doesn't seem clearing out data “changed” status even the data itself is saved, and it only happens with INSERT (new record), I found out this grid is still marked as Changed during refresh , any idea how can I make a clean SAVE for such grid with column value manipulations ? Thank you

var grid$ = apex.region( "CART_IG_ID" ).call( "getCurrentView" ).view$;
       if (qty_hold % cip_qty >0)// not even muliplte of  CIP?     
     // suppress this change otherwise this handler will be triggered again
        $x("QTY_ID").value= Math.ceil(qty_hold /cip_qty)*cip_qty;

       // let's reset the line total
       $x("LINETOTAL_ID").value= (parseInt($v("QTY_ID") ) * price).toFixed(2);
       // make change showing
         grid$.grid("lockActive");
       setTimeout( function() {
        grid$.grid( "setActiveRecordValue", "QTY" );
       grid$.grid( "setActiveRecordValue", "LINETOTAL" );
        grid$.grid( "unlockActive" );
        }, 10 );
       

Screenshot 2025-11-19 at 5.59.08 PM.png

This post has been answered by Karel Ekema on Nov 21 2025
Jump to Answer
Comments
Post Details
Added on Nov 19 2025
21 comments
416 views