发布表格形式时,每个记录中的项目可通过“ APEX_APPLICATION.G_Fnn”数组供PL / SQL代码使用。G_F01对应于第一个可编辑列,G_F02对应于第二个列,依此类推。例如,您可以遍历每条记录并按如下方式访问每个字段的过帐值:
FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP htp.p('Column A row '||I||' has a value of '||APEX_APPLICATION.G_F01(i)); htp.p('Column B row '||I||' has a value of '||APEX_APPLICATION.G_F02(i)); END LOOP;
如果第一列是一个复选框,则只有选中的复选框才会在数组中具有一个条目:
FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP htp.p('Checkbox on row '||APEX_APPLICATION.G_F01(i)||' was checked'); htp.p('Column B on that row has a value of ' ||APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i))); END LOOP;