Salah satu contoh penggunaanya adalah untuk link verifikasi saat registrasi online, dimana user nanti tinggal di berikan sebuah URL yang langsung menjalankan sebuah procedure dalam DB.
Mengikuti langkah-langkah keren yang telah diberikan oleh Dietmar Aust's Blog,
eh..ternyata tetap saja gagal, karena contoh kasus yang dipakai adalah APEX versi 2 sedangkan yang saya pakai versi 4. coba-coba akhirnya ketemu solusinya.
ternyata untuk menggantikan skema FLOWS_020100 bukan FLOWS_FILES
melainkan APEX_04000 jadi modifikasi script menjadi :
alter session set current_schema=APEX_040000;
CREATE OR REPLACE function wwv_flow_epg_include_mod_local(
procedure_name in varchar2)
return boolean
is
begin
--
-- Administrator note: the procedure_name input parameter may be in the format:
--
-- procedure
-- schema.procedure
-- package.procedure
-- schema.package.procedure
--
-- If the expected input parameter is a procedure name only, the IN list code shown below
-- can be modified to itemize the expected procedure names. Otherwise you must parse the
-- procedure_name parameter and replace the simple code below with code that will evaluate
-- all of the cases listed above.
--
if upper(procedure_name) in (
'TUTORIAL.HELLO_WORLD') then
return TRUE;
else
return FALSE;
end if;
end wwv_flow_epg_include_mod_local;
/
Selanjutnya ikuti saja yang lain.
Jangan lupa untuk menyebutkan schema dan nama procedurenya sama persis (sensitive case). insyaallah berhasil, jika tidak berarti anda belum beruntung :)).
Danke Mr Dietmar Aust
Tidak ada komentar :
Posting Komentar