Help with Parameter Form
Hello, I have a somewhat complicated Report and I am hoping that I can create the Parameter Form in Reports (I would rather not use Forms because I don't know it as well)
Here's my problem:
Right now I have 2 fields that I need help with.
The first one is called "Report Name" and I have it coded to a bind variable that will search for a series of "work units" such as 02% or 03%
This works as coded, the problem comes with the other "Work Unit" field. What I have right now is a LOV that queries for work units that start in either 02 or 03. This variable will narrow down the report findings to the specific work unit selected. What I want is for this list to be dependant on what the user choses for report name.
For example if the user choses ReportName1 the report query finds work units with 02%, but the "work unit" field still displays the list of work units 02% and 03% and the user must know to only chose the certain work units for the specific "Report Name" selected.
If there is a way to somehow have the "Work Unit" field be dependant on the "Report Name" field please give me soem ideas of how to do it.
Thats what I was worried about.
Well I have been trying to learn forms for some time now but I can't quite get the hang of it yet.
I don't really have anyone who knows it here, so I'm kind of learning on my own.
Thanks for the response.
Arin
Similar Messages
-
Problem in Runinng a report with parameter form through Run_Report_object
Hi,
I am trying to run reports thought RUN_REPORT_OBJECT built-in. It works fine in following cases
* Run a report without parameter Form
* Run a report with parameter form by passing parameters through parameter
List.
But it did not o\work in following cases.
* Run a report with parameter form by passing parameters through setting the
REPORT_OTHER option of SET_REPORT_OBJECT_PROPERTY built-in.
* Run a report with parameter form by using Reports own parameter form.
In first case it says un able to run report and does not even submitt the job to the AS. In the second case its submits the job but when i show it with WEB.SHOW_DOCUMENT, it opens the parameter form and when i run the report after filling the parameters, it displays an error page.
I am using 9iDS and 10g AS, and 10g Database. Please help me.
Mohib.Mohib,
Run a report with parameter form by passing parameters through setting the REPORT_OTHER option of SET_REPORT_OBJECT_PROPERTY built-in.[...] it says un able to run report and does not even submitt the job to the AS
This sound like a user error to me and you want to check the parameters and maybe look at the Reports Queue Manager for the exact error message
Run a report with parameter form by using Reports own parameter form.
See:
http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
and
http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.zip
Frank -
Report no runing on web with parameter form
hi,
when i try to run a report with parameter form it shows an error,
REP-0788 : Warning : The Value of restricted LOV Parameter cust_no is not among the selectable values.
what should i do for running this report on web, i highly appriciate if any one guide me.
thanks
NomanYou get this error when you enter a value in the parameter field that is not in the LOV's for that parameter.
If you don't want to restrict the values for the parameter then you should de-select the "restrict" option in the parameter LOV dialog.
If you do want to restrict the values, make sure that you have an appropriate default value for the parameter (ie: one that is in the list of values). Otherwise the user will accept the default values and hit this error. -
How to run .JSP 9iReport from web with Parameter Form
Hi,
I m trying to run a .JSP 9ireport from the web. now i have two problems.
1. how do i display a parameter form from the web, meaning when the user clicks on the link to the report a parameter form should be displayed and the report should give the output for those parameters.
2. how do i format the report output which i get in the web in pages, with a link called "NEXT" which upon clicking will take the user to the next page.
Any help will be appreciated. Thanks in advance.
Unmesh1. Take a look "Building a reports with a Parameter Form" in "Getting Started with Oracle9i Reports" in otn (URL: http://otn.oracle.com/products/reports/htdocs/getstart/examples/index.html)
2. Normally web page doesn't have page concept. If you want to define the page for web, you need to do it yourself in the jsp. However, we do support paper based report that supports page and can be deployed on the web. Use pagestream=yes in the URL request.
Thanks,
-Shaun -
Rep-52005 error when running a report from form with parameter form
I am trying to run a report from a web deployed form and this report has a parameter form. I am getting a Rep-52005: The specified key report does not exist in key map file.
I am using Oracle Forms/Reports 10.1.2.0.2. My code is below. The first part works fine where I run a report with no parameter form, but the second part when I have a parameter form gets the about error.
PROCEDURE call_report (
p_report_name VARCHAR2,
p_reportobj_name VARCHAR2 DEFAULT NULL,
p_parameter_list paramlist DEFAULT NULL,
p_parameter_string VARCHAR2 DEFAULT NULL
IS
repid report_object;
v_rep VARCHAR2 (100);
rep_status VARCHAR2 (100);
v_report_url VARCHAR2 (240);
v_interface VARCHAR2 (50);
v_report_parameter VARCHAR2 (1);
vc_user_name VARCHAR2 (100);
vc_user_password VARCHAR2 (100);
vc_user_connect VARCHAR2 (100);
vc_connect VARCHAR2 (300);
v_reportserv VARCHAR2 (30);
v_job_number number;
BEGIN
/* Get the database to run the report against and
find out if the report has any parameters */
SELECT report_parameter_flag
INTO v_report_parameter
FROM program_list
WHERE program_type = 'REPORTS'
AND UPPER (screen_id) = UPPER (p_report_name);
vc_user_name := get_application_property (username);
vc_user_password := get_application_property (password);
vc_user_connect := get_application_property (connect_string);
v_reportserv := 'rep_xxxx_ias10g_home';
v_report_url := 'http://xxxx.state.il.us';
v_job_number := length(v_reportserv) +2;
vc_connect :=
vc_user_name
|| '/'
|| vc_user_password
|| '@'
|| vc_user_connect;
v_interface := get_application_property (user_interface);
IF ( v_interface = 'WEB'
AND v_report_parameter = 'N'
THEN
repid := find_report_object(p_reportobj_name);
set_report_object_property (repid, report_comm_mode, synchronous);
set_report_object_property (repid, report_destype, cache);
set_report_object_property (repid, report_desformat, 'pdf');
-- v_reportserv := get_report_object_property (repid,report_server);
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (repid, report_other, p_parameter_string);
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSIF ( v_interface = 'WEB'
AND v_report_parameter = 'Y'
THEN
repid := find_report_object (p_reportobj_name);
set_report_object_property (repid, report_comm_mode, synchronous);
set_report_object_property (repid, report_destype, cache);
set_report_object_property (repid, report_desformat, 'pdf');
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet'
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSE
run_product (
reports,
p_report_name,
synchronous,
runtime,
filesystem,
p_parameter_list,
NULL
END IF;
EXCEPTION
WHEN OTHERS
THEN
message (SQLERRM);
END;
My parameter form comes up and I enter the necessary information and hit submit query button. Then I get the Rep-52005: The specified key report does not exist in key map file.
Any help will be greatly appreciated!!
Shellie BrickerYour code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
For what I can see, the P_ACTION parameter should end in ?...
i.e.
P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet?'
);If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
Hope this helps,
UPDATE:
If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
i.e.
http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
The above code will throw error REP-52005: The specified key report does not exist in key map file.
Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM -
Hi,
I've been trying to run parameter forms for 2 days now, and i'm getting desperate.
For the moment, I can see the parameter form (not like it shows in Report Builder though...)
When I give my two parameters (it are dates) into the parameter fuild, and i try to execute the query, following error shows :
REP-52007: Opmaakfout parameterformulier
java.lang.IllegalStateException: Writer already retrieved at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:969) at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:136) at oracle.reports.rwclient.RWWriter.getOutputStream(RWWriter.java:263) at oracle.reports.rwclient.RWReportRunner.sendFile(RWReportRunner.java:355) at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:161) at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1343) at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92) at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:295) at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:958) at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1442) at oracle.reports.rwclient.RWClient.doPost(RWClient.java:504) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)
My OC4J is running, and also the reportserver is active.
I'm using forms 10g and forms builder 10g.
This is my code to make the report show :
PROCEDURE SHOW_REPORT
(type VARCHAR2, rep_obj VARCHAR2)
IS
rep_id REPORT_OBJECT;
rep_status VARCHAR2(100);
rep_svr VARCHAR2(21) := 'birserver';
rep_format VARCHAR2(20) := 'HTMLCSS';
rep_locatie VARCHAR2(100) := 'C:\PISAD\TEMP\';
reportserverjob VARCHAR2(100);
rep_job_id VARCHAR2(100);
BEGIN
IF type = 'PDF' THEN
rep_format := 'PDF';
ELSIF type = 'XLS' THEN
rep_format := 'SPREADSHEET';
ELSIF type = 'HTML' THEN
rep_format := 'HTMLCSS';
END IF;
rep_id := find_report_object(rep_obj);
set_report_object_property(rep_id, report_comm_mode, synchronous);
set_report_object_property(rep_id, report_server, rep_svr);
set_report_object_property(rep_id, report_desname, rep_locatie || rep_obj || '.' || type);
set_report_object_property(rep_id, report_desformat, rep_format);
set_report_object_property(rep_id, report_destype, FILE);
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_OTHER,'paramform=yes');
reportserverjob := run_report_object(rep_id);
rep_job_id := substr(reportserverjob,length(rep_svr) + 2);
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'|| rep_job_id ||'?server='||rep_svr,'_blank');
The report destination type is preview, execution mode is runtime, communication mode is synchronous
I really hope someone can help :(
thanks alot!Your code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
For what I can see, the P_ACTION parameter should end in ?...
i.e.
P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet?'
);If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
Hope this helps,
UPDATE:
If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
i.e.
http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
The above code will throw error REP-52005: The specified key report does not exist in key map file.
Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM -
Web Report not working with parameter form
Hi,
I have a report which has got a parameter form. This report is
running fine in client/server environment. But when I deploy the
same report on web (CGI) using PARAMFORM=YES, I am getting the
parameter form and after pressing the SUBMIT button I am getting
a blank report under the following two cases even though I have
data for that query:
CASE1: <input type="hidden" name="desformat" value="html">
then I am getting the report with no data retrieved.
CASE2: <input type="hidden" name="desformat" value="pdf">
then I am getting completely blank report (no logo, no column
titles, etc.)
See the HTML code below. Remember, the same thing is running
fine in client/server environment. Moreover, if I make a HTML-
coded form for the report then everything on the client's
browser is running fine. But this is not what we want, 'coz we
are running the "BEFORE PARAMETER FORM" trigger in the report.
So, should I conclude that web-reports does not work with the
parameter forms?? Is it a bug???
Regards
Moiz
----------HTML Code------------------
<form action="http://pc-oracle1.ri.kfupm.edu.sa/cgi-
bin/rwcgi60.exe">
Select the Weekend Date for which you would like to see your
Timesheet report
<input type="hidden" name="server" value="repserver">
<input type="hidden" name="report" value="timesheet.rdf">
<input type="hidden" name="userid" value="696122/696122@ors">
<input type="hidden" name="destype" value="cache">
<input type="hidden" name="desformat" value="html">
<input type="hidden" name="paramform" value = "yes">
<input type="submit" value="Run Report">
</p>
</form>
-------HTML Code END------------------
nullNo pal, that's not the problem. The problem lies with the
"BEFORE PARAMETER FORM" report trigger on the web. Check this
out on ur report server and u will understand my problem.
Moiz
Ramonito Te (guest) wrote:
: I think the cause is the missing question mark after
rwcgi60.exe.
: Anyway here is my html file that runs under cgi. Hope this
helps.
: <HTML>
: <!--Form Action is RWCGI60 URL-->
: <FORM METHOD=POST
: ACTION="http://ntserver1/ows-bin/rwcgi60.exe?" METHOD="POST">
: <!--Parameters not exposed to user are hidden-->
: <INPUT name=server type=hidden value="ReportsServer">
: <INPUT name=paramform type=hidden value="yes">
: <CENTER><H1>Set Reports Multi-tier Server Parameters </H1>
Report Name: <INPUT name=report type=text value="c:
: \orant\webdemo\deptemp.rdf">
: Database Connection: <INPUT name=userid type=text
: value="scott/tiger@orcl81">
: <INPUT name=destype type=hidden value="cache">
: Output Format: <SELECT name=desformat> <OPTION value=HTMLCSS
: selected> HTMLCSS <OPTION
: alue=PDF> PDF </SELECT>
: <HR><INPUT type=submit value="Run Report!">
: </CENTER> </FORM> </HTML>
: lue="Run Report!">
: </CENTER> </FORM> </HTML>
: M. Moizuddin (guest) wrote:
: : Hi,
: : I have a report which has got a parameter form. This report
: is
: : running fine in client/server environment. But when I deploy
: the
: : same report on web (CGI) using PARAMFORM=YES, I am getting
the
: : parameter form and after pressing the SUBMIT button I am
: getting
: : a blank report under the following two cases even though I
: have
: : data for that query:
: : CASE1: <input type="hidden" name="desformat" value="html">
: : then I am getting the report with no data retrieved.
: : CASE2: <input type="hidden" name="desformat" value="pdf">
: : then I am getting completely blank report (no logo, no
column
: : titles, etc.)
: : See the HTML code below. Remember, the same thing is running
: : fine in client/server environment. Moreover, if I make a
HTML-
: : coded form for the report then everything on the client's
: : browser is running fine. But this is not what we want, 'coz
we
: : are running the "BEFORE PARAMETER FORM" trigger in the
report.
: : So, should I conclude that web-reports does not work with
the
: : parameter forms?? Is it a bug???
: : Regards
: : Moiz
: : ----------HTML Code------------------
: : <form action="http://pc-oracle1.ri.kfupm.edu.sa/cgi-
: : bin/rwcgi60.exe">
: : Select the Weekend Date for which you would like to see your
: : Timesheet report
: : <input type="hidden" name="server" value="repserver">
: : <input type="hidden" name="report" value="timesheet.rdf">
: : <input type="hidden" name="userid" value="696122/696122@ors">
: : <input type="hidden" name="destype" value="cache">
: : <input type="hidden" name="desformat" value="html">
: : <input type="hidden" name="paramform" value = "yes">
: : <input type="submit" value="Run Report">
: : </p>
: : </form>
: : -------HTML Code END------------------
null -
Hey there!
I have two issues with online form data collection and am completely stumped. It's a real struggle to find useful documentation for Acrobat forms!
#1 - I have created a form uploaded it to Acrobat.com, and have been able to collect test form data. In the local responses portfolio, I'm able to use the 'Update' button to bring the latest form data into the portfolio. But I would like to have a colleague be responsible for monitoring the form data and we're running into problems. He's able to open the portfolio and has full access, however the 'Update' button is greyed out so he is unable to bring in new form data. We've already updated his 'Acrobat.com' username/password in Acrobat preferences to match mine, but still no luck. Any help?
#2 - Some computers are having issues with electronic submission. My best guess is that this is to do with Acrobat versions, as the issues all seem to come from computers where the form is completed using Acrobat Reader 8. The form was created with Pro 9, and form submission works for both Pro 9 and also Reader 9. Is there something I can do here? (And yes I know that it's a free upgrade to 9, but 8 is still in the official build for our organisation and I don't really have time to wait for them to complete an upgrade!)
Thanks in advance for any help you can give.
JarrodHello Paul,
Thank you for your reply.
I use Ipower for my hosting. I see they use sendmail and the path on the server is - /usr/sbin/sendmail. Would this work?
The way I would like this to work would be:
1) I e-mail the PDF form to the client
2) Client opens and fills in the form
3) They hit submit and the form information eventually gets e-mailed to my business e-mail
I chose to use the HTTP method instead of e-mail because the PDF form says it can not be saved and if the client uses an internet beased e-mail like Yahoo it gets kind of messy.
But, does the HTTP delivery method make it more difficult since this is not embedded in a website?
Sorry, I did not realise this would be as involved as it is. Your help would be greatly appreciated. -
Livecycle design 8 Help with PDF forms
I am new to Livecycle 8. I have created a simple PDF form in Livecycle 8 which was orignally an excel form. I set it up with a submit button to submit by email to a designated person. The form is housed on an internal web site for viewers with adobe reader to open and fill out and then submit by email. The goal is for the designated receiver to receive the the same PDF form with the information filled out by the previous viewer. I was successful with the form being emailed to the designated person as long as the peson submitting the form was using adobe professional. If the viewer only has adobe reader, the form would not submit to the designated receiver. Please help?
Reader does not allow a local save of the form and data by default. To be able to add the attachment o an email message a local save must occur. You can Reader Extend your form to allow for this. Open th eform in Acrobat Pro. Under the Advanced menu choose the "Extend Features in Adobe Reader". Follow the wizard and save the result PDF as a different name ....I like to put RE in the name so I know it is Reader Extended. Try the new file.
paul -
I am trying to run the report from menu with the following code
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
BEGIN
repid := find_report_object('test');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :global.user_dir||'test.REP');
if id_null(repid) then
pause;
message('repid is null');
else
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repsrv');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
end if;
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
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repsrv','_blank');
ELSE
message('Error when running report');
END IF;
END;
The report parameter form displays
and when i enter the values
gives me the error
REP-52007: Parameter form format error.
Copyright (c) 2002, 2005, Oracle. All rights reserved.
java.lang.IllegalStateException: Writer already retrieved at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:969) at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:136) at oracle.reports.rwclient.RWWriter.getOutputStream(RWWriter.java:263) at oracle.reports.rwclient.RWReportRunner.sendFile(RWReportRunner.java:355) at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:161) at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1343) at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92) at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:295) at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:958) at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1442) at oracle.reports.rwclient.RWClient.doPost(RWClient.java:504) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)
Thanks
ElsyGo to the following page and refer to the section titled: Oracle Forms Services - Using Run_Report_Object to call Reports with a Parameter Form
http://www.oracle.com/technology/products/forms/techlisting10g.html -
Hi
I have created a registration form, where on the first page
the user enters a user name and password, then they go to the next
page where they enter their name. This then goes to the next page
where they enter their address, then there contact details.
But I want all these details to go on to a page where they
can review their details, then press a submit button which inserts
the data into a mysql db.
But I need help with how I do this?
I have created the following Java script in the body. Or
should it be in the header? Or on another form? to insert their
details:-
<% Insert Data %>
<jrun:sql datasrc="regift">
INSERT INTO account VALUES ('<%=
request.getParameter("User_Name").trim() %>',
'<%= request.getParameter("Password").trim() %>',
INSERT INTO name VALUES ('<%=
request.getParameter("First_Name").trim() %>',
'<%= request.getParameter("Last_Name").trim() %>'
INSERT INTO address VALUES ('<%=
request.getParameter("House_Number").trim() %>',
'<%= request.getParameter("Street").trim() %>',
'<%= request.getParameter("Town").trim() %>',
'<%= request.getParameter("County").trim() %>',
'<%= request.getParameter("Postcode").trim() %>'
INSERT INTO contact_details VALUES ('<%=
request.getParameter("Email_Address").trim() %>',
'<%= request.getParameter("Telephone_Number").trim()
%>'
</jrun:sql>
Is this correct?
Thanks for all your help, Lou.Your code is correct only for the first page. What you need
to do after the
initial record is entered is grab its ID and then on
subsequent pages you
would use and UPDATE sql statement
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"LoobieLouLou" <[email protected]> wrote in
message
news:emggvv$q67$[email protected]..
> Hi
>
> I have created a registration form, where on the first
page the user
> enters a
> user name and password, then they go to the next page
where they enter
> their
> name. This then goes to the next page where they enter
their address, then
> there contact details.
>
> But I want all these details to go on to a page where
they can review
> their
> details, then press a submit button which inserts the
data into a mysql
> db.
>
> But I need help with how I do this?
>
> I have created the following Java script in the body. Or
should it be in
> the
> header? Or on another form? to insert their details:-
>
> <% Insert Data %>
> <jrun:sql datasrc="regift">
>
> INSERT INTO account VALUES ('<%=
request.getParameter("User_Name").trim()
> %>',
> '<%= request.getParameter("Password").trim() %>',
>
> INSERT INTO name VALUES ('<%=
request.getParameter("First_Name").trim()
> %>',
> '<%= request.getParameter("Last_Name").trim() %>'
>
> INSERT INTO address VALUES ('<%=
> request.getParameter("House_Number").trim()
> %>',
> '<%= request.getParameter("Street").trim() %>',
> '<%= request.getParameter("Town").trim() %>',
> '<%= request.getParameter("County").trim() %>',
> '<%= request.getParameter("Postcode").trim() %>'
>
> INSERT INTO contact_details VALUES ('<%=
> request.getParameter("Email_Address").trim() %>',
> '<%= request.getParameter("Telephone_Number").trim()
%>'
> </jrun:sql>
>
> Is this correct?
>
> Thanks for all your help, Lou.
>
> -
Ok here is the problem,
I am trying to make a form in my existing fla document and
the form will not function.
I have created the form and used the exact same php script in
a seperate flash movie and the form worked fine but I can not get
it to work in my existing fla.
I would reall appreciate any help with this issue.....
I need my file
(download my file at
http://66.70.213.43/testsite/main3.fla
to have a working email submission form.
this file has no working form on it now and the existing form
can be modified but I would like to keep the submit and the reset
buttons as is if possable.
I would like to use the php email style that is in the lesson
on gotoandlearn.com ( the lesson is listed as sending mail with php
but I am willing to accept other methods if needed.
The Movie clip symbol of the actual form with the submit and
reset button is call P5_s7
The Movie clip symbol of the page which contains the form is
called PAGE 5
I will edit the php and the flash script after you send the
file to me to reflect the email addresses that I want to use so for
testing purposes you can use any email that you want.
I would really appreciate it if someone with more flash
experience could help me out and post a working copy of my file and
the php script that the form links to so that I could re download
then.
Thank you in advance
Please note that there may be some $$$ in it for you if you
can help me.......Don't think you're going to find anyone here who will just be
willing to do the work for you. You might want to check out the
Flash and PHP Integration sample file that comes with Flash 8 for
some pointers on how to get this started.
If you have specific questions later, write back! Good luck! -
Help with Login Form (JSP DB Java Beans Session Tracking)
Hi, I need some help with my login form.
The design of my authetication system is as follows.
1. Login.jsp sends login details to validation.jsp.
2. Validation.jsp queries a DB against the parameters received.
3. If the query result is good, I retrieve some information (login id, name, etc.) from the DB and store it into a Java Bean.
4. The bean itself is referenced with the current session.
5. Once all that's done, validation.jsp forwards to main.jsp.
6. As a means to maintain state, I prefer to use url encoding instead of cookies for obvious reasons.I need some help from step 3 onwards please! Some code snippets will do as well!
If you think this approach is not a good practice, pls let me know and advice on better practices!
Thanks a lot!Alright,here is an example for you.
Assume a case where you don't want to give access to any JSP View/HTML Page/Servlet/Backing Bean unless user logging system and let assume you are creating a View Object with the name.
checkout an example (Assuming the filter is being applied to a pattern * which means when a resource is been accessed by webapplication using APP_URL the filter would be called)
public doFilter(ServletRequest req,ServletResponse res,FilterChain chain){
if(req instanceof HttpServletRequest){
HttpServletRequest request = (HttpServletRequest) req;
HttpSession session = request.getSession();
String username = request.getParameter("username");
String password = request.getParameter("password");
String method = request.getMethod();
String auth_type = request.getAuthType();
if(session.getAttribute("useInfoBean") != null)
request.getRequestDispatcher("/dashBoard").forward(req,res);
else{
if(username != null && password != null && method.equaIsgnoreCase("POST") && (auth_type.equalsIgnoreCase("FORM_AUTH") || auth_type.equalsIgnoreCase("CLIENT_CERT_AUTH")) )
chain.doFilter(req,res);
else
request.getRequestDispatcher("/Login.jsp").forward(req,res);
}If carefully look at the code the autherization is given only if either user is already logged in or making an attempt to login in secured way.
to know more insights about where these can used and how these can be used and how ?? the below links might help you.
http://javaboutique.internet.com/tutorials/Servlet_Filters/
http://e-docs.bea.com/wls/docs92/dvspisec/servlet.html
http://livedocs.adobe.com/jrun/4/Programmers_Guide/filters3.htm
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
http://www.servlets.com/soapbox/filters.html
http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
and coming back to DAO Pattern hope the below link might help you.
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
http://java.sun.com/blueprints/patterns/DAO.html
http://www.javapractices.com/Topic66.cjp
http://www.ibm.com/developerworks/java/library/j-dao/
http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-dao.html
On the whole(:D) it is always a good practice to get back to Core Java/J2EE Patterns.and know answers to the question Why are they used & How do i implement them and where do i use it ??
http://www.fluffycat.com/java-design-patterns/
http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
http://www.cmcrossroads.com/bradapp/javapats.html
Hope that might help :)
REGARDS,
RaHuL -
Hello,
I am a developer (VB6 ASP),
Please, I need to know, What I need to populate/read an xfa-form, that was created for another company.
I do not know what is the tool that I need to investigate, or a component. (the pdf form it was created with liveCycle)
The original empty pdf form is in xfa-form and I need fill in and the resulted file is delivered to another person that stamp digital signature,
I can fill this pdf form manually with adobe reader 9, but i need this task programmatically.
has any idea for this?
Thank you in advance!
(sorry for my english)
ClarisaThank you Hodmi!
Another question, I new in adobe Technologies, and I am lost in the family of LiveCycle products,
I need pre-populate the pdf that I have attached, xfa-form1.pdf
for example,
1- I download this pdf from an external site,
2- I have to pre-populate with 2 Fields that I obtain from my Database,
3- I embed this pdf file in aspx page(ASP.NET)
4- the user 1 must put their signature.
4- the user 2 must put their signature.
End
I saw code that manipulate programmatically .xdp files with pdf forms, but I do not know if I can manipulate this pdf that I have attached, please, could you help me, If in theory I Can do that?
(I have to do with ASP.NET)
Best Regards!
Clarisa -
Help with web form script. PHP, CGI, Perl???
anyone willing to help with a web form script? I have a form built, but cant seem to figure out the scripting! Should I be using Perl, CGI, PHP... What do I need to enable? I am a complete novice when it comes to scripts. Looking for a little friendly help.
Here is a simple bit of PHP to stick in the page your form posts to. You would need to edit the first three variables to your liking, and add the html you want to serve afterwards:
<pre>
<?php
$emailFrom = '[email protected]';
$emailTo = '[email protected]';
$emailSubject = 'Subject';
$date = date('l, \t\h\e dS \o\f F, Y \a\t g:i A');
$browser = $HTTPSERVER_VARS['HTTP_USERAGENT'];
$hostname = $HTTPSERVER_VARS['REMOTEADDR'];
$message = "$date\n\nAddress: $hostname\nBrowser: $browser\n\n";
foreach ($_POST as $key => $value) {
$message .= $key . ": " . $value . "\n";
$mailResult = mail($emailTo,$emailSubject,$message,"From: $emailFrom");
?>
</pre>
This script will grab the server's date and the submitter's address and browser type. It will then list the name and value of each form field you have put on your form.
Also, this script expects your form method="post".
Lastly, you can offer alternate text later on in your html page based on the success of the above script with a snippet like this:
<pre><?php
if ($mailResult) {
echo "Your comments have been received thank you.";
} else {
echo "There was an error. Please try again or contact us using an alternate method.";
?></pre>
Maybe you are looking for
-
How to get the output format options of SAP QUERY
Hi Gurus, I want to get the output options available for sapquery program.means when you execute the program "AQZZ/SAPQUERY/FDF1============" you will get output options like sap alv,display as table,wordprocessing etc. i am not able to unsderstand
-
Problems about reading Japanese and writing Chinese
Hi all experts, Now I have a encoding problem. My task is, read some Japanese in a text-based file, and then replace that Japanese with a Chinese string. That means, the program must be able to understand both the Japanese encoding and the Chinese en
-
Airport express won't hook up with modem
I cannot get my airport router to talk to my service provider modem. I know the modem works as I can hook my laptop direct to the modem and it is ok. How can I test my Airport router.
-
Hello, Could you please provide information on "security roles and profiles " I would appreciate. Regards, Alex
-
Hi all - quick question - I can obviously get to the forums ok but when I click on a Metalink document anyone suggests I read, I can't view it, I just get My Oracle Support screen coming up with a warning saying that 'Access to all other features fro