39 of 62
Nested Tables - Example 2d
uCreate a VIEW on the top of the SQL statement.
ØCompletely hides the underlying logic from the UI
ØINSTEAD-OF triggers make logic bi-directional
ØMinor problem: There is still no way of passing parameters into the view other than some kind of global.
u
uCreate or replace view v_generic_lov as
uselect id_nr, display_tx
ufrom table( cast(f_getLov_nt
u (GV_pkg.f_getCurTable,
u GV_pkg.f_getPK(GV_pkg.f_getCurTable),
u GV_pkg.f_getDSP(GV_pkg.f_getCurTable),
u GV_pkg.f_getSORT(GV_pkg.f_getCurTable))
u            as lov_nt)
u           )