Hiding the parameter form
Hi,
we are running reports in Viewer 10.1.2.48.18 using URLs made in Portal.
It works fine but sometimes the parameter form in Viewer is really not needed (even "wanted").
The report needs the parameters but the user has already made the selections in Portal and the LOVs are not very useful when in Viewer.
Is there a parameter I can add or some modification to the sheet I can do, to hide the parameter form?
Kind regards
Tomas Albinsson
Stockholm, Sweden
Well, I thought some more on this...
I wanted to hide the parameters from some reports. They have in common that a part of their title is "(skola)" (meaning school).
So I made a uix-hack. Note that this is not supported and dangerous and...
Make a security copy of the file <mid_home>/j2ee/OC4J_BI_Forms/applications/discoverer/discoverer/Worksheet.uix.
Edit the file.
At the end you'll find
</form>
</contents>
</body>
Add one line of javascript code, ending up with
</form>
<rawText text="<script> if('${uix.eventResult.workbookName}'.indexOf('(skola)')>-1) document.getElementById('paramshs').style.display='none'; </script>" />
</contents>
</body>
The parameter part of the report is kept in a table with the id paramshs. The above javascript code will simply hide that whole table if the name of the report contains "(skola)".
Note the use of < and > instead of < and >, to keep from breaking the xml code in the file.
Bounce discoverer (or the mid tier) and it should work.
Kind regards
Tomas
Similar Messages
-
Null values not displaying in the LOV on the parameter form.
My report works perfect while in Oracle Reports 10g, however when I move it to our menu (Oracle Forms 10g) it does not display the null in the LOV on the parameter form.
This report allows the the user to select by inspector or district or everyone for certain dates.
Ex: I have 4 parameter fields. The user must enter the start & end dates and either the Inspector or the district or leave the inspector or district null to run for everyone.
The district LOV is :
select dnr_section_code, description from dnr_section_code where dnr_section_code in ('29', '38','52')
UNION
select null, 'All' from dual
order by 2 asc ;
The inspector LOV is:
select null , 'All' from dual
UNION
select person_seq, first_name||' '||last_name inspector from vw_eng_inspectors
order by 2 asc
In my Data Model query I use the :
My select
from tables
where clause
+
----by inspector
and (prod_fac_inspections.person_seq_inspector =
nvl(:inspector,prod_fac_inspections.person_seq_inspector))
---by district
and
(d.dnr_section_code = nvl(:district,d.dnr_section_code)
and d.person_seq = prod_fac_inspections.person_seq_inspector)
Again, it works perfect in Reports! It eliminates having 3 reports on the menu. This one report gives the user the option of selecting dynamic parameters.
Also, I got so frustrated, that I went a different route of using a default where.
I am stuck with the error of ORA:00933 SQL command not ended properly
1=1
I set the initial value to 1=1 and it does not like it.
I am stuck!
DB = Oracle Database 10g Enterprise Edition Release 10.2.0.2.0Hi Krishna,
I'm not sure I understand the probelm.
A progress bar control only displays numeric values. When do you mean by "unassigned values"? What would you expect to be presented?
Best regards,
Udi -
Returning to the parameter form in a report after closing the report page
hi all,
tell me a way to get the following solution
how can we return back to the parameter form of a "parameterised
report" after closing to the report window.
i ve tried a little bit with "srw_run_report"
reply me as quick as possible
prabhakaranTry using menu options
Tools\Parameter Form Builder
you can either select/deselect any parameter from the list -
How to Change the Size of the Parameter Form in Report6i
hi
Does any one know how to change the size of the "PARAMETER FORM" in Report6i.Hi,
You can change it in the "Parameter Form Window" property of the Report Object.
In the object navigator, select the Report object and open its property palette. Under "Parameter Form Window" you can change the "width" and "height" properties.
Regards,
Siva B -
Is there a way to suppress the parameter form?
We have created a report, in Oracle Reports Builder (Developer 10g - v9.0.4.0.33) and do not want the parameter form to show when the report runs. We have removed the check from the box in the preferences => runtime settings => parameter form, but a parameter form is always rebuilt at runtime of the report.
The report is run through a third-party aplication menu system (FAMIS) and we have no control over the command line that runs the report.Does your 3rd party application allow you the flexibility to use your own libraries, etc? I know we have an app where we needed to create our own Oracle Form libraries in order to do this exact thing. Other then having access to the URL to take out the "+paramform=yes", I'm not sure what else there is.
-
How to run the parameter form example report :pform_report.jsp
how to run the parameter form example report : pform_report.jsp ?
I got these error message:
Reports Error Page
Sat Oct 18 11:58:24 CST 2003
javax.servlet.jsp.JspException: rwlib-1: REP-6106: (, 4 L, XML 1h��/�� ' PI with the name 'xml' can occur only in the beginning of the document.'.
javax.servlet.jsp.JspException: rwlib-1: REP-6106: (, 4 L, XML 1h��/��
PI with the name 'xml' can occur only in the beginning of the document.'.
at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
at examples.tools._pform__report._jspService(_pform__report.java:79)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:66)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:539)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:285)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:771)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:796)
at java.lang.Thread.run(Thread.java:484)repost !
please help! -
Why local file destype does not appear in the parameter form ?
Hi,
There is a Destype option Local File but it does not appear in the list for Destype in the Parameter form.Why?
Even file is not working & the reports server is getting hanged if i specify the destype as file & a valid file name & format is given.
Print option from the app server is also not working, i mean remote printing.
My App server machine can see my local printer, but when i give the print share name or literally five\\machine name..printername then too print option is not working.
Thanks
MaheshHi Shaun,
I'am using 9iDS & the reports documentation says that Local File DesType Option is valid for rwclient & rwservlet.
When your specify in the command line option it works, no issues but in web reports where i get the parameter form Destype list does not contain Local File Option.
For web reports i use rwservlet.
i mean to say my url is something like this
http://oracle.guru:8888/reports/rwservlet?report=abc.rdf&userid=a/b@c&destype=cache¶mform=yes&server=myserver
one more peculiar thing, i have reported it on Metalink.
As you can see in the above URL i have given an argument of destype=cache, if i do not give this then my parameter for will not come up!!!, why should i give a destype for the parameter form to be displayed?
Ok coming to my current problem..
in 9iDS Reports is Local File supported? i.e. when i give a URL like above(My parameter form has system & user parameters including DesType,DesName & DesFormat).
coming to the file option in DesType.
In my parameter form if i select Destype as File & give a valid file name & a valid Desformat the report server hangs i mean there is no activity on the client & after this any report requests from any other clients is not responded by the Reports Server.
When i check in the performance monitor of my Reports Server the CPU Utilization will be constant at 100%
Thanks
Mahesh -
Can you dynamically change an LOV on the parameter form based on other params?
Can you dynamically change an LOV on the parameter form based on other parameters? For example, based on a entered purchase order number, create an LOV of the purchase order lines that belong to the entered PO #.
Hi
Accouding to my knoledge you can't do it.
If you want to build lov for that particular
value, you can do it in Forms.
Vijay -
Query Result based on the Parameter Form
Good Morning folks. I really couldn't come up with a smart enough Subject Line but I will try and make it up in the body.
I currently have a report that accepts Parameters on the Parameter Form. They are Employee ID# and Number of Copies. The Employee ID is stored in the Employee table but the number of copies is not.
The output on the Report shows all the different addresses and Phone Numbers the Employee has. Lets say, Employee ID 0001 has two addresses -- Home and Office. In the Report output based on my Query, it is going to return me two records in the Repeating Group. I however, have another parameter along with the Employee ID which is the Number of Copies. In this case, if the Number of Copies to be printed is 1, then its not an issue. However, if the Number of Copies entered by the User is 4, I would expect in that case 4 x 2 = 8 pages of Report output (4 with the Home Address and 4 with the Office Address).
I know there is way to do this using a Temporary table in AfterPForm and then using the results in the Query by joining my query to the Temporary table but I was really hoping to avoid this situation if it can be handled through the Query.
Main Query:
SELECT e.emp_no,
e.saln||e.first_name||' '||e.last_name emp_name,
a.street,
a.city||' '||a.province||' '||a.postal_code city,
'('||a.tel_area||') '||a.tel_number telephone
FROM employee e, emp_address a
WHERE e.emp_no = a.emp_no
AND e.emp_no = :P_EMP_NO;Any help is appreciated. Thanks!I think I have not explained my requirements clearly and I have missed some valuable information. I will go ahead and start again.
We do have quite a few reports with similar scenarios, so avoiding Temporary tables would be very beneficial if this works using Queries.
I have a Report that has a Parameter Form. This Parameter form has 6 fields in total.
Three of them belong to Customer ID# and 3 belong to Number of Copies.
User Parameters for Customers: P_CUST_ID1, P_CUST_ID2, P_CUST_ID3
User Parameters for the Number of Copies: P_N1, P_N2, P_N3
So, the field PF_CUST_ID1 would have a source with P_CUST_ID1 and the field PF_N3 would have a source P_N3
Form Paramater:
PF_CUST_ID1 ---------- PF_N1 ---
PF_CUST_ID2 ---------- PF_N2 ---
PF_CUST_ID3 ---------- PF_N3 ---So, at any given point, there could be a maximum of 3 Customer ID's passed to the main query. Here is an example of what the input parameters could look like.
User chose to enter values for Customer ID's 1 and 2 and left it blank for Customer 3.
Customer ID1 1001 Number of Copies 2
Customer ID2 1002 Number of Copies 3
Customer ID3 ---- Number of Copies -The Query that retrieves data looks something like this. The query below is intended to fetch Customer Home and Office Addresses.
Of course, it is possible that there might be No home or Office Address or both.
SELECT c.cust_no,
c.saln||c.first_name||' '||c.last_name cust_name,
a.address_type,
a.street,
a.city||' '||a.province||' '||a.postal_code city,
'('||a.tel_area||') '||a.tel_number telephone
FROM customer c, customer_address a
WHERE c.cust_no = a.cust_no
AND c.cust_no IN (:P_CUST_ID1, :P_CUST_ID2, :P_CUST_ID3);Based on my query:
Customer ID 1001 has 3 Addresses (2 Home and 1 Office) --> Total number of Records = 3
Customer ID 1002 has 2 Addresses (1 Home and 1 Office) --> Total number of Records = 2
The output should be something like this. I have put a Label Copy1, Copy2 and Copy3 to show
how the data will appear for readability.
Cust No Customer Name Address Type Address Line 1 Address Line 2 Telephone
Copy1
1001 Mr Robert Green H 2100 Picket Fences Vancouver BC V6E 2C9 (604)726-5555
1001 Mr Robert Green H 2300 Happy Valley Vancouver BC V6G 2N8 (604)308-5555
1001 Mr Robert Green O 1200 Davie Street Vancouver BC V1V 1X1 (604)211-5555
Copy2
1001 Mr Robert Green H 2100 Picket Fences Vancouver BC V6E 2C9 (604)726-5555
1001 Mr Robert Green H 2300 Happy Valley Vancouver BC V6G 2N8 (604)308-5555
1001 Mr Robert Green O 1200 Davie Street Vancouver BC V1V 1X1 (604)211-5555
Copy1
1002 Ms Cynthia Brown H 261 King Street W Calgary AB M5A 1N1 (416)432-5555
1002 Ms Cynthia Brown O 150 Bloor St W Calgary AB M1W 1S3 (416)321-5555
Copy2
1002 Ms Cynthia Brown H 261 King Street W Calgary AB M5A 1N1 (416)432-5555
1002 Ms Cynthia Brown O 150 Bloor St W Calgary AB M1W 1S3 (416)321-5555
Copy3
1002 Ms Cynthia Brown H 261 King Street W Calgary AB M5A 1N1 (416)432-5555
1002 Ms Cynthia Brown O 150 Bloor St W Calgary AB M1W 1S3 (416)321-5555
Scripts for the table creation and INSERTs
CREATE TABLE CUSTOMER
"CUST_NO" VARCHAR2(4 BYTE) NOT NULL,
"SALN" VARCHAR2(4 BYTE),
"FIRST_NAME" VARCHAR2(20 BYTE),
"LAST_NAME" VARCHAR2(20 BYTE),
CONSTRAINT "CUSTOMER_PK" PRIMARY KEY ("CUST_NO")
Insert into CUSTOMER values ('1001','Mr','Robert','Green');
Insert into CUSTOMER values ('1002','Ms','Cynthia','Brown');
Insert into CUSTOMER values ('1003','Dr','David','Taylor');
CREATE TABLE CUSTOMER_ADDRESS
"CUST_NO" VARCHAR2(4 BYTE) NOT NULL ENABLE,
"ADDRESS_TYPE" VARCHAR2(1 BYTE) NOT NULL ENABLE,
"STREET" VARCHAR2(20 BYTE),
"CITY" VARCHAR2(20 BYTE),
"PROVINCE" VARCHAR2(2 BYTE),
"POSTAL_CODE" VARCHAR2(10 BYTE),
"TEL_AREA" VARCHAR2(3 BYTE),
"TEL_NUMBER" VARCHAR2(10 BYTE)
Insert into CUSTOMER_ADDRESS values ('1001','H','2100 Picket Fences','Vancouver','BC','V6E 2C9','604','726-5555');
Insert into CUSTOMER_ADDRESS values ('1001','H','2300 Happy Valley','Vancouver','BC','V6G 2N8','604','308-5555');
Insert into CUSTOMER_ADDRESS values ('1001','O','1200 Davie Street','Vancouver','BC','V1V 1X1','604','211-5555');
Insert into CUSTOMER_ADDRESS values ('1002','H','261 King Street W','Calgary','AB','M5A 1N1','416','432-5555');
Insert into CUSTOMER_ADDRESS values ('1002','O','150 Bloor St W','Calgary','AB','M1W 1S3','416','321-5555');
Insert into CUSTOMER_ADDRESS values ('1003','O','435 Richmond Street','Calgary','AB','M5A 4T6','416','453-5555');Edited by: Roxyrollers on Jul 17, 2012 10:34 AM
Edited by: Roxyrollers on Jul 17, 2012 10:58 AM -
Not getting the Parameter Form in Multi-tier Enviroment.
Hi all,
I am using Forms 6i and Reports 6i.
The reports run fine in Client Server mode. It asks for the desired
parameters based on which I am building the dynamic query.
But in 3-tier env., it just skips parameter form.
What is happening I don't know. It is not displaying the errors either.
Any help is appriciated.
Thanks.
SKPaniHi,
Thanks Geeta & Jbaker for your help. But the problem is the user may run it in Client/Server mode as well as in browser. Is there any way to find out whether the application is running in Client/Server or web, so that accordingly i can call run_product or web.show_document().
Where can i find the file cgicmd.dat and what entry should i add to that file.
Thanks for your help
SKPani -
Web Reports --- How submit button on the parameter form works ?
Hi all,
I understand that when we deploy the rdf and run the report through web it opens up with 'Submit query' and 'Reset' buttons. And this is from the html code that we see in BEFORE FORM VALUE (Report Escapes).
<html>
<body dir=&Direction bgcolor="#ffffff">
<form method=post action="_action_">
<input name="hidden_run_parameters" type=hidden value="_hidden_">
<font color=red><!--error--></font>
<center>
<p><table border=0 cellspacing=0 cellpadding=0>
<tr>
<td><input type=submit></td>
<td width=15>
<td><input type=reset></td>
</tr>
</table>
<p><hr><p>
I'm just wondering how form action "_action_" is being taken care of when we click on 'Submit Query' button. Which file will it look for to get these values (action and hidden params ) ?
I would like to add a new button 'Schedule' on this parameter form which behaves exactly as it does with 'Submit' but I would like to add 'schedule' command in the URL. I could create a 'Schedule' button but was not able to build the functionality on what happens if someone clicks on it.
For this I need to understand how "Submit Query" works.
Please give me some inputs on this,
Thank you
ML.These values are not stored in any file. Reports server will replace action and hidden with the actual values while generating parameter form. You can see the source of html parameter form generated to understand these.
For your scheduling requirement one very simple solution would be to create a user parameter with name 'SCHEDULE' and map a field in the pform to the 'SCHEDULE' user parameter.
You can also use a hidden field by name 'SCHEDULE' and set the value using javascript when button is clicked. -
How can I customize the parameter form?
I have 2 drop-down list on the param form, I want to let the value of one changes according to the other's value.
I know it is easy in Jsp, but how to implement it in report 6i or 9i ?
Generally, can I customize the param form ? ie, add a trigger.Hello,
You have not specified if you execute your reports on the web ?
If you execute your reports on the web, you can take a look at the note :
Article-ID: <Note:185951.1>
Topic: How To Articles
Title: SAMPLE - How to create a parameter LOV based on another
parameter value? SCR1531
regards -
Hiding the "Submit Form" button in Reader
I am referring to the "Submit Form" button that is part of the application (just to the right of the Highlight Fields button) rather than one that appears on the PDF document itself.
This is for a PDF form for a company with many branches.
I want to create a form that users can fill out and save in Reader, but I don't want them to submit it electronically, because I need them to provide a photo as well. I just want them to save the filled-out form and then email it together with a photo to their local branch manager, and I do not have a complete list of branch managers; I am assuming that the user knows the email address of their branch manager. So I either want to hide the Submit Form botton or change it to Save Form.
I am trying this on a PC (specifically Acrobat 9, Acrobat Reader 9 and Windows Vista Home Premium), and also on a Mac. On both platforms, when I take an existing form and distribute it to get one that can be filled out n Reader, Acrobat generates a form that Reader displays with the Submit Form button.Here is the answer to my own question. Don't use Distribute Form to generate the Reader-enabled form. Instead, in Acrobat 9, go to Advanced --> Extend Forms Fill-in and Save in Adobe Reader to generate the form. In Acrobat X, go to File>Save as.
-
Supressing the parameter form when calling report from form...
Hi everybody
I call a report from a form passing a parameter. After pressing
the button, the runtime parameter from appears. How do I
suppress it so that the report appears right after pressing the
button???
Thanks
SergueiHi Serguei ,
You have to add a text parameter 'PARAMFORM' with the value
'NO' to the passing parameter list. -
Hi all,
using Forms 6i and reports 6i.
I am invoking a report from a form , there is a button in the form clicking the button report will be invoked, but it shows the parameter form
I had given ADD_PARAMETER(vParamList,'PARAMFORM',TEXT_PARAMETER,'NO'); in that button event . but its not hiding
please suggest a way
Thanks
:8}vParamList:=CREATE_PARAMETER_LIST('MyRep');
ADD_PARAMETER(vParamList, 'DESCHANGE_CODE',TEXT_PARAMETER,:EDCD_CODE);
ADD_PARAMETER(vParamList, 'EMPLOYEE_CODE',TEXT_PARAMETER,:EDCD_EMP_CODE);
ADD_PARAMETER(vParamList, 'EMPLOYEE_NAME',TEXT_PARAMETER,:to_whom);
ADD_PARAMETER(vParamList, 'P_CTRY',TEXT_PARAMETER,:Parameter.P_CTRY);
ADD_PARAMETER(vParamList, 'P_EFF_DATE',TEXT_PARAMETER,to_char(:desig_date,'DD-MON-YY'));
ADD_PARAMETER(vParamList, 'P_LOC',TEXT_PARAMETER, :Parameter.P_LOC);
ADD_PARAMETER(vParamList, 'P_ORGN',TEXT_PARAMETER,:Parameter.P_ORGN);
ADD_PARAMETER(vParamList, 'P_ORU',TEXT_PARAMETER,:Parameter.P_ORU);
ADD_PARAMETER(vParamList, 'REPORT_NAME',TEXT_PARAMETER,'EMP_REP_DEF');
ADD_PARAMETER(vParamList,'PARAMFORM',TEXT_PARAMETER,'NO');
RUN_PRODUCT(REPORTS,'D:\Reports\Payroll\emp_rep_def',ASYNCHRONOUS,RUNTIME,FILESYSTEM,vParamList,NULL);
if i give the highlighted parameter down after ADD_PARAMETER(vParamList,'PARAMFORM',TEXT_PARAMETER,'NO');
no parameter form ,no junk value
if i run with above shown order of parameter in report along with employee_name's value its coming like
Elegant P_CTRY='NY' P_EFF_DATE ='27-JUN-2010' P_loc
Maybe you are looking for
-
Wifi doesnt work on iphone 4s after updating to ios 8.02. How do i fix this?
The wifi doesn't work on my iphone 4s after updating to ios 8.02. How do i fix this?
-
Why is the connectionUri different in WSManConnectionInfo object for exchange and windows?
For exchange the connection uri used is : 'http://machineName/powershell' The WSManConnectionInfo object is created in the following way: WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://machineName/powershell"), "http:/
-
hi, i have 50+ HP MFPs installed in out office as network printers. how to take daily print report of these printers other than visiting the IP portal of these printers?.
-
Oracle to SQL Server DB Link (64-Bit)
Dear All, We need to create a db link from Oracle 10gR2 (10.2.0.1 on 64-Bit Windows 2003) to SQL Server 2008 (on 64-Bit Windows 2008 R2). We followed the necessary steps on Testing Servers (Oracle 10gR2 and SQL Server 2005 both on 32-Bit Windows) usi
-
Can't import photos all of a sudden. -- tried both IMPORT and selecting a photo and tried going into IPHOTO and dragging to an event. each time it puts the photo in the event browser but shows it offline.