Crystal Report - problem with passing parameters from J2EE app

i'm trying to pass a few parameters from my java application to a crystal report using the code below:
ParameterField pfield1 = new ParameterField();
ParameterField pfield2 = new ParameterField();
Values vals1 = new Values();
Values vals2 = new Values();
ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
ParameterFieldDiscreteValue pfieldDV2 = new ParameterFieldDiscreteValue();
pfieldDV1.setValue("1056");//dform.getSelectedPeriod());
pfieldDV1.setDescription("termId");
vals1.add(pfieldDV1);
pfield1.setReportName("");
pfield1.setName("@p_termId");
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
// check here for null condition otherwise will throw nullpointerexception
pfieldDV2.setValue("elect");
pfieldDV2.setDescription("allocType");
vals2.add(pfieldDV2);
pfield2.setReportName("");
pfield2.setName("@p_allocType");
pfield2.setCurrentValues(vals2);
fields.add(pfield2);
this report calls a stored procedure (sql server). the report displays the data but the same is not the case when i call ity from my java application. with a single parameter it works fine (even though i get a "Some parameters are missing values" ERROR on the console. But when i pass, say 2 parameters, it give me the above error first and then "JDBC Error: Parameter 2 not set or registered for output"
Can anyone bail me out of this one?
thanks,
ptalkad

I don't know about naming conventions, but could the @ signs in the variable names cause a problem?
How have you set up the mapping in Crystal?
Is this parameter 2 an "out" parameter returning a value?
What version of Java are you using?
Version of Crystal?
What JDBC driver?

Similar Messages

  • Problem with passing parameters from HTML

    Im unsure as to where to turn next with this problem. What is making it all the more infuriating is that I have had this code working previously and now cant for the life of me figure out how I did it.
    What Im trying to do is I have a HTML page with two buttons on, one called "Submit Application" and the other "Submit Resource" and when I click on one I want a JSP page to be called and a certain piece of SQL to be executed, likewise when I click on the other "Submit Application" button I want a separate bit of SQL to be executed. (I know in this example both bits of SQL are identical but that is just while I get the functionality correct).
    Whats happening is that the first bit of SQL will execute if I click the "Submit Resource" button, however when I click the "Submit Application"
    button I get a "Error 500:" displayed. Im at the end of my tether as to what to do next and as I say it makes it all the more infuriating in that I had it working before. So any help would be greatly appriciated.
    The code is as follows, I have highlighted the two IF statements :-
    <HTML>
    <FORM>
    <BODY>
    <%@ page import="java.util.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.sql.*" %>
    <%@ page import="javax.naming.*" %>
    <HTML>
    <HEAD>
    <TITLE>Resource Level Report</TITLE>
    <table width="200" border="1" align="center">
    <tr>
    <th scope="row"><img src="color_teradata_logo.gif"> </th>
    <td></td>
    <td><img src="lloydslogo.gif"></td>
    </tr>
    </table>
    <br>
    </HEAD>
    <BODY leftmargin=0 topmargin=0 marginwidth="0" marginheight="0">
    <%
    String dbURL="jdbc:oracle:thin:@lloyds.unitedkingdom.ncr.com:1521:smacdev";
    String dbUSER="agents";
    String dbPW="smac_us";
    String Resrce = request.getParameter("Resrce"); String Appln = request.getParameter("app"); String Subres = request.getParameter("Submit Resource"); String Subapp = request.getParameter("Submit Application"); Connection con = null;
    if (!Subres.equals (null)) {
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection(dbURL, dbUSER, dbPW); } catch(SQLException e) { System.err.println("Failure to connect " + e.getMessage()); }
    if (!Subres.equals (null)) {
    try
    String sqlstring = "Select app.application, res.resorce, res.system, res.status, res.unitofworkname, res.unitofworkvalue, res.capturetimestamp from agents.Resorce res, agents.applicationresource app where res.resorce = app.resorce and res.system = app.system and upper(res.resorce) = upper('"+ Resrce + "') order by 3";
    //out.println(sqlstring);
    //out.println(Subapp);
    //out.println(Subres);
    //commented this out, but enable you to see SQL that is been executed !!!
    Statement stmt = con.createStatement();
    ResultSet res = stmt.executeQuery(sqlstring);
    int count =0;
    %>
    <table width ="380" border="0" align="center">
    <h1 align="center">Resource Level Reporting</h1>
    </table>
    <br>
    <table width="200" border="6" align="center" >
    <th bgcolor="#FF9933">System<th bgcolor="#FF9933">Resource<th
    bgcolor="#FF9933">Application<th bgcolor="#FF9933">Unit Of Work Name<th
    bgcolor="#FF9933">Timestamp <th bgcolor="#FF9933">Unit Of Work Value<th
    bgcolor="#FF9933">Status<tr>
    <%
    while (res.next()){
    String app= res.getString(1);
    String resorce = res.getString(2);
    String system = res.getString(3);
    String status = res.getString(4);
    String unitofworkname = res.getString(5);
    String unitofworkvalue = res.getString(6);
    String capturetimestamp = res.getString(7);
    String timestampmod = capturetimestamp.substring (0,19);
    String status1 = status.trim();%>
    <% if (status1.equals ("SYNC")) { %>
    <tr>
    <td bgcolor="#00FF33">
    <%out.print(system);%>
    <td bgcolor="#00FF33">
    <%out.print(resorce);%>
    <td bgcolor="#00FF33">
    <%out.print(app);%>
    <td bgcolor="#00FF33">
    <%out.print(unitofworkname);%>
    <td bgcolor="#00FF33">
    <%out.print(timestampmod);%>
    <td bgcolor="#00FF33">
    <%out.print(unitofworkvalue);%>
    <td bgcolor="#00FF33">
    <%out.print(status);%>
    <% }
    else if (status1.equals ("OOS")) { %>
    <tr>
    <td bgcolor="red">
    <%out.print(system);%>
    <td bgcolor="red">
    <%out.print(resorce);%>
    <td bgcolor="red">
    <%out.print(app);%>
    <td bgcolor="red">
    <%out.print(unitofworkname);%>
    <td bgcolor="red">
    <%out.print(timestampmod);%>
    <td bgcolor="red">
    <%out.print(unitofworkvalue);%>
    <td bgcolor="red">
    <%out.print(status);}%>
    <%
    res.close();
    stmt.close();%>
    <tr>
    </table>
    <%
    catch (SQLException e) {
    out.println("Sql error here " + e.getMessage());
    finally {
    con.close();
    %>
    <%
    if (!Subapp.equals (null)) {
    try
    String sqlstring = "Select app.application, res.resorce, res.system,
    res.status, res.unitofworkname, res.unitofworkvalue, res.capturetimestamp
    from agents.Resorce res, agents.applicationresource app where res.resorce =
    app.resorce and res.system = app.system and upper(res.resorce) = upper('"+
    Resrce + "') order by 3";
    //out.println(sqlstring);
    //out.println(Subapp);
    //out.println(Subres);
    //commented this out, but enable you to see SQL that is been executed !!!
    Statement stmt = con.createStatement();
    ResultSet res = stmt.executeQuery(sqlstring);
    int count =0;
    %>
    <table width ="380" border="0" align="center">
    <h1 align="center">Resource Level Reporting</h1>
    </table>
    <br>
    <table width="200" border="6" align="center" >
    <th bgcolor="#FF9933">System<th bgcolor="#FF9933">Resource<th
    bgcolor="#FF9933">Application<th bgcolor="#FF9933">Unit Of Work Name<th
    bgcolor="#FF9933">Timestamp <th bgcolor="#FF9933">Unit Of Work Value<th
    bgcolor="#FF9933">Status<tr>
    <%
    while (res.next()){
    String app= res.getString(1);
    String resorce = res.getString(2);
    String system = res.getString(3);
    String status = res.getString(4);
    String unitofworkname = res.getString(5);
    String unitofworkvalue = res.getString(6);
    String capturetimestamp = res.getString(7);
    String timestampmod = capturetimestamp.substring (0,19);
    String status1 = status.trim();%>
    <% if (status1.equals ("SYNC")) { %>
    <tr>
    <td bgcolor="#00FF33">
    <%out.print(system);%>
    <td bgcolor="#00FF33">
    <%out.print(resorce);%>
    <td bgcolor="#00FF33">
    <%out.print(app);%>
    <td bgcolor="#00FF33">
    <%out.print(unitofworkname);%>
    <td bgcolor="#00FF33">
    <%out.print(timestampmod);%>
    <td bgcolor="#00FF33">
    <%out.print(unitofworkvalue);%>
    <td bgcolor="#00FF33">
    <%out.print(status);%>
    <% }
    else if (status1.equals ("OOS")) { %>
    <tr>
    <td bgcolor="red">
    <%out.print(system);%>
    <td bgcolor="red">
    <%out.print(resorce);%>
    <td bgcolor="red">
    <%out.print(app);%>
    <td bgcolor="red">
    <%out.print(unitofworkname);%>
    <td bgcolor="red">
    <%out.print(timestampmod);%>
    <td bgcolor="red">
    <%out.print(unitofworkvalue);%>
    <td bgcolor="red">
    <%out.print(status);}%>
    <%
    res.close();
    stmt.close();%>
    <tr>
    </table>
    <%
    catch (SQLException e) {
    out.println("Sql error here " + e.getMessage());
    finally {
    con.close();
    %>
    </BODY>
    </FORM>
    </HTML>
    I think the error messages I am getting are :-
    [15/09/04 12:38:36:535 BST] 45b5f97b WebGroup I SRVE0180I: [SMAC Web Front End] [smac] [Servlet.LOG]: /JSP/Resreports.jsp: init
    [15/09/04 12:39:08:510 BST] 7abd7978 WebGroup I SRVE0180I: [SMAC Web Front End] [smac] [Servlet.LOG]: /JSP/Resreports.jsp: init
    [15/09/04 12:39:15:273 BST] 7abd7978 WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
         at org.apache.jsp._Resreports._jspService(_Resreports.java:117)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled Code))
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))

    You make your comparisons like this:
    if (!Subapp.equals (null))
    Well, what happens if Subapp IS equal to null. The .equals method call will be called from a NULL and you will get a NullPointerException.
    When testing for null you do:
    if (Subapp == null) (or if (Subapp != null)
    This is okay when dealing objects even with the mantra of 'don't use == to compare objects, because what you are really testing is if the reference points anywhere, and == will compare the reference.
    Also, next time you post, make sure to use the [code] tags as described in the [Formatting Help] link. It will make it easier to read.
    Also, you should try to remove the SQL from the JSP. Move it into a Servlet which builds a List that forwards to another JSP for display, or use a bean. Using java classes like Servlets and JavaBeans makes it easier to debug, and makes your JSP code easier to manage.

  • I have a problem with your purchase from the App Store

    I have a problem with your purchase from the App Store
    To understand the problem as well as view images on a flow
    https://www.icloud.com/photostream/#A7GI9HKK27lHY

    You will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    Regards.

  • Crystal Report problem with J2EE - OutOfMemory

    Dear All,
    I am having a problem about generating PDF from J2EE (Tomcat, Java 1.4)  WebApplication by Crystal report.
    When generating a PDF it sometimes got an out of memory error.
    However the Web Application is still working fine, just when regenerate the same crystal report the out of memory error occur again. when i generate the other report it works fine.
    Please help .
    Many Thanks

    Hi,
    It's a good idea to set the minimum and maximum heap size to the same value. In any case, don't let the minimum heap size exceed the maximum.
    Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat.
    Look at the file tomcat-install/bin/catalina.sh or catalina.bat for how this variable is used.
    For example,
    set CATALINA_OPTS="-Xms512m -Xmx512m"  (Windows)
    export CATALINA_OPTS="-Xms512m -Xmx512m" (ksh/bash)
    setenv CATALINA_OPTS "-Xms512m -Xmx512m"  (tcsh/csh)
    In catalina.bat or catallina.sh, you may have noticed CATALINA_OPTS, JAVA_OPTS,
    or both can be used to specify Tomcat JVM options.
    What is the difference between CATALINA_OPTS and JAVA_OPTS?
    The name CATALINA_OPTS is specific for Tomcat servlet container,
    whereas JAVA_OPTS may be used by other java applications (e.g., JBoss).
    Since environment variables are shared by all applications, we don't want Tomcat to inadvertently pick up the JVM options intended for other apps. I prefer to use CATALINA_OPTS.
    You have specified size by a capiital "M" ?(3072M) use "m".
    Please let me know the results.
    Regards,
    Neeraj

  • Issue with passing parameters from JSP to Backing bean

    hi ,
    I have an issue in passing parameters from my JSP to backing bean. I want to fetch the parameter from my URL in backing bean .This is how i am coding it right now. But the parameter companyID returns me null.
    URL http://localhost:8080/admin/compadmin.jsp?companyID=B1234.
    In my backing bean
    FacesContext context = FacesContext.getCurrentInstance();
    String companyID = (String)context.getExternalContext().getRequestParameterMap().get("CompanyID");
         public void setCompanyID(String companyID)
              this.companyID=companyID;
         public String getCompanyID()
              return this.companyID;
    faces-config.xml :
       <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.admin.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>companyadminbean</property-name>
                   <property-class>com.admin.model.AdminBean</property-class>
                   <value>#{companyadminbean}</value>
                         </managed-property>
                        <managed-property>
                                 <property-name>companyID</property-name>
                              <value>#{param.companyID}</value>
                             </managed-property>Please let me know if iam missing something.Appreciate your help in advance
    Thanks

    Thanks very much for your input. I made changes to my bean accordingly. Actually the method getAdminType() is a not a getter of a property. It's just a method which iam calling in AdminController bean constructor to verify whether the person is System Admin or Client admin. So now the issue is inspite of making changes still the link "Copy Users" shows up for Client admin too which is incorrect.
    My Administrator bean:
    public class Administrator {
      boolean GSA=false;
      boolean SA=false;
      public Administrator(){}
    public boolean isGSA()
        return GSA;
      public boolean isSA()
        return SA;
      public void setGSA(boolean value)
        this.GSA=value;
      public void setSA(boolean value)
        this.SA=value;
    }My backing bean:
    public class AdminController {
    private AdminBean adminbean = new AdminBean();
    public AdminController(){
    int userID=1234;
    this.getAdminType(userID);           
    public void getAdminType(int userID)
             Administrator admin = new Administrator();
             if (userID<0) return;
             try{
                 if(Rc.isGlobalSystemAdmin(userID)){
                      admin.setGSA(true);
                              }else if(Rc.isClientSystemAdmin(userID)){
                      admin.setSA(true); // i could see these values setup correctly in the admin bean when i print them
                 adminbean.setAdmin(admin);
                  } catch (Exception e){ }
    Admin Bean:
    public class AdminBean {
    private Administrator admin; 
    public Administrator getAdmin()
                        return this.admin;
              public void setAdmin(Administrator admin)
                        this.admin = admin;
    faces-config.xml
    <managed-bean>
              <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>adminbean</property-name>
                   <property-class>com.model.AdminBean</property-class>
                   <value>#{adminbean}</value>
             </managed-property>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>adminbean</managed-bean-name>
              <managed-bean-class>com.model.AdminBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <managed-property>
                   <property-name>admin</property-name>
                   <property-class>com.model.Administrator</property-class>
                   <value>#{admin}</value>
                             </managed-property>
         </managed-bean>     My JSP:<h:outputLink id="ol1" value="/companyadmin/copyusers.jsp">
               <h:outputText id="ot1" value="Copy Users" rendered="#{adminbean.admin.isGSA}" /><f:verbatim><br/></f:verbatim>
               </h:outputLink>    so now the issue is thelink copy users is displayed even #{adminbean.admin.isGSA} is FALSE. please advise.
    Thanks
    Edited by: twisai on Oct 15, 2009 7:06 AM

  • Problems with iMovie downloaded from the App Store

    I downloaded iMovie 11 from the App Store Yesterday. When I try to use it I get this message, "Missing QuickTime Component." "The QuickTime component necessary to view, edit, import and export MPEG2 movies is not installed." "It is included with the iMovie installed, Please re-install." I have tried to re-download it from the App Store and then get the message "Installed." I have searched the Apple site for information as to how to accomplish this to no avail. I have looked at the iMovie Help files all to no avail. Can anyone please tell me what to do to fix this. When installing from the App Store you do not seem to get a standard installer.
    Thanks to anyone who can help fix this problem.
    Mike

    When installing from the App Store you do not seem to get a standard installer.
    True.
    I have found that the physical possession of the software on a DVD or CD is a better way to go.
    In the event you have a computer problem and must rebuild your system or reinstall software, it is always easier to do so if you have the physical media in your possession.
    I would spend a few dollars more and purchase the iLife 11 disc.

  • Facing Problem with passing Values from One report to another

    Hi,
    I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
    Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
    Please, let me know whats going wrong.
    Thanks for the help.

    sorry for the late updation.
    My First Report, Summary level is a Pivot Table.
    I tried the same report with Table option, the value is passing correctly.
    Is there a way to get rid of this situation using Pivot table.
    Thanks for your help.
    below is the original request.
    Hi,
    I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
    Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
    Please, let me know whats going wrong.
    Thanks for the help.

  • Crystal Report problem with VS2005

    Hi
    I have installed evaluation copy of crystal report 2008 for .net. I am using VS 2005.
    I have created reports  using default crystal report that comes with VS 2005(version 10).Reports are upgraded to version 12 and  running fine, but I am not able to use some design time features of report with .net. and these are working well with crystal report s/w.
    1.Tool tip for bar chart doesn't displayed.Where as It displayed in crystal report.
    2.Series option in preview mode to convert particular bar to line is not available.Where as this option is available in crystal report.
    Please suggest.
    Thanks in advance.
    Regards
    Kavita Choure
    Palewar Techno Solutions
    (Mobile Solutions for Your Business)
    [http://www.palewar.com]

    Hi Falk
    Thanks for your prompt response.
    Both embedded designer in VS as well as application have the same problem.
    when I open sample report (.rpt) in embedded designer it has the same problem.
    I also tried after uninstalling crystal report basic then reinstalling crystal report 2008 but it doesn't solve the problem.
    please let me know if you have any more suggestions?
    Thanks in advance.
    Regards
    Kavita Choure
    Palewar Techno Solutions
    (Mobile Solutions for Your Business)
    [http://www.palewar.com]

  • Crystal Reports - Problem with too long BEx Query technical variable names?

    Hello!
    I have Crystal Reports 2008 SP3 and the SAP BO Integration Kit XI 3.1 SP3 installed and want to access a BEx query on a BW system within my Crystal Report.
    The problem is that the name of the BEx variable is not displayed correctly (just "[]" is displayed for the variable name) as a parameter within Crystal Reports when I import the query. Furthermore I can't navigate through the fields of the query within Crystal Reports.
    The technical names of the BEx query-variables have a length of 12 characters.
    The interessting thing is that if I change the technical names of the BEx query variables to a maximum length of 8 characters everything works fine.
    I use the SAP toolbar within Crystal Reports 2008 to create the report and have the "MDX-driver"-setting selected.
    Has anyone ever had the same problem? Any suggestions?
    I don't want to change the technical names of the variables of my queries...
    thanks,
    Dominik

    Hi!
    Just fixed the problem: The "Transports" for the Integration Kit had to be imported at the BW-System
    regards

  • Calling APEX form with dynamic parameters from Oracle Apps 11.5.8

    I have successfully managed to setup access to APEX forms from Oracle Apps 11.5.8 menus utilising Form Functions passing a number of hardcoded parameter values as outlined in the document, http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf.
    I am now trying to ZOOM from an Oracle Form passing values of form items (dynamic parameters) to an APEX form. I have so far not been able to do this.
    I've also tried using;
    web.show_document('http://derep.obup.co.uk:4657/pls/apex/f?p=100:1::::::p1_cust_account_id:'||name_in('ast_cu_act.account_id')||':', '_TOP');
    but this prompts for a username/password again as this bypasses the APEX Launch process that is defined in my Form Function.
    Is this possible in the parameters section of Form Functions? or elsewhere.
    Regards,
    Naeem

    Hi Daan
    We do havea couple of customers doing this, they have taken two approaches:
    1. Install XMLP on a separate server entirely - kick off conc request to extract data and then use Java Messaging Service (JMS) to push the resulting XML to the external server where they are using AQ to set up jobs for the XMLP server to work through, generating and delivering the final documents.
    2. Set XMLP up as a virtual printer - here the conc request again generates XML but this time the result is directed to a virtual printer namely XMLP. There is a perl or similar wrapper that gets called as the printer and accepts the data, template, output format and delivery destination as parameters.
    Apologies for the 10,000 feet overview, hope it helps. Tim

  • Help with passing parameters from a servlet to an applet

    dear all
    i m working on a application which will check weather a file is present in a server (webserver) if it is present then it will take the file name and put it into a drop down list and there is a button on click of which i m taking the call to an applet and then on that i need the file name if it is there then i use it to draw a graph
    i m struck on how to take parameter from Servlet -> Applet
    thanks
    Nakul

    hi,
    I understood your question,The context "servlet" cannot communicate to
    an applet becoz applet runs at clients browswer, rather you can communicate from an applet to servlet(HTTPURLCONNECTION class).
    Well coming to the problem, this is how i have understood your problem,
    basically uou get the list of files from the server using normal servelt programing and you will display in an html LIst box and then click the button to view the graph or chart ,
    then you just want to pass the filename which is there in the listbox to an applet and applet will display some image.
    As we know all that using <PARAM NAME=XX VALUE=YY> WE CAN GET THE VALUE IN APPLET BY USING GETPARAMTER() METHOD. and Im very sure that you are not asking that question. your question is like " both the applets and
    the listboxes will be loaded at once and when he selects one of the file from the list box then without refreshing the page , how to display the graph.
    Im i right?
    If so i guess you have to use javascript to do that stuff, and i think its like gave an id for the tag shown <applet id="yes">
    then in the javascript , you can call the Java applet methods (I have never tried before but seen some demos(i dont have that links- google it for inf))
    but i can give clue like.. trying the <PARAM VALUE=""> IF POSSIBLE
    CHAING THE HTML CONTENT IS POSSIBLE IN IE which is again through javascript by calling yes.innerHTML="<PARAM><PARAM><PARAM><PARAM>..."
    Im sure that you can call Java methods from javascript but i never tried and even you can pass an arguments to it.. Let me check out like
    becoz even im interested to know abt it
    bye
    with Regars
    Lokesh T.C

  • JDBC ojdbc6.jar problem with passing parameters for PreparedStatements.

    The JDBC Driver being used in ojdbc6.jar. I am using this driver because I of its compatibility with Java 6 which is on my machine
    The database I am connecting to is 10.2 (10g) Oracle database.
    The connection works fine its the parsing of the SQL query that is giving the problem Below is the code specific to this
    // never mind the syntax this is a JavaFX module and the query syntax doesn't use the '+' concats.
    sql = "select sfrracl_pidm,\n"
    " sfrracl_term_code, \n"
    " sfrracl_source_cde, \n"
    " sfrracl_reg_access_id \n"
    "from SFRRACL \n"
    "where sfrracl_term_code=? \n"
    "and sfrracl_pidm =\n"
    " (select spriden_pidm from spriden\n"
    " where spriden_id=? \n"
    " and spriden_id like 'G%'\n"
    " and spriden_change_ind is NULL);";
    //stmt = conn.createStatement(sql);
    try{
    ps = conn.prepareStatement(sql);
    ps.setString(1, stud_id);
    ps.setString(2, term_code);
    catch(fr:SQLException)
    fr.printStackTrace();
    try{
    //ps.executeUpdate();
    System.out.print('Student ID: ');
    System.out.println(stud_id);
    System.out.print('Term Code: ');
    System.out.println(term_code);
    System.out.println(sql);
    ps.executeQuery(); // error occurs here
    The output and exception thats thrown is below
    //debug output
    Student ID: GXXXXXXXX
    Term Code: 201020
    //sql statement thats in string
    select sfrracl_pidm,
    sfrracl_term_code,
    sfrracl_source_cde,
    sfrracl_reg_access_id
    from SFRRACL
    where sfrracl_term_code=?
    and sfrracl_pidm =
    (select spriden_pidm from spriden
    where spriden_id=?
    and spriden_id like 'G%'
    and spriden_change_ind is NULL);
    // end debug output
    java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
    at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
    at sfrracl.Main.invoke$(Main.fx:117)
    at sfrracl.Main.invoke$(Main.fx:117)
    at com.sun.javafx.functions.Function1.invoke(Function1.java:44)
    at com.sun.javafx.functions.Function1.invoke$(Function1.java:38)
    at javafx.scene.Node.impl_processMouseEvent(Node.fx:2917)
    at javafx.scene.Node.preprocessMouseEvent(Node.fx:2946)
    at javafx.scene.Scene$MouseHandler.process(Scene.fx:1499)
    at javafx.scene.Scene$MouseHandler.process(Scene.fx:1361)
    at javafx.scene.Scene.impl_processMouseEvent(Scene.fx:679)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.fx:956)
    at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.doMouseEvent(SwingScene.java:446)
    at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.mouseClicked(SwingScene.java:454)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    BUILD FAILED (total time: 31 seconds)
    The invalid character that this is claiming are the ? marks however that would mean my setString
    is not working I am following what the documentation says why is this?

    http://forums.oracle.com/forums/forum.jspa?forumID=99 is the JDBC forum

  • Problems with passing parameters for WEB template in URL in NW2004s

    Servus,
    We have NW2004s, BI 7.0, SP9
    does anybody know where do I make a mistake? There are 9 variables which the user has to fill out.
    Passing the parameters in URL string for a web template like: http://server:50100/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TEMPLATENAME&var_name_1=ZvarX&var_value_ext_1=2000 ....
    but this doesn't function, I get only the first variable screen and not what's set in my URL.
    Is it a bug? Any suggestions?
    Thank you very much
    Standa

    I solved it.
    Solution:
    URL Link "http://......./TEMPLATE=nameofthepage&TEMPLATE=nameofthepage
    &VARIABLE_VARIANT=nameofthevariant"

  • Problem with opening browser from Java app.

    Hi guys, I'm not sure if this is the right place to post this, so please excuse me if I'm wrong. I'm trying to open an html page (it's a help file) from a Java application. I'm currently using java.awt.Desktop.     browse(URI uri); which gets the job done, as long as I don't pass any parameters to the page. (e.g. http://www.site.com/site.html?param1=1). Doing that gives me an IOException. Is there a way to do this without using the JNLP API?

    This is the file path copied directly from the browser's address bar:
    file:///home/riaan/EMCHelp/Help.html?page=WorkFlowActivityCategory.html"{code}
    Which causes the app to throw an exception, but when I change it to:
    {code}file:///home/riaan/EMCHelp/Help.html{code}
    it opens Help.html in the browser.  That's why I thought that it might be the query that's a problem.  Perhaps it's a simple issue of not escaping a character or something that I failed to see.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HT3500 Problem with Software Downloaded from Mac App Store

    This morning I downloaded some software through the Mac App store for my Epson printer.  Now the printer will not work and I keep getting an error message.  In part, I believe it says printer filter failed.  How do I fix this and get the printer to work again?

    Open System Preferences > Print & Scan > Print
    Select the printer then click -   (minus)
    Now restart your Mac, turn the printer off wait ten seconds then turn it back on.
    Then go back to System Preferences > Print & Scan > Print and click + to reinstall the printer.

Maybe you are looking for