473,416 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

how can we display particular record by using oracle report

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:


Expand|Select|Wrap|Line Numbers
  1. DECLARE 
  2. repid REPORT_OBJECT;
  3. v_rep VARCHAR2(100);
  4. rep_status VARCHAR2(20);
  5. BEGIN
  6. repid := FIND_REPORT_OBJECT('REPORT9');
  7. v_rep := RUN_REPORT_OBJECT(repid);
  8. rep_status := REPORT_OBJECT_STATUS(v_rep); 
  9. WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') 
  10. LOOP 
  11. rep_status := report_object_status(v_rep); 
  12. END LOOP; 
  13. IF rep_status = 'FINISHED' THEN 
  14. /*Display report in the browser*/ 
  15. WEB.SHOW_DOCUMENT('http://sara:8889/reports/rwservlet/getjobid'|| 
  16. substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank'); 
  17. ELSE 
  18. message('Error when running report'); 
  19. END IF;
  20. PAUSE;
  21. END;
i hope so i will get prompt answer


please guide me i am really fed up now.


Sarah
Jul 7 '09 #1
6 3709
acoder
16,027 Expert Mod 8TB
Hi, welcome to Bytes.
@sarahaman
Not if you post in the wrong section. I've moved your thread to the correct place for Oracle questions where you should get a better response.

Please also remember to use code tags when posting code. Good luck!
Jul 7 '09 #2
amitpatel66
2,367 Expert 2GB
The output is coming from the oracle report. So in order to filter the records that you dont want, you will need to modify the SQL Query in Oracle Reports rdf file. Doing that, your report will give you only the data that you want.

I hope this gives you an idea on what you need to do exactly. Do post back in case you are not able to understand.
Jul 8 '09 #3
dear sir

actually i want to pass parameters form to report i used so many ways to do it but unfortunatly i m failed.I am little bit confused when i give the value to parameter is passing only the same value which one i specified in

plid paravalues number :='10';

but when i remove value 10 then report is coming blank

i do not want to specify value in variable i want it took value from text field the same value what i entered in the text box.
i hope u got me
waiting for prompt answer

sarah Aman
Jul 9 '09 #4
amitpatel66
2,367 Expert 2GB
Try this sample code which would help you pass parameters from form to report:

Expand|Select|Wrap|Line Numbers
  1. DECLARE
  2.          id_pl            ParamList := NULL; 
  3.     v_repid         REPORT_OBJECT;
  4.     param_list_name    VARCHAR2(30) := 'para_lista';
  5. v_rep             VARCHAR2(100);
  6.  
  7. NREPORT         VARCHAR2(30) := ‘myreport’;
  8. MYWHERE        VARCHAR2(300) := ‘’;
  9. INTESTA_RP        VARCHAR2(300) := ‘’;
  10. BEGIN
  11.        v_repid     := find_report_object(NREPORT );
  12. Id_pl         := GET_PARAMETER_LIST(param_list_name); 
  13. IF NOT ID_NULL(Id_pl) THEN 
  14. DESTROY_PARAMETER_LIST(Id_pl);
  15. END IF;
  16. id_PL         := CREATE_PARAMETER_LIST(param_list_name);
  17. --
  18. ADD_PARAMETER(ID_PL, 'PARAMFORM',     TEXT_PARAMETER, 'NO');
  19. ADD_PARAMETER(ID_PL, 'MYWHERE',      TEXT_PARAMETER, MYWHERE);
  20. ADD_PARAMETER(ID_PL, 'INTESTA_RP',    TEXT_PARAMETER, INTESTA_RP);
  21.  
  22. V_REP  := run_report_object(v_repid,id_PL);
  23.  
Make sure you create a parameters with the same name as the parameter
that you are passing in the parameter list
Jul 9 '09 #5
thanks alot i have recoverd its working now.


now i am trying to pass more parameters


thanks for everything


sarah
Jul 10 '09 #6
i wonder so many ppl is facing the same problem and no one knows how to start report server in 10g v-10-1-2 including me

everyone is getting the same error:

FRM- 41213: Unable to connect to the report servername



sarah amam
Jul 12 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Will | last post by:
I am trying to send a report by email using DoCmd.SendObject acSendReport. When I send the report, it sends the report with all the records whereas I only want the report to show one record. I...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
9
by: MLH | last post by:
Trouble is, it doesn't happen every time. Yesterday, for example, it happened only once and not again afterward. Some days ago, a similar situation. Today, well - I tried 7 times straight to open...
1
by: Beowulf | last post by:
I'm having some difficulty and I can't for the life of me figure out why. I have a main report, rptMain, that contains a report header (displays the AppTitle), 3 group headers (one is a header...
1
by: Peter Herath | last post by:
I have created a report using sample codes taken by the forum. one problem is that the report displays the field/column names in the table in columnar format(field names display in rows.) but i want...
1
idsanjeev
by: idsanjeev | last post by:
<%@ Language =vbscript%> <% Option Explicit %> <html> <head><TITLE>VOICE OF BARAUNIANS</TITLE></head> <body> <!--#include file="front.inc"--> <div style="Position:Absolute; width:700; TOP:0;...
2
by: smorrison64 | last post by:
I have a form that is coded to open a File Dialog boc to pick a picture to display on that particular item on a subform. My form is not based on query, but rather two separate tables (one primary,...
1
by: =?Utf-8?B?UnVzc2VsIExvc2tp?= | last post by:
I am developing a web application using VS 2008. We have included the AjaxControlToolkit. We have a report page. You select the fields you want to see and the filters you want to apply. They...
6
by: Gord | last post by:
I have a report whose Record Source I set in code when clicking on a command button on a form. This Record Source is a table that gets created by the code. I have a textbox on the report whose...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.