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!

Don't include a record during interactive grid save based on column values

Phil McDermottDec 4 2021

I would like to exclude an interactive grid row from saving to the database during a custom save dynamic action. Thanks in advance for any help.
Here is the DA Code thus far:
model = apex.region("Aliases").widget().interactiveGrid("getViews", "grid").model;
model.forEach(function(r) {
if (model.getValue(r, "ALIAS_FNAME") == '' && model.getValue(r, 'ALIAS_MNAME') == '' && model.getValue(r, 'ALIAS_LNAME') == '') {
null;
//I want to bypass this row during the subsequent save below even though initialized with another column value');
}
});
apex.region( "Aliases" ).widget().interactiveGrid( "getActions" ).invoke( "save" );

This post has been answered by Hamza Al-abbasi on Dec 7 2021
Jump to Answer
Comments
Post Details
Added on Dec 4 2021
7 comments
1,016 views