Servlet with HTML using JDBC lookup

          Dear Friends
          How are you?
          I am designing a servlet with two drop down lists one on top and the other below.
          I implemented drop down lists using dynamic embedded HTML and SELECT tags.
          I want the user to make a selection in the first drop down list, and the second
          drop down list should display a list based on the selection made in the first
          drop down list.
          Please comment in detail on the most efficient way of achieving this.
          Thanking you
          Very truly yours
          Sriram (Ram) Peddibhotla, PhD
          

For this I'd probably load all the values for both drop down list and use
          javascript.
          Tinou Bao
          www.tinou.com
          "Sriram (Ram) Peddibhotla" <[email protected]> wrote in message
          news:3b181cd0$[email protected]..
          >
          > Dear Friends
          >
          > How are you?
          >
          > I am designing a servlet with two drop down lists one on top and the other
          below.
          > I implemented drop down lists using dynamic embedded HTML and SELECT tags.
          >
          > I want the user to make a selection in the first drop down list, and the
          second
          > drop down list should display a list based on the selection made in the
          first
          > drop down list.
          >
          > Please comment in detail on the most efficient way of achieving this.
          >
          > Thanking you
          > Very truly yours
          > Sriram (Ram) Peddibhotla, PhD
          

Similar Messages

  • How to use JDBC Lookup in PI 7.1 ?

    Hi,
    Please advise how to use JDBC lookup in message mapping PI 7.1 ? any reference link / document  ?
    I have followed this step below :
    1. Create the external definition for the database table.
    2. Use the external definition (table) in message mapping JDBC Lookup.
    But the target still "Yellow colour" meanint the mapping hasnot completed yet ? why ? and when i double click the JDBC lookup
    there some error message
    "No suitable parameter found; define new parameter of type 'Channel' first"
    Please advise.
    Thank You and Best Regards
    Fernand

    Hi Fernand,
    JDBC Lookup can be done in PI 7.1 using below mentioned steps :
    1) Create a communication channel between PI and the database to connect to database.
    2) Import the table data as External Definition.
    3) In message mapping where this lookup is to be used select JDBC Lookup under Conversions and map
    4) Double Click on JDBC Lookup
    5) Select parameter and a database table (imported as the external definition). All the elements of the table will appear in the middle column. Select and move the input parameters to the left side column and the output parameters to the right side column. Click OK. 
    6) Under message mapping go to signature tab and define the parameter as channel and category as JDBC Adapter Type. 
    7) Under Operation mapping define the parameter & associate it with parameter defined in Message Mapping.
    Thanks
    Amit

  • Report on Leave request (with HTML ) using ITS version

    we are using ITS version of ESS and MSS version EP 6.0 and SAP R/3 5.0.
    Our client wants a report on Leave Request(with HTML). the worflow used is WS20000081. my question is there any standard report to check the Leave Request which are approved or rejected. In SAP there is one standard report
    RPTARQDBVIEW where in when we execute no output exists.
    Please help me whether is there any report to view the leave requests.
    Regards
    Santosh Ghanwar

    Dear Claude;
    Thanks for your kind assistance... I was out for sometime & got up in some other urgent tasks...
    Sorry for delay...
    I had created the loop Payroll? with following conditions
    &Employee.ControlRecordState&     =          1     or
    &Employee.ControlRecordState&     =           2     or
    &Employee.ControlRecordState&   =          3     or
    &Employee.ControlRecordDate&     <           %Current Date%         
    but result is always "True"
    Please help me out...
    Best Regards,

  • Set target fileds from source fields using JDBC lookUp

    hello :
    advance thanks for reading below and i am new to java
    how to  to set the two taget fileds T1 and T2 from source field S1 using jdbc look up .Here is the code and its giving syntax error . set T1 to approver1 and T2 to approver2
    I copied the code from blog 2219 
    How to map to two target fileds ??
    Is something wrong with the query ?
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    >>>>>>>>I defined Argument a(i am passing S1)  Result result
    >>>Here is the code :
      //write your code here
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    // Build the Query String
    Query = "Select (approver1,approver2)  from  Emp where loginid = ' " + a[0] + " ' '';
    try{
    //Determine a channel, as created in the Configuration
    channel = LookupService.getChannel("SQL99","jdbc_cc1");
    //Get a system accessor for the channel. As the call is being made to an DB, an //DatabaseAccessor is obtained.
    accessor = LookupService.getDataBaseAccessor(channel);
    //Execute Query and get the values in resultset
    resultSet = accessor.execute(Query);
    for(Iterator rows = resultSet.getRows();rows.hasNext();){
    Map rowMap = (Map)rows.next();
    result.addValue((String)rowMap.get("(approver1"));
    //result.addValue((String)rowMap.get("approver2"));
    catch(Exception ex){
    result.addValue(ex.getMessage())
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e){
    result.addValue(e.getMessage())
    thankyou sdn:

    hi kumar,
    every statment in java should end with a semicolon... and 2 catch statments in the code given in blog(that you mentioned) are with missing semicolons at the end of the statments... just include semicolons at the end of these 2 catch staments and your code should work properly without any syntax error...
    catch(Exception ex){
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e){
    result.addValue(e.getMessage());
    Regards,
    JP

  • Stored Procedure using JDBC lookup.

    Did anyone tried this?
    does the DataBaseAccessor supports this type of call?
    cheers.
    Nimrod.g

    Hi,
    DatabaseAccessor does not support Stored Procedure...
    Have a look:
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/lookup/DataBaseAccessor.html
    It say's: The accessor does not support transactional behaviour. Therefore, the method should not be used to execute insert or update statements on the database which can lead to inconsistencies. The accessor should only be used to read data from a database table.
    Regards

  • Deploying Servlet with HTML file on Tomcat

    Hi ,
    I created a servlet and an html file. The html file accepts user data and passes it to servlet.
    I want to deploy these two files using Tomcat server. Please tell me a sure procedure for deploying both files.
    Regards,
    ap.

    First of all its better to make a jsp rather than one HTML and a servlet but anyhow in order to deploy it first build your project and create a war file which should contain your HTML and servlet and the web.xml.
    Then place this war file inside the webapps folder of tomcat.Start the tomcat and hit your HTML on the browser....

  • Can I work with HTML using my Mac?

    I have a Mac Pro. I'm trying to work on my school website and everything is working, but I am having trouble with the text portion. When I click on "edit content" (to write a message) a new window pops up, but it's completely blank. There is no place to type and there is nothing to select, so I just "x" out of it. The website is Microsoft and it uses HTML text. Is there anyway I can fix this problem, so that I can type and edit content? I've tried everything I know to do and run every update. Any ideas/suggestions are very much appreciated. THANK YOU SO MUCH!!!

    CATIA is only available in windows, so you'll have to install windows though bootcamp

  • How to use a global variable for reading a query resultset in JDBC lookup?

    Hi Friends,
    Using JDBC lookup, I am trying to read from a table Emp1 using a user defined function. In PI 7.0, this function returns values of a single column only even if you fire a " Select * " query. I am planning to use a global variable(array) that stores individual column values of the records returned by a "select *" query. Need pointers on as to how a global variable can be declared and used to acheive the above scenario. Kindly explain with an example. Any help would be appreciated.
    Thanks,
    Amit.

    Hi Amit,
    Sounds like a good idea but then you would need an external db and update the table in a thread safe way !.
    Regarding your question as to how to work with global variable please refer https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1352. [original link is broken] [original link is broken] [original link is broken]
    Rgds
    joel

  • JDBC Lookup  with BPM (no operation mapping)

    HI,
    In my scenario i have to use  JDBC lookup to get the data ,but  here i do not have operation mapping  ( this part i am doing  in BPM).. to select JDBC Look  up communication channel.
    In BPM i am facing  issue to select  lookup  parameters.
    -->In BPM for lookup parameter  its asking  for container element. I have created container element but  that element is not  showing in the container element list to select.
    JDBC look up parameter i have created using  category as adapter and BPM container element as simple.
    Please let me know how to resolve this, ( Is this JDBC lookup limitation!)
    Thanks
    Surya

    Thanks Jenny and Rajendra for your reply.
    Actually my question is wrong, here i am correcting this.
    I have operation mapping ,but that  OM is inside BPM, and i am facing the issue in selecting container element parameter in BPM.
    -->In BPM for lookup parameter its asking for container element. I have created container element but that element is not showing in the container element list to select.
    JDBC look up parameter i have created using category as adapter and BPM container element as simple.
    Thanks
    Surya
    Edited by: SuryaPrakash Reddy on Aug 26, 2011 10:53 PM

  • JDBC Scenario with JDBC Lookup and Updates

    Dear Experts,
    I am working on a JDBC receiver scenario.
    In this scenario, we are also using JDBC lookup to check the maximum EntyNumber which is a primary key. We are manually incrementing this primary key by one and inserting the record into the database.
    Both JDBC lookup and JDBC Insert are two differnt tasks. Thus when we send multiple IDOC's concurrently JDBC lookup fetches old values and when we try to insert the record if gives error of PRIMARY KEY VIOLATION.
    For example, consider the below scenario,
    Assume that there are already 10 records in the database.
    1. Two IDOCs No 1 and 2 sent from SAP system at the same time.
    2. Now, during the mapping of 1st IDOC we did a lookup and found that latest entry number in the database table is 10 and we mapped the entry number to 11 ( 10+1, i.e. next record )
    3. Before updating this record in the database, second IDOC triggered. During JDBC lookup of the sceond IDOC, we got the same entry as the earlier record has yet to be updated.
    4. During JDBC call we get the SQL error that "Primary Key Violation" because both the records have same primary key as "11".
    Kindly share your ideas.
    (SAP system is not sending the IDOC's in any certain order and we need a solution in PI itself. )
    - Shri

    >>> I am actually sending the primary key value to more than one table as a foreign key. I am looking for some solution
    If you are passing primary key value to many tables then jdbc lookup would not be solution. Use stored procedure.
    Refer this link for data type creation for stored procedure
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

  • JDBC Lookup - Import table data from a different schema in same DB

    Hi XI Experts,
    We are facing an issue while importing a Database table into the external definition in PI 7.1.
    The details are as below:
    I have configured user 'A' in PI communication channel to access the database. But the table that I want to access is present in schema "B". Due to this, I am unable to view the table that I have to import in the list available.
    In other words, I am trying to access a table present in a different schema in the same database. Please note that my user has been given all the required permissions to access different schema. Even then, I am unable to access the table in different schema.
    Kindly provide your valuable suggestions as to how I can import table which is present in another schema but in the same Database.
    Regards,
    Subbu

    If you are using PI 7.1, then you can do JDBC Lookup to import JDBC meta data (table structures from DB). Configure a jdbc receiver communication channel where you specify username and password which has permission to access schema A and Schema B of database. Specify database name in the connection string. Then you might have access to import both schema.
    Please refer these links
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    How to use JDBC Lookup in PI 7.1 ?

  • Reg:Error in JDBC Lookup Table

    Hi All,
    My actual requirement is,A project ID is being triggered to PI which will pull the data from the database(SQL Server 2000) ,from different tables and it has to post to file.Receiver side I will be using the File Adapter.
    For this I am using JDBC Lookup table through an User Defined function.
    // code
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet =  null;
    //Build the Query String
      Query =  "Select proj_id, proj_short_name from PROJECT where proj_id = '"proj_id[0]"'";
    try{
    channel = LookupService.getChannel("bs_test" ,"cc_test");
    //Get a system accessor for the channel. As the call is being made //to an DB, an DatabaseAccessor is obtained.
    accessor = LookupService.getDataBaseAccessor(channel);
    //Execute Query and get the values in output
    resultSet = accessor.execute(Query);
    Iterator rows = null;
    rows = resultSet.getRows();
    while(rows.hasNext())
       Map rowMap = (Map)rows.next();
    //  String  proj_id = rowMap.get("proj_id");
    //  String project_name = rowMap.get("proj_short_name");
    result.addValue((String)rowMap.get("proj_id "));
    result.addValue((String)rowMap.get("project_short_name "));
    //result.addValue(proj_id);
    //result.addValue(project_short_name);
    catch(Exception ex)
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e)
    result.addValue(e.getMessage());
       //@@end
    While testing in test tab of Message Mapping,I am getting the value as 'NULL' for the project id  and am not able to see the other field.
    Please suggest me in this.
    Thanks in Advance,
    Lavanya.B

    Hi All,
    My actual requirement is,A project ID is being triggered to PI which will pull the data from the database(SQL Server 2000) ,from different tables and it has to post to file.Receiver side I will be using the File Adapter.
    For this I am using JDBC Lookup table through an User Defined function.
    // code
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    //Build the Query String
    Query = "Select proj_id, proj_short_name from PROJECT where proj_id = '"proj_id[0]"'";
    try{
    channel = LookupService.getChannel("bs_test" ,"cc_test");
    //Get a system accessor for the channel. As the call is being made //to an DB, an DatabaseAccessor is obtained.
    accessor = LookupService.getDataBaseAccessor(channel);
    //Execute Query and get the values in output
    resultSet = accessor.execute(Query);
    Iterator rows = null;
    rows = resultSet.getRows();
    while(rows.hasNext())
    Map rowMap = (Map)rows.next();
    result.addValue((String)rowMap.get("proj_id "));
    result.addValue((String)rowMap.get("project_short_name "));
    catch(Exception ex)
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e)
    result.addValue(e.getMessage());
    //@@end
    While testing in test tab of Message Mapping,I am getting the value as 'NULL' for the project id and am not able to see the other field value.
    Output:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:mt_test_recv xmlns:ns0="http://xxxx">
    <proj_id>null</proj_id>
    <proj_short_name />
    </ns0:mt_test_recv>
    Please suggest me in this.
    Thanks in Advance,
    Lavanya.B
    Edited by: Lavanya Balanandham on Dec 5, 2008 6:51 AM

  • Can Stored procedure with IN and OUT Paramter can be used in JDBC LOOKUP?

    can Stored procedure with IN and OUT Paramter can be used in JDBC LOOKUP?

    Checking online help, I do not see any possibility.
    "Queries a data base by the given SQL statement."
    http://help.sap.com/javadocs/pi/pi711sp03/com/sap/aii/mapping/lookup/DataBaseAccessor.html
    -> execute

  • Error with Mapping Lookup API using JDBC

    All,
    I have an interface that uses a JDBC lookup user defined function.  Occassionally we get the following message:
    <i>Problem when calling an adapter by using communication channel myJDBCLookup (Party: , Service: myJDBCdbase, Object ID: 0cdb888150ee36638cbfb100ff2e7161) XI AF API call failed. Module exception: 'Error ACK handling failed: java.lang.NullPointerException'. Cause Exception: (No information available)</i>
    The only way I can duplicate this error is if I deactivate the myJDBCLookup communication channel and re-run the interface.  In this case I get the same exact error.  I know the commchannels were active when I ran and got the errors.  Typically what I do is just restart the erred message and it runs fine.
    I'm thinking I may be running into a timeout problem on the Oracle end of my call and XI is "timing out" or something like that.
    My questions are:
    1)  whether or not XI has some timeout setting that I could increase that would hopefully mitigate this issue (I'm not an XI admin)?
    2) would using a different Conflict Resolution (JDBC adapter config) or Number of Retries of Database Transaction on SQL error (JDBC Advanced adapter config) setting help?
    3) Is there something altogether different I should be looking at?

    Hi,
    This blog may help u on to optimize the lookup-
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/sap.user72/blog/2005/10/15/jdbc-adapter-execution-mode-chained-or-unchained
    ALso check the Adapter Engine about time out parameters-
    hope this helps,
    Regards,
    moorthy

  • Using JDBC Data Sources with ADFBC, NoInitialContextException

    Using JDBC Data Sources with ADF Business Components, NoInitialContextException
    I follow the instruction in the link below to create an ADF Swing application using datasource. I am using JDeveloper version 10.1.3.
    http://www.oracle.com/technology/products/jdev/howtos/10g/usingdatasources/using_datasources.html
    The ADF generated code looks like this:
    JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
    JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
    mgr.setJClientDefFactory(null);
    BindingContext ctx = new BindingContext();
    ctx.put(DataControlFactory.APP_PARAM_ENV_INFO, new JUEnvInfoProvider());
    ctx.setLocaleContext(new DefLocaleContext(null));
    HashMap map = new HashMap(4);
    map.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT, ctx);
    mgr.loadCpx("datasource.view.DataBindings.cpx" , map);
    final FormMain frame = new FormMain();
    frame.setBindingContext(ctx);
    I got this error when executing the last line: frame.setBindingContext(ctx);
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (datasource.datamodel.AppModuleDS) failed to checkout an application module due to the following exception:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/xe_hrDS
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.DMLException) JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/xe_hrDS
    ----- LEVEL 3: DETAIL 0 -----
    (javax.naming.NoInitialContextException) Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    If I configure the application module connection type as JDBC URL, everything works.
    If the connection type is JDBC Datasource, I got the above error.
    Can someone show me how to adjust the generated code by ADF to use datasource?

    ADF BC has a bug. With Data Source in Application Module, application module does not connect. Use JDBC Connection URL.
    Also refer
    ADF BC: JDBC URL vs JDBC DataSource

Maybe you are looking for