[ kosovic @ 10.05.2016. 06:42 ] @
Kada pokušam da kompajliram kod u PL/SQL Editoru, dobijam poruku greške "Error 201 at line2 column7 identitifier "PARAMETERLIST" must be declared, tako i za P1_TD i još neke promjenljive. Nov sam i ovo me tako zbunjuje.

DECLARE
p2_id ParemeterList;
p1_name VARCHAR2(10):='tempdata ';
v_report_id Report_Object;
vc_rep_status VARCHAR2(100);
vjob_id VARCHAR2(200);
BEGIN
p1_id:=Get_Parameter_List(p1_name);
If not Id_null(p1_id) THEN
Destroy_Parameter_List(p1_name);
Add_Parameter(p1_id);
end if;
p1_id:=Create_Parameter_List(p1_name);
Add_Paremeter(p1_id,'DEPT_ID',TEXT_PARAMETER,:BLOCK3.DEPT_ID);
v_report_id:=FIND_REPORT_OBJECT('EMP');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,:BLOCK3.REP_FORMAT);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CASHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
--SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'parameter=yes');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'parameter=no');
vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id,pl_id);
vjob_id:=substr(vc_ReportServerJob,instr(vc_ReportServerJob,'_',-1)+1);
vc_rep_status:=REPORT_OBJECT_STATUS(vc_ReportServerJob);
If vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservet/getjobid'||'?server='||'rep_adminserver_it-pc_asist_1','blank');
ELSE
message('Report failed with error message'||vc_rep_status);
END IF;
END;