Create an Oracle Reports Parameter form application in HTMLDB
I am investigating whether I can satisfy following requirement using HTMLDB and if yes, then what are the steps to be followed.
The idea is simple. Store Oracle Reports name, parameter names, default values etc. in a table and write an application which will display a list of reports on your left, on clicking a report, use the param names stored in the table to display a form to accept values for each parameter and the submit button calls a URL pointing to the Oracle Reports Server.
This can be done easily using Oracle Forms but I am investigating if this can be done using HTMLDB since it's 100% thin client.
Any comments, hints etc. appreciated.
Thanks,
Manish
Thanks.
I had already seen the how-to article but my requirement was a little different since each Param Name, Value will be stored in seperate record. If a report has 4 parameters, then the table will have 4 records, one for each parameter. Here's a sample table structure that I am using.
rep_name varchar2(100)
,param_name varchar2(100)
,sort_order integer
,param_len varchar2(100)
,param_data_type varchar2(100)
,param_required varchar2(1) default 'N'
,param_description varchar2(100)
,default_value varchar2(1000)
,lov_sql varchar2(1000)
I was in fact able to achieve what I want by using a Tabular Form with the parameter description display only and default value updateable and it's submit button can be redirected to the reports URL with form fields substitution. I will use cgicmd.dat to map username/password so that it's not visible in the url.
My additional questions:
1. As per the table structure above, I have a lov_sql text field. Is it possible to create an LOV on the tabular form using this lov_sql?
2. Above the tabular form, I want to display a drop-down-list with a list of reports. When a user selects a list-item, I want to refresh the page with it's tabular form showing parameters for that report. Kind of parameterizing the Form display. Is this possible? If not what are the alternatives?
Thanks,
Manish
Similar Messages
-
Oracle Reports Parameter Form trouble on SuSE Linux
I have the report compiled on AIX 5.2, everything's fine, the same source file I compiled on SuSE Linux 8.0, the format of parameter form is totally screwed up. I compared the HTML source of those 2 parameter forms, and found the code generated by Oracle Reports.
on AIX 5.2:
<!-- Created by Oracle Reports 08:27 Tue Jul 12 08:27:03 AM, 2005 -->
<table border=0 cellspacing=0 cellpadding=0 width=379>
<tr><td width=8><td width=9><td width=59><td width=9><td width=33><td width=22><td width=17><td width=119><td width=33><td width=45><td width=21><td width=1><td width=3>
<tr><td colspan=13 height=19>....
on Linux:
<!-- Created by Oracle Reports 08:23 Tue Jul 12 08:23:50 AM, 2005 -->
<table border=0 cellspacing=0 cellpadding=0 width=4>
<tr><td width=1><td width=1><td width=1><td width=1>
<tr><td colspan=4 height=0>...
As you can see the setting width=4 in the table tag on Linux squeeze up the table a lot.
Where do I configure to prevent this happened?
thanks,
JessThanks.
I had already seen the how-to article but my requirement was a little different since each Param Name, Value will be stored in seperate record. If a report has 4 parameters, then the table will have 4 records, one for each parameter. Here's a sample table structure that I am using.
rep_name varchar2(100)
,param_name varchar2(100)
,sort_order integer
,param_len varchar2(100)
,param_data_type varchar2(100)
,param_required varchar2(1) default 'N'
,param_description varchar2(100)
,default_value varchar2(1000)
,lov_sql varchar2(1000)
I was in fact able to achieve what I want by using a Tabular Form with the parameter description display only and default value updateable and it's submit button can be redirected to the reports URL with form fields substitution. I will use cgicmd.dat to map username/password so that it's not visible in the url.
My additional questions:
1. As per the table structure above, I have a lov_sql text field. Is it possible to create an LOV on the tabular form using this lov_sql?
2. Above the tabular form, I want to display a drop-down-list with a list of reports. When a user selects a list-item, I want to refresh the page with it's tabular form showing parameters for that report. Kind of parameterizing the Form display. Is this possible? If not what are the alternatives?
Thanks,
Manish -
I am unable to get order by column name in oracle report parameter form
i created query like following in query builder
SELECT CASE_NO, COURT_ID, CASE_TYPE,
INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
LEGAL_FILE_NO, MSNO
FROM L_CASE_MASTER_MAIN
WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
and i created parameter form for these two bind variables :P_NHD,:P_COL
in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN' to get all the columns.
in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
kindly let me know the solution
Report Version :Oracle Reports 11g
Db Version:Oracle 11gHi,
Ordering the column first takes place from the Data Model Itself.
Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
Remove your order by in query...
If any issues... let me know
Regards,
Soofi -
Not getting Reports Parameter Form in web-forms environ
I am not able to get a report parameter form to appear for a
report called from forms via a 'run_product' command. It works
fine in client/server mode. In web-forms the report just goes
ahead and runs without the needed parameters. I have tried
explicitly passing a parameter list with the 'paramform' set to
'yes' and this did nothing. I have this on a NT box with latest
Dev2 patches applied.
1. Is the reports parameter form supposed to work in web-forms
mode?
2. How do you set it up to work, if it is supposed to work?
Thanks for any replies.
nullI guess you have to use web.show_document - I found this article
on DevConnect:
Article-ID: <Note:68647.1>
Circulation: PUBLISHED (EXTERNAL)
Platform: GENERIC Generic issue
Subject: How to show Reports HTML PARAMFORM when
calling Reports
from Forms
Modified-Date: 09-AUG-1999 18:02:04
Document-Type: BULLETIN
Content-Type: TEXT/PLAIN
Impact: MEDIUM
Component: SQLREP
PURPOSE:
This bulletin explains how to overcome the current restriction
of calling an Oracle Report from Oracle Forms and showing a
PARAMETER FORM. This is currently not possible when using the
RUN_PRODUCT built-in with
WEB DEPLOYED APPLICATIONS.
DESCRIPTION:
When you call an Oracle Report from Oracle Forms using
RUN_PRODUCT in Client-server, you can specify an optional
parameter called PARAMFORM to display the parameter form defined
in the Oracle Report.
For web-deployed applications, the PARAMFORM parameter can be
set to HTML to produce a HTML version of the parameter form.
When calling Oracle Reports from an Oracle Form using
RUN_PRODUCT and specifying PARAMFORM=HTML in the parameter list,
the Oracle Reports parameter form doesn't show the in the client
browser. If the Oracle Reports Cartridge/CGI is used and
PARAMFORM=HTML is specified, then the Oracle Reports parameter
form does appear in the client browser.
Oracle Forms does not use either the Cartridge or the CGI with
RUN_PRODUCT, and it's these thin clients that produce the HTML
Oracle Reports parameter form.
As a workaround to this problem, you can use either the
Cartridge or the CGI with the WEB.SHOW_DOCUMENT Oracle Forms
builtin. This does require either the Oracle Reports Cartrige
or the CGI to be installed. Neither of these are necessary if
the parameter form isn't required.
INSTRUCTIONS:
The following items need to be installed:
1. Oracle Reports Multi-tier Server.
2. Oracle Reports Web Cartridge
or
Oracle Reports Web CGI.
Here is a typical URL that can be specified in a browser
to run a report using Oracle Reports Cartridge implementation:
http://your_webserver/r30ows?
server=repserver21+report=emp_30.rep+
destype=cache+desformat=html+userid=scott/tiger@mydb+paramform=ht
ml
For CGI implementation:
http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
server=repserver21+report=emp_30.rep+destype=cache+desformat=html
userid=scott/tiger@mydbparamform=html
The Oracle Reports parameter form now is shown. This can be
used with WEB.SHOW_DOCUMENT issuing the request to execute the
report to the Oracle Reports Multi-Tier Server instead of using
RUN_PRODUCT.
The following code may be added to a program unit, which then
issues the request to run the report:
IF get_application_property(user_interface) = 'WEB' then
/* Use Cartridge configuration with WEB.SHOW_DOCUMENT. */
WEB.SHOW_DOCUMENT('http://your_webserver/r30ows?
server=repserver21+report=emp_30.rep+destype=cache+desformat=html
userid=scott/tiger@mydbparamform=html', '_self');
/* OR for CGI configuration. */
WEB.SHOW_DOCUMENT
('http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
server=repserver21+report=emp_30.rep+destype=cache+desformat=html
userid=scott/tiger@mydbparamform=html', '_self');
ELSE
/* use RUN_PRODUCT for client-server with PARAMFORM=Yes. */
Add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'YES');
RUN_PRODUCT
(REPORTS,'emp_30.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,plid);
END;
RELATED DOCUMENTS:
Developer/2000: Guidelines for Building Applications, Deploying
Applications on the Web (for detailed instructions on setting up
the Oracle Reports Cartridge and CGI)
Laura (guest) wrote:
: I am having the same problem with Dev 6 on NT. The parameter
: screen for reports works in client/server but not web using
run-
: product. I am getting error REP-0788: Warning the value of
the
: restricted LOV parameter is not among the selectable values.
: Any reports without a parameter screen work fine with run-
: product.
: Any help would be appreciated.
null -
How to display Reports parameter form in Oracle Forms 10g.
hello,
am migrating from Forms 6i applications to Forms 10g.
one of my application contain report, that report display parameter form
I wrote below code for WHEN-BUTTON-PRESSED Trigger
DECLARE
pl_id ParamList;
v_report_id report_object;
v_report varchar2(100);
vjob_id varchar2(100);
vc_rep_status varchar2(100);
BEGIN
pl_id := create_parameter_list('my_list');
add_parameter (pl_id,'P_HOSPITAL_ID',text_PARAMETER,
:bm_hospitals.hospital_id);
add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
v_report_id := FIND_REPORT_OBJECT('bm_r001');
v_report := RUN_REPORT_OBJECT ( v_report_id,pl_id );
vjob_id := substr ( v_report, length(<reportservername>)+2,
length( v_report) );
vc_rep_status := REPORT_OBJECT_STATUS (v_report);
IF vc_rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
bedman/bedman@bedman'||'¶mform=yes','_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
Destroy_Parameter_List(pl_id);
END;
The Above code is running report and displaying Output perfect but cannot
display the Parameter Form at runtime.
any help in this very thankful.
Regards
Gagan.In Your code there is a line:
add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
which actually disables the report parameter form.
The line:
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
bedman/bedman@bedman'||'¶mform=yes','_blank');
displays the report to which vjob_id refers. At this point the report is competed so the parameters userid and paramform are useless.
Hope this helps.
Regards
Bekcic Aleksandar -
Report parameter form in ADF/JHS
I am looking for the best way to develop a ADF page (with or without JHS) similiar to the Headstart report parameter form in Oracle Forms. I found a dynamic parameter form example on Steve Meunch's "Not Yet documented ADF Sample Applications", #93 that seems ideal. Has anyone implemented this approach using the existing Headstart tables? How were the LOV queries handled?
Any feedback would be appreciated.Hi Carl,
Include PARAMFORM=YES in the URL to display the parameter form in RDF to be displayed in the web.But it is showing a submit and reset button at the top.I am not sure how to get rid of it.Hope this will help
Gracelin -
Report Parameter form not showing list of values in Report svr
I was using reports 6i where I used to have list box in report parameter form. I now converted recompiled my reports in 10g and when I run I am not geting the list of values. I get the values as a list below the field
ex.
ITEM :___________
box,book,pencil,rubber,
dvd,floppy...
previously it was coming as a list in the item field
thanks
MGHello,
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/howto/params/pmp_creating_list_of_values.htm?tp=true
If you run the report from a Web browser and the list of values is unrestricted, the HTML Parameter Form will display a text field instead of a combo box, and a list of static values that you can copy and paste into the text field.
Regards -
REP-50134 occurs when using the submit button on the Reports Parameter Form
Good Morning,
I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
I am using Forms/Reprots 9i.
Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
Thank youHello and thanks.
The value in the tag is <form method=post action="reports?">
Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
Can you confirm?
Thanks for any clarification you can provide. -
How to work Oracle report in Forms
Hi Everyone.
I am new to Oracle Forms and reports.
I just created i Oracle report based on emp table and saved as stud_rept.rdf and imported in forms under reports object namely 'REPORT2' in object Navigator and changed their properties as
file name: G:\Projects\emp_report.rdf
Execution mode : runtime
communication mode: synchronous
datasourceblock : null
report destination type:screen
then i created one datablock based on emp table, created one button then written a trigger code under when_button_pressed as
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT2');
v_rep := RUN_REPORT_OBJECT(repid);
END;
when i click the button in browser i'm getting error as
frm-41211 integration error: SSL failure running another product
can any1 tell me how to run a report in Oracle Forms? i am new to this one..Hi denis..
thanks for your reply..
I added Report server property to 'REPORT2'. i am getting the runtime error as
FRM-41213 Unable to connect to the report server 'REPORT2'.
can u pls tell me how to solve this? -
PDF file created from Oracle Report is attached wrongly
Hi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2, document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
BuntoroThe code looks absolutely good. I have the same code working in my system. Only difference is I use TRUE and DBMS_LOB.Session for the BLOB I use to read from the BFILE.
I can suggest one more way to handle to binary attachments if you are on Oracle 9i DB are later versions.
procedure attach_document (p_document_id in varchar2,
p_display_type in varchar2,
p_document in out nocopy clob,
p_document_type in out nocopy varchar2)
is
l_nid number;
l_directory varchar2(100);
l_filename varchar2(100);
l_content_type varchar2(100);
l_src_offset binary_integer := 1;
l_dst_offset binary_integer := 1;
l_err_msg varchar2(100);
l_amount number;
l_bfile BFILE;
l_blob BLOB;
l_clob CLOB;
file_not_found exception;
pragma EXCEPTION_INIT(file_not_found, -22288);
begin
l_nid := to_number(p_document_id);
l_directory := trim(wf_notification.GetAttrText(l_nid, 'ATTR_DIRECTORY'));
l_filename := trim(wf_notification.GetAttrText(l_nid, 'ATTR_FILENAME'));
l_content_type := trim(wf_notification.GetAttrText(l_nid, 'ATTR_CONTENT_TYPE'));
l_bfile := BFILENAME(l_directory, l_filename);
dbms_lob.createtemporary(l_blob, true, dbms_lob.Session);
dbms_lob.createtemporary(l_clob, true, dbms_lob.Session);
begin
dbms_lob.FileOpen(l_bfile, dbms_lob.File_Readonly);
exception
when file_not_found then
l_err_msg := to_char(sqlcode)||' - Attachment File "'||l_filename||'" is not found.';
raise_application_error(-20002, l_err_msg);
end;
dbms_lob.LoadBLOBFromFile(l_blob, l_bfile, dbms_lob.LobMaxSize, l_src_offset, l_dst_offset);
dbms_lob.FileClose(l_bfile);
-- Encode the BLOB content to BASE64 and attach to notification
wf_mail_util.EncodeBLOB(l_blob, l_clob);
l_amount := dbms_lob.GetLength(l_clob);
dbms_lob.Copy(p_document, l_clob, l_amount, 1, 1);
-- Mention an appropriate Content Type so that Notification System
-- understands the attachment content
p_document_type := l_content_type||'; encoding=base64; name='||l_filename;
end attach_document;Here I read the BLOB from the filesystem and base64 encode it before giving it to the Mailer. Please note that this is a PLSQLCLOB based attachment as against PLSQLBLOB that you are using.
Thanks - Vijay -
PDF file created from Oracle Report is created wrongly using dbms_lob
Hi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2,
document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
BuntoroHi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2,
document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
Buntoro -
Urgent! Using Reports parameter forms with RUN_REPORT_OBJECT on 9iAS
Hi all, I am migrating client-server to 3-tier with 9iAS Rel2 on AIX 5.1. The forms and reports are upgraded from Forms4.5 to forms9i and Reprots 2.5. We used to have user defined parameter in parameter form(e.g. articale no.) to select records appearing in the report.
However, the Report parameter form doesn't work on web.
I have read Note : 139546.1 but I want the parameter entered in Report parameter form, not in the Form that call the report.
Does anyone has samples of Forms and Reports doing to achieve that? Thank you very much in advance.
best regards,
KathyKathy,
please have a look at the Forms and reports integration Whitepaper that is available from otn.oracle.com/products/forms. This shows you a coding example of what needs to be done to make parameter forms work on teh Web. This papaer is available for Forms9i/Reports9i and Forms6i/Reports6i
Frank -
Report Parameter Form not displayed
When I ran a report using the following procedure code in web-enabled Oracle forms ,
PROCEDURE RUN_REPORT IS
pl_id ParamList;
BEGIN
pl_id := get_parameter_list('tmpdata');
if not id_null(pl_id) then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list('tmpdata');
add_parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'YES');
run_product(REPORTS, 'D:\ORACLE\DIVISION', SYNCHRONOUS, runtime, FILESYSTEM, pl_id, NULL);
END;
No parameter form was displayed. What do you suspect? Or report parameter form cannot be used in web-enabled Oracle forms.
Hope some experts here broaden my mind!
Many thanks,
RichardRichard,
passing paramform=yes will do it. However, beside of that I wouldn't recommedn using run_product for reports on the Web, indeed paraneter forms are a bit tricky and don't work out of the box. There is a work around that i documented in a Forms/Reports integration Whitepaper available in teh Forms6i collateral section on otn.oracle.com/products/forms. This description uses run_report_object, addressing the Reports Server.
Frank -
How to call oracle reports from ADF application.
Hi
I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
Dario -
URGENT: Report parameter form set to yes in calling report from menu
I have write this code for calling report from menu module. But where i put the code
PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
DECLARE
pl_id ParamList;
repid REPORT_OBJECT;
v_rep varchar2(100);
v_server VARCHAR2(100);
rep_status varchar2(100);
v_host VARCHAR2(100);
BEGIN
select rep_server into v_server from reports_data;
select machine into v_host from reports_data;
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
repid := find_report_object('REPORTOBJ');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
message('Running');
END LOOP;
IF rep_status = 'FINISHED' or rep_status is NULL THEN
WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
ELSE
null;
END IF;
END;Jeneesh,
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
'paramform=YES
what about this variable ?
P_VAR1 = ........');
Maybe you are looking for
-
How to create a rule for distribution list
I have users in a distribution list that all require a specific rule to be created for them. I have been able to create a a rule to distribute in Exchange management shell which works properly but I have found out that the rule will not be visible to
-
I just bought an iphone 4s while my wife has already been using an iphone 4s for months. I wish to sync my iphone to the same macbook(account) as my wife's iphone as we use the same apps and listen to the same music. But we would like to have separa
-
Alternatives to Cross Project Links
Hi, Cross Project Links (External Tasks) is an out-of-the-box feature that allows to create dependencies between workplans. The basic functionality has not changed from Project Server 2003 (or ever in earlier versions) to Project Server 2013, includi
-
Client requirement, Open items clearing strategy should be last in first out Example: - open items Due dates 20.04.2010 - 1000 20.05.20
-
I have purchased Monster Mouth and it didnt download in my ipad
please can anybody help with this issue. im trying to report the problem using itunes and its impossible, they always send me to de main page that explain the way to made the itunes solution. BUT IT DOESNT WOORKKK!!!!!!! They already made the charg