Advanced Datatype Example 2c
uVIEWS on top of dynamic functions:
ØCompletely hide 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 globals
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           )