首页 > 解决方案 > Oracle Apex - 如何检查交互式网格的所有行是否已被删除?

问题描述

我想知道如何检查交互式网格的所有行是否已被删除。

有没有办法以编程方式检查?

标签: oracleoracle-apex-5oracle-apex-5.1

解决方案


I got an answer to this,hope this helps for those who are in need.
Fetch your grid info :
 var igrid = apex.region ("regionStaticID").widget().interactiveGrid("getViews", "grid");

{where regionStaticID is the interactive grid static id}

if(igridL.model._numInsertedRecords === 0)
    {
                   // do whatever you want here when there are no rows in the grid
    }

推荐阅读