hi all
i am new in oracle!
i made one simple form with report and i made one print button
with trigger.(when-button-pressed)
when i press the print button so its giving me whole data,i do not want whole information of the database i want to print particular record..
some one told me use query but i do not know where i place that query.
can anyone guide me how can we display the particular data in PDF format?
here is my print button code:
- DECLARE
-
repid REPORT_OBJECT;
-
v_rep VARCHAR2(100);
-
rep_status VARCHAR2(20);
-
BEGIN
-
repid := FIND_REPORT_OBJECT('REPORT9');
-
v_rep := RUN_REPORT_OBJECT(repid);
-
rep_status := REPORT_OBJECT_STATUS(v_rep);
-
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
-
LOOP
-
rep_status := report_object_status(v_rep);
-
END LOOP;
-
IF rep_status = 'FINISHED' THEN
-
/*Display report in the browser*/
-
WEB.SHOW_DOCUMENT('http://sara:8889/reports/rwservlet/getjobid'||
-
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
-
ELSE
-
message('Error when running report');
-
END IF;
-
PAUSE;
-
END;
i hope so i will get prompt answer
please guide me i am really fed up now.
Sarah