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!

Refreshing 1 Record for Content Rows,Cards etc.

orkun_tunc_bilgic47 hours ago — edited 46 hours ago

Normally i'm using refresh dynamic action or plugins to keep pagination for refreshing just 1 row which is not efficient way to do that.

For example you have card , content row etc. region and you open a dialog to edit details then on dialog closed you want to refresh that specific record to show changes to user. Currently as i understand there are no way to do that with dynamic actions natively in oracle apex. After a little bit investigation i found that we can use model.fetchRecords() approach not just interactive grid but cards , content rows too.

Then i tried it like this for Content Row region →

var rowKey = "13";
var model = $( "#regionStaticID_TemplateComponent" ).tableModelView('getModel');
var record = model.getRecord(rowKey);
model.fetchRecords([record]);

But i faced with annoying issue which is record disappearing from page. After i go to previous page then next page again i can see updated row. So it is actually updating the value but it's not rendering the row correctly.

Am i doing something wrong ? Do you have any suggestions or maybe simple workaround to do this ?

Apex Version: 24.2.11

Comments
Post Details
Added 47 hours ago
2 comments
63 views