Oracle Apex-如何检查交互式网格的所有行是否都已删除?

时间:2018-06-29 18:30:50

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

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

是否可以通过编程方式进行检查?

1 个答案:

答案 0 :(得分:0)

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
    }