uSafely limit returned number of rows
u
ufunction f_getLov_nt
u (i_table_tx,i_id_tx,i_display_tx,i_order_tx,
u i_limit_nr)
ureturn lov_nt is
u v_out_nt lov_nt :=
lov_nt();
u v_cur
SYS_REFCURSOR;
ubegin
u open v_cur for
u 'select lov_oty('||i_id_tx||','||i_display_tx||')'||
u ' from
'||i_table_tx||
u ' order by
'||i_order_tx;
u fetch v_cur bulk
collect into v_out_nt
u limit
i_limit_nr;
u close v_cur;
u return v_out_nt;
uend;