Report with user parameter is not runnig

Hi
I have created the report with user parameter p_deptno and qyery"select * from emp where depno=:p_deptno";
when i run the report in paper layout a popup kind page will open and ask us to enter the deptno and based on input parameter it fetches record in report.
if i tried the same thing with url :http://localhost:portno/reports/rwservlet?destype=cache&desformat=pdf&report=emp.jsp&userid=scott/tiger@orcl
the parameter window not opening and and blank report will open with coloumn headings.
help me to solve the problem.
i am using devsuite oracle10g release 2 on linux(OEL4).

Hello,
You have to provide the parameter in the URL :
For example :
http://localhost:portno/reports/rwservlet?destype=cache&desformat=pdf&report=emp.jsp&userid=scott/tiger@orcl&p_deptno=10
or use the Web parameter Form :
http://localhost:portno/reports/rwservlet?destype=cache&desformat=pdf&report=emp.jsp&userid=scott/tiger@orcl&paramform=true
Regards

Similar Messages

  • Statistic report with figures that will not change when rerun months later

    Hi,
    Is there any good practices that we can follow to create statistic reports with figures that will not change even when rerun after few months later?
    My scenario is my statistic report is generated based on data that is "alive" which means the record will get change after a period of time. So, if you generate the statistic report in for January 2006 in the month of January and regenerate in May for the January 2006 statistic, the figure is different. But what I want is to be able to get the same figures.
    I know in this case looks like we need some sort of summary tables, so posting this to get advice on the best way to design such summary tables. Please comment if there is other ways of doing it.
    Summary tables may work for statistic report, but how to support detail report listing where the records are required to be the same when it was generated few months ago.
    Please advise.
    Thank you.

    What happens, when you execute a report today is the following: a select statement is fired at the data base and the result set is displayed in the report. The data can change after the moment you launched your report. What you could do to keep the result set the same, is implementing a user parameter that fills your date discriminator.

  • Building a JSP-based Web Report with a Parameter Form

    Hi,
    I tried in building a report as shown in the example in OTN under reports in the url
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/ParameterFormJSP/index.html
    i.e for Building a JSP-based Web Report with a Parameter Form. The directions in this document were not clear and if any one document which is clear with instruction will be useful to me. In this example it is shown with search criteria with sigle text box and if any one had idea & code to place an combo box and population of the record group in the combo box.
    Thank you in advance.

    hi,
    we will be releasing a new example w.r.t creating a parameter form using the reports JSP within the next month.
    as for your request for a combo box. this widget is not available via regular HTML form elements. you can either have a select list or dropdown list.
    for a regular select list you would use the following (only pseudo-code)
    <select ...>
    <rw:foreach>
    <option value="<rw:field .../>">
    </rw:foreach>
    </select>
    to populate a select list.
    regards,
    philipp

  • BAM Report with input parameter

    Hi,
    How to design a report with input parameter? BAM ADC contains data about different clients.
    I have to design a report which iterates over these clients and display one client info at a time.
    Thanks
    Samatha

    Instructions in User guide on how to create surface prompts
    http://www.oracle.com/technology/products/integration/bam/index.html> 11g Documentation> User guide
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10230/prompts_parameters.htm#CHDEEACD
    Also look at call center -->Reassign cases sample under demos in BAM 11g.

  • How to run report on command line with user parameter?

    Hi,
    How do I run oracle report on command line (batch) with pre-set User Parameter values ? e.g. :P_1 ='SYSDATE' , :P_2 = 'DEPT_NO'
    Thanks

    Hello,
    If you are using rwrun :
    rwrun report=myreport destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
    If you are using rwclient , just add server=<reports server name> :
    rwclient server=myrepsevrername report=+myreport+ destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
    Regards

  • Label report with user defined input -

    I am trying to make a report that will print out the data onto avery labels 5163(which is 2 across u2013 5down =total 10 labels per sheet) with my information.  The program already sets your boundaries for the labels so thatu2019s not a issue. 
    My current select statement works somewhat : if I enter 1 inventory.itemnum and whatever qty I want it prints fine.  However when I enter multiple inventory.itemnums it prints each one of those itemnums at whatever qty I enter in the second parameter. So say I enter 2 itemnums and enter qty 2 to print- I get 2 labels of each item num.  Currently I this format I have the second parameter set to NOT allow multiple fields u2013 however when I change this to allow my report fails u2013 please see my info and layout stuff below
    Here is what I have:
    INVENTORY.ITEMNUM} = {?Control Id:} and
    {Sheet1_.Column1} <= {?number of labels}
    Inventory.itemnum u2013field from database
    {?Control Id:}---parameter 1
    {?number of labels}---parameter 2
    {Sheet1_.Column1}----excel table brought in as secondary database to serve as count feature for report u2013 currently set at 20 but can change from 20 to 10 or higher- whatever qty I want.  The most labels I will need for any 1 item is 24 u2013 but I can print 2 sheets of 10 then 1 of 4 if we reduce it to qty 10 in the table.
    I have 2 parameters that prompt for data
    Parameter 1: it prompts for .itemnum (I have this parameter set to allow multiple inputs of inventory.itemnum)
    Parameter 2: it prompts for qty of labels needed. currently not set to allow multiple numbers as I get a failure when I change my parameter to this.
    As my info above sits I can enter 1 random inventory.itemnum (parameter 1) and  a qty (parameter 2)(1-20 u2013 which is set by a table I built in excel 1-20 u2013 above which is sheet1_.column1)
    What I want to be able to do is
    1.     (Parameter 1 here)Enter inventory.itemnums from random  qtyu2019s of 1-10 at any given input time from user prompt in parameter
    2.     (parameter 2 here)Print label of qtys ranging from 1 label per each item to as many as 10 labels per item
    a.     For example: I enter
    b.     Parameter 1:
    c.     Xitem1.itemnum
    d.     Xitem2.itemnum
    e.     Xitem3.itemnum
    f.     Parameter 2:
    g.     Qty 1- is the amount of labels needed for xitem1(from parameter 1)
    h.     Qty 3- is the amount of labels needed for xitem2(u201C u201D)
    i.     Qty 6- is the amount of labels needed for xitem3(u201C u201C)
    3.     I need the qtys in parameter 2(labels to print) to work with the inventory.itemnums as they are entered in parameter 1.
    I have tried using arrays but they force me to use the same amount of data that I have clauses. Which does not work because I have varying amounts of labels needed at different time-If I have  2 labels and have more clauses than this the report fails. I will not always have 2 or 3 labels to make maybe more maybe less.
    Here is a example of what I was trying with arrays:
    {field.xitem}=(?item.num)[1] and
    {?qty}[1]>={numbertable.number})or
    {field.xitem}=(?item.num)[2] and
    {?qty}[2]>={numbertable.number})or  etc.,etcu2026u2026
    This would force me to input as many item.itemnums and qty labels as there are arrays or the report would fail.
    Edited by: max274 on Mar 30, 2009 3:11 PM

    max40385
    SELECT "INVENTORY"."ITEMNUM", "INVENTORY"."ORDERUNIT",
    "INVENTORY"."BINNUM", "INVENTORY"."MODELNUM",
    "ITEM"."DESCRIPTION", "POLINE"."ITEMNUM", "POLINE"."ENTERDATE",
    "POLINE"."PONUM", "POLINE"."ORDERQTY"
    FROM   "MAXIMO"."INVENTORY" "INVENTORY",
    "MAXIMO"."POLINE" "POLINE", "MAXIMO"."ITEM" "ITEM"
    WHERE  ("INVENTORY"."ITEMNUM"="POLINE"."ITEMNUM") AND ("POLINE"."ITEMNUM"="ITEM"."ITEMNUM") AND
    "POLINE"."PONUM"='24142' AND "POLINE"."ITEMNUM"='1201020021N'
    EXTERNAL JOIN POLINE.ORDERQTY>={?C:\Documents and Settings\kpowell\My Documents\test table.xls: Sheet1_.Column1}
    *****************my counting table here********
    C:\Documents and Settings\kpowell\My Documents\test table.xls
    SELECT `Sheet1_`.`Column1`
    FROM   `Sheet1$` `Sheet1_`
    WHERE  `Sheet1_`.`Column1`<={?max40385: POLINE.ORDERQTY}
    Here is my select statement
    POLINE.PONUM} > "23000" and
    {POLINE.PONUM}={?My Parameter} and
    {POLINE.ITEMNUM}={?Control ID}AND IF
    {POLINE.ITEMNUM} in ["1107011010N", "1201020021N"]THEN
    {?Control ID}*({@qtY})
    my label printing works except when I  my inventory item conversion is like the exmaple below - this is trying to get my label program to work
    but i want to add some execeptions to my statement currently the
    link is as a leftouter join to my counting table which give me my qty of labels to print per user input {?control id} however - some of the items i order with different  order units and conversion qtys for example
    qty 2 - box-10 - going into inventory 20 - I need 20 labels printed vs just 2  - since the labels to print are directly tied to the requested order qty - i need to add the exceptions because some I order with conversions that I will not convert and I just want to add them list "one of" in the selection formula

  • Internet Explorer Script Error when running report with user-entered params

    We are using Crystal Reports Version 11.0.0.1282.  We have multiple copies each installed on a separate computer.  We have a relatively simple report with a prompt for 2 values (parameters) to be selected or input by the users.  The desktop is either Windows XP SP3 or Windows Server 2003 SP2  On all the XP/SP3 computers, this report works as expected.  On the exception computer, the Windows Server2003 Desktop, we see the prompting screen with place holders for graphics instead of the buttons.  When we attempt to select a value for the parameter by keying in the value and clicking on the OK link (no button), we see message box titled "Internet Explorer Script Error" with text: An error has occurred in the script on this page.
    Line: xxx (varies depending on param chosen)
    char 1
    error: Object expected
    url: file:///c:/doc...../temp/1/prompting1.html
    ===============================
    Searhing around the forum and using Google, I found a suggestion to be copying the "prompting" folder and dll from a known working system - tried this, it didn't work.
    So. I still need a solution. Any other suggestions??
    Edited by: Grant Ellsworth on Mar 16, 2009 10:29 PM

    >> I do not think it is because of the parameters you are entering/using, try without using the
    >> parameters (just for testing), if you still get the error then its not the parameters which is causing
    >> the problem.
    If I create the report without asking for user-entered params, it works.
    >> Can you please specify the browser and the tool to display the report you are using? Generally the
    >> error popps up when there are any mistakes in html or if you are using a javascript which has a error.
    The active browser on the computer is IE7 - 7.0.5730.13
    I am using the installed crystal reports 11 program to run the report.  I open the report in CR by going to File/Open and selecting the report. Then I get prompted for my ms sql login info, which I enter.  Then I see the "Enter Values" window with my data entry fields; but I don't see the nice formatting and buttons which I see when I run this from the other computers; I see only the placeholders.  I select or enter data and click on the "OK" link.  Then the message box pops up.  The message box pops up when I click on any of the links or on the "x" in the upper right.  Mesage box is explicit - Intenet Explorer Script Error, etc., as I described in my original post.
    Thanks
    Azhar

  • Run with User's rights not working as expected

    I have a VBscript that runs the Quest Client Profile Updating Utility for migrating Outlook e-mail profiles to a new Exchange Server.  For this tool to work it must be run using the User's security context when the user is logged onto the computer. 
    What I have found is that the script fails to run because SCCM is running the script with elevated privileges.  The program is set with 'Only when a user is logged on' and a run mode of 'Run with user's rights'.  The advertisement is set to run from
    a distribution point and has two mandatory re-occuring schedules (Logon, and at 6:00 a.m. every day).
    To test what is happening I created a separate Program that has the same program settings but only runs 'Cmd.exe /k echo' for the command line.  If I run this SCCM program as a user who is not a member of the local administrators group
    I can execute privileged programs like regedit.exe.  If I run the Command Prompt from the Start\Accessories folder and try to run Regedit I receive an 'Access denied' message.  It appears SCCM is running with elevated privileges.
    Does SCCM run a program with elevated privileges?  How can I make a program run without elevated privileges.
    thank you for your help.

    Actually I ran into a similar issue today trying to gather info about mapped network drives and found this thread when trying to troubleshoot it.  Here's a summary of what I've done:
    I have an SCCM package set up to run a script to dump the users' mapped drives to a text file.  The program is set to run only if a user is logged on and to run in the logged on user's context.  UAC is enabled.  For users who are members of
    the local Administrators group, the resulting text file was empty, as if no drives were mapped.  Running the script manually (not via SCCM, just double-clicking the script) populated the text file with the expected results.  So the script works correctly. 
    I suspected SCCM was running the package elevated, since drives mapped in the non-elevated context aren't visible to the elevated context.
    To test, I created another package & program that runs a command I know requires elevation (ipconfig /registerdns) and pipes the output to a text file. I configured it in the same way, and for users who are in the local admin group, the text file results
    indicate that the command ran successfully (which means it ran elevated). If I take the user out of the local admin group, making no changes to the package, then run the package again, the text file results say "This command requires elevation."
    So, it appears SCCM is running with the highest elevation level for which the user has rights.  I guess this makes sense, and it's not doing anything the user wouldn't normally have rights to do, but it does cause a problem when a program needs to run
    under the user's non-elevated token.  Any suggestions?
    Thanks,
    Matt

  • Writing order by clause with user parameter

    I have a user parameter where the user is supposed to choose what column they want to sort by.
    And they can choose between k.personnr and k.personnavn. I am trying to do this with a decode function.
    Now this would work fine if there was no union between these select statements.
    But with the union I get a ORA-01785, where they tell me to put in a number.
    Here is the sql:
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    r.belop as SUM,
    concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY'))) AS PERIODE
    FROM
    reskontro r,
    klient k,
    kontoplan p,
    konto c
    WHERE
    r.distriktnr='21'
    and r.distriktnr=c.kontoid
    and r.distriktnr=k.distriktnr
    and r.personnr=k.personnr
    and r.kontonr=p.kontonr
    and (((r.bilagdato between :p_fra_dato and :p_til_dato) and (:p_fra_dato <= c.overfort) and (:p_til_dato <= c.overfort))
    or ((r.bilagdato between :p_fra_dato and c.overfort) and (:p_fra_dato <= c.overfort) and (:p_til_dato >= c.overfort)))
    UNION ALL
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    (t.belop/100) as SUM,
    concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')),:P_HORISONTAL) AS PERIODE
    FROM
    transaksjon t,
    klient k,
    kontoplan p
    WHERE
    t.distriktnr='21'
    and t.distriktnr=k.distriktnr
    and t.personnr=k.personnr
    and t.kontonr=p.kontonr
    and t.bilagdato between :p_fra_dato and :p_til_dato
    This is the order by clause I would like to use:
    order by decode(:p_order_by,'Personnavn',k.personnavn,k.personnr)
    I also get an error when I use:
    order by decode(:p_order_by,'Personnavn',2,1)
    Can anybody tell me how to work around this problem?

    Hi,
    One way you can do to get around this problem could be :
    select * from (
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    r.belop as SUM,
    concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY'))) AS PERIODE
    FROM
    reskontro r,
    klient k,
    kontoplan p,
    konto c
    WHERE
    r.distriktnr='21'
    and r.distriktnr=c.kontoid
    and r.distriktnr=k.distriktnr
    and r.personnr=k.personnr
    and r.kontonr=p.kontonr
    and (((r.bilagdato between :p_fra_dato and :p_til_dato) and (:p_fra_dato <= c.overfort) and (:p_til_dato <= c.overfort))
    or ((r.bilagdato between :p_fra_dato and c.overfort) and (:p_fra_dato <= c.overfort) and (:p_til_dato >= c.overfort)))
    UNION ALL
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    (t.belop/100) as SUM,
    concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')),:P_HORISONTAL) AS PERIODE
    FROM
    transaksjon t,
    klient k,
    kontoplan p
    WHERE
    t.distriktnr='21'
    and t.distriktnr=k.distriktnr
    and t.personnr=k.personnr
    and t.kontonr=p.kontonr
    and t.bilagdato between :p_fra_dato and :p_til_dato)
    order by decode(:p_order_by,'Personnavn', NAVN, PERSON)
    /Uffe

  • Delivering the crystal formated reports to users who are not defined BO/SAP

    Hi,
    The requirement is to send the crystal formatted report to number of users who are not in BO/SAP System. Can we use the whole dynamic contact list for automated personalization and distribution to people not set up as a user in the system?
    Can we deliver a publication to the users who are not at all defined in the BO system or any SAP system
    its to the users who are all together different vendors who do not have any login.
    Please let me know if this is possible via publication if possible could any one provide me any doc which states the same
    Thanks in Advance,

    Moved to BOE Admin forum.
    I assume you are using a BOE Scheduling options to distribute your reports?
    Check the Scheduling Guide and formats for more info.
    And yes simply send them a DPF file and set up a Group in your e-mail Server, or individual if that works better. More work though.
    Don

  • Scheduling a Report with Dynamic Parameter Values

    Post Author: etlag
    CA Forum: Publishing
    I have created a report using a parameter that has dynamic values - meaning the user can choose a date from a specific field. It works fine once published in InfoView, but when I schedule the report, when I try to enter the parameter I get promted for a login for the database, even though I have already entered this in the CMC report properties.
    I have other reports that are using static values and they can be scheduled without entering the database login.
    Any ideas what I am missing?

    Post Author: amr_foci
    CA Forum: Publishing
    dear etlag
    its known issues, you've to set the default database connection to this report from the "CMC" web-bases appliaction , find this object click it go to "process" tab and then click the "database" tab,,, set your default database connection there and finally dont forget to set "Use same database logon as when report is run" at the end of the page
    and cilck ok
    try it ,, good luck
    Amr

  • Dis51usr.exe: How to run a multisheet report with different parameter?

    Hi,
    I have a report ( say 1.dis) with 2 sheets ( X and Y ). X has the parameter
    District and Y has the parameter Division. While I saved the report, the sheet X was opened . ( That means I run the report X from Desktop and save the report )
    Now I execute the following command to run the X .
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "X" /parameter "District"
    "ABC" /export xls C:\Test\DIS_REPORT_OUTPUT_X.xls /BATCH
    It is successfully run and gives the output file.
    Now I execute the following command to run the Y.
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "Y" /parameter "Division"
    "DEF" /export xls C:\Test\DIS_REPORT_OUTPUT_Y.xls /BATCH
    It is showing the error
    District: Unresolved parameter.
    If I save the report while the sheet Y is opened , then the second command is running fine,
    but the first one is showing the error
    Division: Unresolved parameter.
    It looks the command can not move to other sheet . How can I resolve it ?
    Please help.

    Hi
    Just had an idea. Try removing the double quotes from around the parameter value. Even though it is a string you don't need to provide quotes in the command line. Therefore try again like this:
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "X" /parameter "District"
    ABC /export xls C:\Test\DIS_REPORT_OUTPUT_X.xls /BATCH
    and this:
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "Y" /parameter "Division"
    DEF /export xls C:\Test\DIS_REPORT_OUTPUT_Y.xls /BATCH
    You also may not need the double quotes around the sheet and parameter names. Typically these are only used when there is a space in the name
    As an FYI, if you need to put quotes around a parameter value try using single quotes instead of double quotes and as a tip if you are passing multiple values to a parameter they should be passed with a comma between them and no space either before or after the comma.
    Do you have a copy of my Oracle Press book called Oracle Discoverer 10g Handbook? If so, please take a look at pages 503 to 509. If you don't have it I'd strongly recommend doing so as it contains over 1,000 pages of information. You can get it at amazon and can find out more about it on my website here: http://ascbi.com/10g-handbook.htm
    Best wishes
    Michael
    URL: http://ascbi.com
    Blog: http://learndiscoverer.blogspot.com

  • Report - Primary User is name not shown

    Hey there,
    I've got a problem with the reporting Server functions.
    When creating a report containing "Primary User Name (Calculated)" there is no data shown within this column. If I add "Is Primary User Calculated?" I get "YES" for every Device name that has its Primary user detemined already - but the rows for "Primary User Name (Calculated)" stay empty.
    The Information from "Is Primary User Calculated?" seem to be right, when checking Devices/Workstations/... within ZCM, and the Primary User Names are shown there.
    Does anyone encounter this problem before and/or got a solution?
    regards,
    alex

    schiggieh,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • User parameter are not show in database using Servlet and java Bean

    Hello Sir,
    when I insert the parameter in run time, weblogic server and JSP show that parameter are saved.
    Allthough row increment in database but they not show in database.
    Here My Code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(user);
    st.setpassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getuserName() {
    return user;
    public void setuserName(String user) {
    this.user = user;
    public String getpassword() {
    return pass;
    public void setpassword(String Pass) {
    this.pass= pass ;
    public String issueData()
    try
    System.out.println("Printed*************************************************************");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij2 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String NAME=getuserName();
    st.setString(1,NAME);
    String PASSWORD=getpassword();
    st.setString(2,PASSWORD);
      st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:This is Submit page
    <jsp:useBean id="st" class="co.SimpleBean"/>
    <jsp:setProperty name="st" property="*" />
    <jsp:getProperty name="st" property="userName" /> <br>
    <jsp:getProperty name="st" property="password" /> <br>
    <% st.issueData();%>
    <%
    out.println("Ur data is saved in DB");
    %>Please Help me.
    Thanks.

    Ok, this seems to be a long and convoluted path to do absolutely nothing.
    You submit the form.
    You run a servlet that gets the parameters correctly (good), creates a SimpleBean (good) and then sets this into request attribute space under the names "user" and "pass" - (why?)
    You then forward to the jsp: submit.jsp.
    Submit.jsp creates a new SimpleBean, and attempts to populate it with <jsp:setProperty>. You then call the issueData method on it.
    Your complaint: Rows are being created in the database which have empty string values instead of the parameters you have passed.
    So, why are the values blank? Where do you think these values should be coming from?
    Looking at SimpleBean we find one mistake - you have mis-named your get/set methods.
    To properly follow java beans standards, you should use camel-case for your methods.
    Rather than getuserName() the method should be getUserName(). getpassword() should be getPassword() etc etc.
    The method getUserName() defines a property "userName" for the bean.
    Once that is fixed, lets go to submit.jsp. The <jsp:setProperty> statement will try and set all properties of the bean from the request parameters.
    There are no request parameters "userName" or "password" so those values don't get set in the bean, therefore it uses their default value of empty string - "".
    There ARE request parameters called "user" and "pass" but because they aren't properties of the bean, they get ignored.
    As a result, the values are empty string, and that is exactly what gets inserted into the database.
    Ways to fix this
    1 - rename your parameters on your form to be "userName" and "password" to match the bean. That way the <jsp:setProperty> tag will populate them properly.
    or
    2 - Call issueData() method from your servlet after you have created the SimpleBean. Better in my opinion as you then don't have any scriptlet code on a JSP page.
    Cheers,
    evnafets

  • Using Run_Report_Object() To Call Reports with a Parameter Form

    Hi
    I have successfully migrated a version 5 application to 10g but, I'm having a particular issue with reports run from a menu.
    The report has 3 user parameters and they previously worked with a client server parameter form.
    How do I pass the parameters from the report to the RUN_REPORT_OBJECT in the pl/sql editor in the menu ?
    In my other reports I have used a :block.item bind variables but in this case there is no datablock involved.
    Any help with the correct syntax will help.
    Message was edited by:
    4dyomi
    Message was edited by:
    4dyomi

    Dear Friend,
    You can use following code to run a report from "Forms10g" using RUN_REPORT_OBJECT. Directly copy below code to your forms10g and make appropriate changes. In the code, "Manish" is the name of report server running on your application server. To start report server u can run this command on command prompt on your application server.
    rwserver server=<server_name>
    This command will start report server. In below code i have a text box called "ADDRESS_CODE" which i am passing as a parameter to report which conatains a parameter called "SUBCODE". This is a tested code and works fine in Forms10g DS.
    declare
         cnt number(3);
         report_id report_object;
         REPORTSERVERJOB VARCHAR2(100);
         VJOBID VARCHAR2(100);
         REPORTSERVER VARCHAR2(50) := 'MANISH';
         V_URL2 VARCHAR2(500);
         V_URL VARCHAR2(100);
         PARA PARAMLIST ;
    begin
         PARA := CREATE_PARAMETER_LIST('INPUT1');
         --'ADDRESS_BOOK' IS A REPORT OBJECT DEFINED
         REPORT_ID := FIND_REPORT_OBJECT('ADDRESS_BOOK');
         --FOLLOWING PARAMETERS ARE MANDATORY PARAMETERS TO SET REPORT OBJECT
         SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'HTMLCSS');
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, REPORTSERVER);
    --TO SEND PARAMETERS TO REPORT ADD FOLLOWING CODE, (:ADDRESS_CODE IS A TEXT ITEM)
    ADD_PARAMETER(PARA,'SUBCODE',TEXT_PARAMETER,:ADDRESS_CODE);
    --RUN REPORT OBJECT TO FETCH JOBID
    REPORTSERVERJOB := RUN_REPORT_OBJECT(REPORT_ID,PARA);
    --VJOBID IS JOBID THAT IS SET AT RUNTIME BY REPORT SERVER
    vjobID := substr(ReportServerJob,length(reportserver)+2,length(ReportServerJob));
    v_url := '/reports/rwservlet/getjobid'||vjobID||'?server='||reportserver;
         Web.Show_Document(v_url,'_blank');
         DESTROY_PARAMETER_LIST(PARA);
    end;
    Regards,
    Manish Trivedi
    Software Developer
    Ambuja Cement,
    India.

Maybe you are looking for

  • Can not maintain Master Data

    Dear Expert, After Upgrade I can not mapping cost element to cost center in ECC 6.0 using transaction code OKB9. Can you help me. Thank you. Regards, MAL

  • Ios 8.3 will not allow me to add a contact to group message

    ios 8.3 will not allow me to add a contact to group message.  When I touch "Details" on a group message (says "Group MMS" at the top), THERE IS NO OPTION TO ADD CONTACT.  Why not?  iPhone 6.

  • Mini disc stuck in my imac

    How do I remove a mini disc that is stuck in my new intel imac? the eject button is useless. <Edited by Moderator> Thanks Steve

  • HT1414 ipad is disabled and wont restore

    Son's iPad Mini - he fogot his passsword & now the device is showing "iPad is disabled" and I cannot get it to restore.  Tried to go through Recovery Mode but it gets stuck with a message that says "To allow access, please respond on your iPad"  but

  • Regarding Connecting Multiple BI Systems to single R3 System

    Hi, We have perform R3load based system copy of our BW Systems dev/qa/prod. Now, we have D4D/D4T/D4P as one new BW Landscape we have D2D/D2T/D2P as original BW Landscape We have R8D/R8T/R1P as R3 Landscape. Original BW Landscape is already connect to