使用Interactive Grid API中的“IG$”对象来手动刷新网格。在提交按钮或链接的Click事件处理程序中,添加以下代码:
apex.server.process('MY_PROCESS', {
// process parameters here
}).then(function(){
// refresh the Interactive Grid using the IG$ object
var igId = 'my_ig'; // replace with the ID of your Interactive Grid region
var ig = apex.region(igId).widget().interactiveGrid('getViews', 'grid'); // get the Interactive Grid view object
ig.model.fetchRecords(); // refresh the data
});
其中,“MY_PROCESS”是您的处理程序的名称,可以通过APEX开发环境中的“Processes”页面进行定义。在以上代码中,IG$对象获取并刷新了Interactive Grid的数据模型。此方法可以确保在提交后立即更新网格视图。