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.
Similar Messages
-
Handling Submit Button on the ADOBE form called from Web Dynpro
Hi,
I have placed a Button on the ADOBE Form. How to Handle the event on this button. When i click this button, i want to save the details of the form into a Custom table.Hi Majunath.
Create an event say, SUB_EVTin the view in WD where you have the Interactive Form UI element.
Bind this event to the onSubmit of the Form.
Now check the display type of the form. It will be either ActiveX or Native.
Now go to the form designer and open Library palette. Navigate to Webdynpro ActiveX or Native Library(Depending on the form display Type in WD).
Drag and Drop Submit button.
On click of the button, the event handler in WD view namely, onActionsub_evt will be invoked. You can write your code in this handler.
Now in order to read data from the form. Go to the form and go to Properties tab. Check the form layout type. If it is not ZCI, run transaction SFP_ZCI_UPDATE and convert the form to ZCI type.
Now back to the event handler.
as an example... I will use the following context node definitions
PDF_DATA 1..1
ACTUAL_DATA 0..n
ATTRIB01
ATTRIB02
Assume the the node PDF_DATA is bound to the data source of your form.
Now in the event handler write the foll code
data: lo_node type ref to if_wd_context_node,
lt_data type wd_this->elements_actual_data.
lo_node = wd_context->get_child_node( name = wd_this-.wdctx_pdf_data ).
lo_node = lo_node->get_child_node( name = wd_this-.wdctx_actual_data ).
lo_node->get_static_attributes_table(
importing
table = lt_data ).
This will get all the form data in the internal table lt_data.
Now you can process the data the way you want and save it in your custom tables.
Regards,
Reema .
Edited by: Reema Shahbazkar on Sep 16, 2008 11:39 PM
Hope this helps!! -
Multiple submit button on the same form
Hi,
I have created a PL/SQL procedure which generates a HTML form using htp and below is part of the code.
Create or Replace PROCEDURE OBM_PROCEDURE
htp.formOpen(OWA_UTIL.GET_OWA_SERVICE_PATH || 'insert_obm');
htp.formSubmit(cvalue=> 'Insert');
This creates the form and clicking Insert button calls the other procedure (insert_obm).. works fine.
I could create other buttons like "Query" "Update" "Delete" on the same form using following.
htp.print ('<INPUT TYPE=submit VALUE="Query"> ');
But all the buttons call the same form (insert_obm) since they are in the same form. How do I make the buttons call different procedure?
Thanks,
JeeHi,
The best way to do is call a single procedure as you are doing on form submit and check which form submit was clicked ,say based on the submit value and then do the processing accordingly i.e whether it is INSERT or DELETE.
Hope this helps,
Thanks,
Anu -
Can I have multiple submit buttons on the same form?
Hi!
I'm creating a web page that allows the user to build a mail filter, and I would like to have to submit buttons, one to add more fields to the filter and another one to save the filter... I could insert the two buttons on the, but I don't know how to distinguish them while doing the process of the form on a jsp page. Any ideas?You can create additional submit buttons using Javascript buttons:
<input type='button' value='Add Fields'
onClick='this.form.action="/servlet/AddFields";this.form.submit()' />
<input type='button' value='Save Filter'
onClick='this.form.action="/servlet/SaveFilter";this.form.submit()' />
The value of "onClick" is a block of Javascript, so you can all a function to validate the form before submitting, etc.
Mike W. -
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 -
Submit button from Interactive adobe form in Web Dynpro ABAP
Hi all,
We seem to be having a problem with the 'submit' button on the Interactive Form for the Web Dynpro ABAP. The submit button is from the Web Dynpro active X or web Dynpro Native in the form designer. The submit button doesn't trigger the action in Web Dynpro. we are currently running on support pack 9 for the ABAP stack. We have Internet Explorer browser version 6. Could someone tell me if there are requirements for the IE version that will work in conjunction with a particular ABAP stack version. And, are there specific IE security settings or administrative privilages required with this version of the ABAP stack. Or, any other ideas as to why this does not seem to work.
Thanks in advance,
Michelle HongHi Michelle,
Could you tell me how you resolved the problem - as I'm facing exactly the same issue!
Many Thanks
Christine -
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 -
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 do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central. It's for an online Diet Questionnaire. After people complete the form I'd like them to click "SUBMIT" and the completed form will be emailed to me.
This can be a bit confusing because Acrobat 11 comes with the desktop app that allows you to create simple PDF forms without having a FormsCentral account. Some people find this helpful, but you need to understand that when you generate the PDF form, it is Reader-enabled by Acrobat. In order to edit the form further in Acrobat, you have to create a non-enabled copy of the form. You do this in Acrobat by opening the form and selecting: File > Save a Copy
and opening the copy. It is not opened automatically.
You can now add a button and set it up to submit by email, either using a "Submit a form" action or the submitForm JavaScript method. You can set it up to include just the form data or the entire PDF, and will want to use a mailto type URL. Submitting the form to the FormsCentral server has a number of important advantages over email (much more reliable, more secure, etc.), so you might want to consider it.
If the form needs to be saved with Reader versions prior to 11, then you will need to Reader-enable the document. In Acrobat 11 you do this by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools -
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! -
Exporting pdf form data to a web server via Submit Button
Hi
I am working on a project where a pdf form is dynamically filled by user information. So, when the user click Print Application on the web, it will create a pdf with form data and download to the user computer.
After that, users will have to add more data (since not all user data is captured). Then, after that I'll want user to hit the Submit button so that the filled pdf form is exported as an xml file to a folder on the web server.
I've been looking at the forum. There is a solution where I add a submit button on the form and add a submit form action with the link to localhost since I'm trying to test it out on my local server. But I keep getting the security certificate exception. I'm using Adobe Acrobat Pro 9.0.0. , Max OS x and Firefox. My question is that is there a way for user to just click submit button and the pdf is exported as xml to the server? Does it require additional scripting language?HI again,
I want to have a pdf fillable form opened on a link.Once user has entered data, the user clicks a button(or some action to invoke saving). At this point I want the filled pdf file to be saved on a certain directory.
How can save a filled pdf form in pdf format on a certain directory?
Is it possible to dynamically give the final pdf a name so that it doesnt overwrite everytime it saves the file? -
Submit button in interactive adobe form in abap web dynpro
Hi can anyone help me out to know hoe to use the submit button in adobe interactive form in abap web dynpro .
Iam creating a adobe form abap web dynpro . There i need to use the submit button to trigger some action in the adobe interactive form .
So i need to know how to use the submit button and coding for that in the abap web dynpro .
VighneshHi Michelle,
Could you tell me how you resolved the problem - as I'm facing exactly the same issue!
Many Thanks
Christine -
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 -
How do you display a parameter form built from a report?
Does anyone know how to display the parameter form from building a customized report, as a portlet on a page? Everytime I try, I get the report, which will return no records because it does not first ask for the query parameters.
thanks!
nullYou don;t select Run to Run the report with
parameters - you select the Customize option.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sarah Lo ([email protected]):
Does anyone know how to display the parameter form from building a customized report, as a portlet on a page? Everytime I try, I get the report, which will return no records because it does not first ask for the query parameters.
thanks!<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
Hi All We have 11.1.1.7 ojdeploy to compile our app. We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation. eg: <path id="classpath"> <pathelement location="../../Oracle/Middleware
-
Tecra M5 - Need graphics card driver to run a widescreen resolution
I have a Tecra M5 with the Intel 945GM Express chipset. Is there a driver available that will allow me to run a widescreen monitor sucessfully? At the moment the screen is stretched and I do not have the 1280x960 setting available to me as an option.
-
House Bank G/L account is missing
Hello all, I am trying to import BPs (business partners) via DTW. The data to import is very simple (CardCode, CardName, CardType, Currency, Federal TaxID and VatLiable). However, when the import process is finished I get the following error message:
-
My phone has been down for over a week. Keep getting the message that the activation server is down try again later. I had to reset the phone after getting the apple logo of death/ It is a 3gs/ HELP
-
I am not able to open my ipad it just stopped working
Guys I am not able to open my iPad it just stopped working is there any problem about that? So I tried opening I mean by pressing lock key and even I pressed it it is not opening can anyone help me how to resolve ??