Assignment using context parameter

Hi all,
Does anybody know how to set more than one user to a GP Role using context attribute?
I've tried set the attribute with users delimited by comman, semicolon, but it doesn't work.
Best regards

Hi Isaias,
You have to give the user logon Ids separated by comma. And your attribute should be a list in that case.
Regards,
Srinivasan Subbiah

Similar Messages

  • Problem in using context param for storing database connection information

    Hello Friends,
    I am new to struts & jsp.I am developing a project in struts.I have 1 jsp page called editProfile.jsp.On submitting this page it will call 1 action class.The action class in turn will call the Plain old java class where I have written the logic for updating User Profile.
    I have created context-param in web.xml for database connection information like dbURL , dbUserName , dbPassword , jdbcDriver.Now I want to use these connection information in my Business logic(Plain Old Java Class).As we can use context parameter only in jsp & servlets , I am setting the variables of my business logic class with these context param in jsp itself.
    now when I am calling the updateProfile method of Business logic class from Action class it is giving error as all the connection variables which I set in jsp for my business logic class has become null again.
    I am not getting.If once I have set those variables how come they are becoming null again???Please help me.Any Help will be highly appreciated.Thanx in advance.

    This is the code I have written
    web.xml file
    <context-param>
    <param-name>jdbcDriver</param-name>
    <param-value>oracle.jdbc.driver.OracleDriver</param-value>
    </context-param>
    <context-param>
    <param-name>dbUrl</param-name>
    <param-value>jdbc:oracle:thin:@localhost:1521:gd</param-value>
    </context-param>
    <context-param>
    <param-name>dbUserName</param-name>
    <param-value>system</param-value>
    </context-param>
    <context-param>
    <param-name>dbPassword</param-name>
    <param-value>password</param-value>
    </context-param>
    EditProfile.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="EditProfile" scope="application"
    class="com.myapp.struts.EditProfile"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Edit My Profile</title>
    </head>
    <body>
    <form action="submitEditProfileForm.do" focus="txt_FirstName" method="post">
    <%
    EditProfile.setjdbcDriver(application.getInitParameter("jdbcDriver"));
    EditProfile.setdbURL(application.getInitParameter("dbURL"));
    EditProfile.setdbUserName(application.getInitParameter("dbUserName"));
    EditProfile.setdbPassword(application.getInitParameter("dbPassword"));
    -----------more code goes here------------
    EditActionProfile.java
    package com.myapp.struts;
    import javax.servlet.jsp.jstl.core.Config;
    import org.apache.struts.action.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class EditProfileAction extends Action {
    public EditProfileAction()
    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response) throws Exception
    try
    if (isCancelled(request))
    return mapping.findForward("mainpage");
    EditProfileForm epf = (EditProfileForm)form;
    EditProfile ep = new EditProfile();
    String temp = ep.updateProfile(epf.getTxt_FirstName(),epf.getTxt_MiddleName() , epf.getTxt_LastName() , epf.getTxt_Address() , epf.getTxt_Email() );
    if(temp.equals("SUCCESS"))
    return mapping.findForward("success");
    else
    return mapping.findForward("failure");
    catch(SQLException e)
    System.out.println("error" + e.getMessage());
    return mapping.findForward("failure");
    EditProfile.java class (My Business Logic Class)
    package com.myapp.struts;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.sql.*;
    public class EditProfile {
    private String dbURL;
    private String dbUserName , jdbcDriver;
    private String dbPassword;
    private Connection con;
    private Statement stmt;
    public EditProfile()
    public void setdbURL(String s )
    this.dbURL = s;
    public void setdbUserName(String s )
    this.dbUserName = s;
    public void setdbPassword(String s )
    this.dbPassword = s;
    public void setjdbcDriver(String s )
    this.jdbcDriver = s;
    public String updateProfile(String firstname , String middlename , String lastname , String address , String email)
    throws SQLException, ClassNotFoundException , java.lang.InstantiationException , IllegalAccessException
    try
    String s1 = new String("update usr set first_name='" + firstname + "' , middle_name='" + middlename + "' , last_name='" + lastname +"' , address='" + address + "' , email_id='" + email + "' where usr_key=1" );
    con = this.init();
    System.out.println("after init");
    stmt = con.createStatement();
    int rslt = stmt.executeUpdate(s1);
    System.out.println("after excute update");
    stmt.close();
    if(rslt>=1)
    return "SUCCESS";
    else
    return "Failure";
    finally
    if (null != con)
    con.close();
    public Connection init() throws SQLException, ClassNotFoundException
    Class.forName(jdbcDriver);
    con = DriverManager.getConnection(dbURL, dbUserName, dbPassword);
    return con;
    public void close(Connection connection) throws SQLException
    if (!connection.isClosed())
    connection.close();
    }

  • Define a context parameter not using web.xml

    Dears,
    With a web.xml file, it is possible to define a context parameter available in the web app via de ServetContext.getInitParameters method.
    Is it possible to define a context parameter not using the web.xml file ? Can I, in a java Class, init a custom context parameter ? (for exampel, init as a context param a key/value pair read from a property file).
    PS: the need is that the value (hmac key) currently define in the web.xml needs to be updated monthly. Apparently, under WebSphere (the app server we are using) changing the web.xml of the deployed app it not enought for it to be taken into account.
    Sincerely,
    Beno�t Bertrand

    Is it possible to define a context parameter not
    using the web.xml file ? Can I, in a java Class, init
    a custom context parameter ? (for exampel, init as a
    context param a key/value pair read from a property
    file).Does it necessarily have to be a value retrieved through the context param ? AFAIK, there's no way you could programatically 'set' an init param, which going by the name, 'init param' is quite understandable.
    You could define this value in a property file and read it in, in the init method. You should provide a mechanism to reload the new value after 'x' days. One approach is a Timer that does the job, do have a look at SteveJLuke's recommendations on the same in this thread
    http://forum.java.sun.com/thread.jspa?threadID=637355&tstart=0cheers,
    ram.

  • Doubt in locating a file in context parameter

    I have got a file named mylibrary.txt in WEB-INF/data directory.
    I wish to map the file in context Parameter.
    While trying this,
    <context-param>
         <param-name>library-file</param-name>
         <param-value>/WEB-INF/data/my-library.txt</param-value>
    </context-param>     
    I got a null pointerException while reading the file in my servlet. I am using Eclipse.

    The code as follows
    public class ListLibraryServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public ListLibraryServlet() {
              super();
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              response.setContentType("text/html");
              PrintWriter out=response.getWriter();
              ServletContext context=getServletContext();
              List dvd=(List)context.getAttribute("dvdlist");
              out.println("<head><title>ListLibraryServlet</title></head>");
              out.println("<body bgcolor='D2B48C'>");
              out.println("You currently have <b>3</b> DVDs in your collection<br>");
              out.println("<table>");
              out.println("<tr>");
              out.println("<th>Title</th>");
              out.println("<th>Year</th>");
              out.println("<th>Genre</th>");
              out.println("</tr>");
            Iterator it=dvd.iterator();
            while(it.hasNext())
              DVDItem item=(DVDItem)it.next();
              out.println("<tr>");
              out.println("<td>");
            out.println(item.getTitle());
            out.println("</td>");
              out.println("<td>"+item.getYear()+"</td>");
              out.println("<td>"+item.getGenre()+"</td>");
              out.println("</tr>");
              out.println("<tr>");
            out.println("</table>");
            out.println("</body>");
            out.println("</html>");
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
         }                   I am retrieving the file as
    public class InitializeLibrary extends javax.servlet.http.HttpServlet implements javax.servlet.ServletContextListener {
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InitializeLibrary() {
              super();
         public void contextInitialized(ServletContextEvent event)
         {   InputStream is=null;
             BufferedReader reader=null;
              List dvdlist=new ArrayList();
              ServletContext context=event.getServletContext();
              String libraryfile=context.getInitParameter("library-file");
              try
              is=context.getResourceAsStream("libraryfile");
              reader=new BufferedReader(new InputStreamReader(is));
              String record;
              while((record=reader.readLine())!=null)
                 String[] fields=record.split("\\|");
                 String title=fields[0];
                 String year=fields[1];
                 String genre=fields[2];
                 DVDItem item=new DVDItem(title,year,genre);
                 dvdlist.add(item);
              context.setAttribute("dvdlist",dvdlist);
              catch(IOException e)
                   e.printStackTrace();
              catch(Exception e)
                   e.printStackTrace();
         public void contextDestroyed(ServletContextEvent event)
    }

  • Access Context Parameter in Java Bean.

    Hi,
    I want to access the Context parameter set by the web.xml from a java bean or simple java class. For example, If I have database connection details in my web.xml and I want to get these in a Java Bean of a class which will pick up the values and create a Connection object and return to the guy calling it, either JSP or servlet.
    I have a idea of using InitialContext class. But I doubt it works for
    Context parameter defined in the web.xml.
    It worked if I use like this for DataSource object which is created in my application server.
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("OMSDataSource");
    return ds.DatabaseConnection.getConnection();
    So how can I access a parameter like this..
    <context-param>
    <param-name>Webmaster</param-name>
    <param-value>[email protected]</param-value>
    </context-param>
    Cheers.
    L G Goundalkar

    Greetings,
    Hi,
    I want to access the Context parameter set by the web.xml from a java bean or simple java class.The bean doesn't have direct access to the context object so that access must to supplied to it - i.e by calling getServletContext() and passing the resulting reference to the bean.
    For example, If I have database connection details in my web.xml and I want to get these in a Java
    Bean of a class which will pick up the values and create a Connection object and return to the guy
    calling it, either JSP or servlet.Why not write a DAO to handle the JSP or servlet's access needs? The DAO can be initialized at application start with a context listener and the initialized instance placed in the context where the JSP or servlet can get it directly. ;)
    I have a idea of using InitialContext class. But I doubt it works for Context parameter defined in the
    web.xml.Not for context parameters (a different "space" from the JNDI namespace ;). But, of course, it does work for "environment entries" which may also be placed in the web.xml DD (er, presuming your web container supports JNDI, of course).
    Cheers.
    L G GoundalkarRegards,
    Tony "Vee Schade" Cook

  • Passing context parameter as Subject to GP Mail template

    Hi ,
    I am using NW 7.0 SP14. I am using GP mail notifications to send out mails and I am successful sending context parameter values in the  body of mail template. Is there any way I can change the mail subject line dynamically by passing context parameter to the mail template.
    Thanks.
    Madhan

    Hi Madhan
    Unfortunately, using the standard mail templates in GP, it is not possible to add context variables for the mail Subject. These can be only added to the mail content.
    Best regards
    Armando

  • Use exported parameter from message mapping (via UDF) in next mapping prog

    Is there any chance to assign an exported parameter from one message mapping to another mapping program within an operation mapping?

    Hi,
    Try using  dynamic configuration
    1. Set value in message mapping and
    2. Get value in java mapping
    Refer this link http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Regards
    Suraj

  • [svn:fx-trunk] 7071: Providing assignable lvalue context while parsing rvalues in preparation to fix bugs such as SDK-17748 and SDK-18877 .

    Revision: 7071
    Author:   [email protected]
    Date:     2009-05-19 08:17:09 -0700 (Tue, 19 May 2009)
    Log Message:
    Providing assignable lvalue context while parsing rvalues in preparation to fix bugs such as SDK-17748 and SDK-18877. This change makes the compiler aware of a new piece of metadata . When parsing text values, this metadata instructs the TextParser to not look for literal syntax for Arrays, Booleans, Numbers, etc... and instead just treat the content as String. However, it will still honor { } binding syntax and @function syntax.
    Once TLF and Gumbo text components are updated to use this metadata on the appropriate properties we will be able to close the bugs mentioned above.
    QE: Not yet
    Doc: No
    Checkintests: Pass
    Cyclone Tests: Mxunit, Mxunit - compc, Mxunit - rsl, Mxmlcunit, Compiler api all pass.
    Reviewer: Paul
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-17748
        http://bugs.adobe.com/jira/browse/SDK-18877
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ArrayBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/PrimitiveBuilder.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/VectorBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/NodeTypeResolver.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/TextParser.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/ValueNodeHandler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Effect.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Property.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Style.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/TypeTable.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/StatesModel.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    Added Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Assignable.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/DynamicProperty.java

  • Context parameter com.sun.faces.DEFAULT_SUFFIX

    Hi All
    I was wondering about the context parameter com.sun.faces.DEFAULT_SUFFIX. Back when I learned JSF for the first time, together with learning Facelet, we use javax.faces.DEFAULT_SUFFIX context parameter to set to xhtml, as such:
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    Now, I noticed that almost all javax.faces context parameter has been refactored to com.faces.* context parameter, and all have been documented in the wiki here:
    http://wiki.glassfish.java.net/Wiki.jsp?page=JavaServerFacesRI#section-JavaServerFacesRI-WhatContextParametersAreAvailableAndWhatDoTheyDo
    well, all context parameter but DEFAULT_SUFFIX. since all our code in my company uses this. If we omit this context parameter, the code wouldnt work.
    Question:
    1. Why there is no documentation about this context parameter in wiki?
    2 If this context param has been refactored to com.faces.DEFAULT_SUFFIX, why is it when we use com.faces.DEFAULT_SUFFIX, the code would not work, but when we changed back to javax.faces.DEFAULT_SUFFIX it would work.?

    Well, I am using apache tomcat 6.26, below is what I got when starting the app server (I commented out javax.faces.DEFAULT_SUFFIX in web.xml when I started this).
    INFO: JSF1026: [xray] Configuration option 'com.sun.faces.managedBeanFactoryDecoratorClass' not configured
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [xray] Configuration option 'com.sun.faces.STATE_SAVING_METHOD' set to 'server'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    *INFO: JSF1018: [xray] Configuration option 'com.sun.faces.DEFAULT_SUFFIX' set to '.jsp'*
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [xray] Configuration option 'com.sun.faces.CONFIG_FILES' not configured
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [xray] Configuration option 'com.sun.faces.LIFECYCLE_ID' not configured
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [xray] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [xray] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.validateXml' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.disableVersionTracking' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.compressViewState' - ENABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/xray'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/xray'
    Jul 3, 2010 12:31:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Jul 3, 2010 12:31:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Jul 3, 2010 12:31:25 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Jul 3, 2010 12:31:25 PM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jul 3, 2010 12:31:25 PM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    Jul 3, 2010 12:31:25 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1789 ms
    Edited by: niner on Jul 2, 2010 11:07 PM

  • Context parameter

    Hi,
    Currently I am migrating my tomcat application to sun java web server 7.1.
    I am getting annoyed due to failed set context parameter, How to set servlet context paramerer outside web.xml. Currently I use separate xml file or add it in tomcat server.xml like
    <?xml version="1.0" encoding="utf-8"?>
    <Context>
         <!-- #Internal API -->
           <Parameter name="login_uri" value="http://127.0.0.1/cgi-bin/login.fcgi"  override="false"/>
    </Context>This parameter shared by all wars. How do I set this in sun one web server, if is there way to set it via admingui it will me much better.
    Thanks

    you might want to use 7.0 update 4 (http://www.sun.com/webserver) . there is no 7.1 yet .
    you should be able to do this within <https-<hostname>/config/default-web.xml (append it at the end just before the last line..)
    <context>
    </context>
    </web-app>
    finally, if every thing is working out for you, then you need to do the following command so that admin gui is aware of your manual changes
    bin/wadm pull-config user=admin config=<hostname.domainname> <hostname.domainname>

  • How to use lexical parameter in report

    i want to use lexical parameter in report and pass parameter from form how it is possible in detail
    A.R

    Hi,
    typically you fill your lexical paramter in the after-paramform-trigger out of the values of your bind-parameters (giving end users directly control over lexical parameters might not be a good idea). Inside PL/SQL a lexical parameter is referenced like bind parameters with ":". In the query it's referenced via "&" and represents a part of the query.
    A simple example.
    - p_deptno as bind parameter
    - p_where as lexical paramter
    - end user choose value for p_deptno (10,20,... or nothing)
    - Trigger: if :p_deptno is not null then
    :p_where := 'WHERE deptno = :p_deptno'
    else
    :p_where := null;
    end if;
    - Query select ... from emp &p_where
    Regards
    Rainer

  • How to use import parameter to be instead of SQL where sub-sentence ?

    I wrote a RFC to read data from SAP table. To fetch data flexibility, I want to use import parameter xx instead of where sub-sentence in SQL sentence.
       For example, "SELECT * FROM T WHERE XXX",  and "XXX" is a importing parameter.
       How can I use it.
       Thanks a lot.
       Frank.

    FUNCTION ZRFC_04.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(TARGETTABLE) LIKE  MAKT-MAKTX
    *"     VALUE(TWHERE) LIKE  MAKT-MAKTX
    *"  EXPORTING
    *"     VALUE(ZRETURN) LIKE  MAKT-MAKTX
    *"  TABLES
    *"      TMP_TEST1 STRUCTURE  ZTEST1
      DATA:
      TRANSACTION_ID LIKE ARFCTID,
      V_VAILD(1) TYPE C,
      scond(80) TYPE c.
      V_VAILD = 'X'.
    GET PARAMETER twhere fields scond.
    The error " 'LATE FIELDS' expected, not 'TWHERE FIELDS' " generated.

  • Want to use one parameter of first command into second parameter.

    Hi, Experts,
    Please help me out I am stuck in a crystal report. Actually i have written two commands in crystal report.
    first one is as follows:-
    Select * from oinv T0 inner join inv1 T1 on T0.DocEntry = T1.DocEntry Where T0.DocNum = {?Invoice No}
    Second One is as follows:-
    Select * from ibt1_Link Where BaseNum = {?Invoice No}
    What i want is I am passing Parameter in both Command Which took Invoice no as an input, So i don't want to input ttwo parameter both for invoice no. can i use first parameter in my second command or not. If Yes then please tell me.How can i do the same.
    Regards
    Hanes

    Have you tried joining your commands on the basenum = docnum fields? That should filter the second command?

  • How do I get at Session using Context's

    Hi,
    Please can someone help me out. I am working on an extended version of the jboss DatabaseServerLoginModule and part of this involves overidding the login() method. The login() method provides no parameters such as request etc and so I have no way of getting at the session.
    How can I get at the session using Context's?
    i.e. starting with say InitialContext and going from there....
    any ideas?
    Regards,
    Paul.

    Sounds like a JBoss question to me. Seems to me that JBoss support would be the place to go for answers. It's really not a general Java programming question.

  • How to use a parameter field value as a substring in a "like" statement?

    Hi all,
    I'm trying to use a parameter field in a Record selection formula where the parameter field value would be a substring of the data stored in the field.
    My parameter field (SlctResearcher) is constructed as follows:
    Type: string
    List of Values: static
    Value Field: (Reports) RptAuthors
    (in Value Options) Allow custom values?: True
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like "*{?SlctResearcher}*"
    When I hit F5 to generate the data, I get no results (and the parameter prompt field does not even come up...)
    If I modify the formula to put a hard-coded string, like
    "*Jones*"
    after the 'like', I get results (all the reports where "Jones" is a substring in the RptAuthors string.) If I modify the formula to just use the parameter field without the quotes/stars like:
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like {?SlctResearcher}
    I do get the parameter prompt field, but still no results even if I put in a valid substring value (since it is not searching for a substring anymore...)
    How can I do this?
    Thanks,
    Will

    1st thing... Make a copy of your report before doing anything!!!
    To use a SQL Command, you'll want to open the Database Expert and look at the Current Connections. Expand the data source and the 1st option you see is the Add Command option.
    To find the SQL That CR is currently using, choose Database from the menu bar and select Show SQL Query...
    You can copy this and paste it directly into the command window. (If you you can write your own SQL you don't need copy CR's, it's just an option.)
    You'll also want to take not of any parameters that you have, you'll need to add them the the Parameter List of the command as well... be sure to spell them EXACTLY as they are in the design pane.
    Anyway, once the SQL statement is in the Command window you'll be able to alter the WHERE clause to use the wild cards.
    For future reference... What type of database are you reporting against???
    Jason

Maybe you are looking for