Combobox whose datasource is from an hashmap

Hello
I work on a J2EE/Struts2 project On a jsp, I have a combobox whose datasource is from an hashmap
In the action, I can't find how can I get the selected item (the selected key of the object selected in my combobox) in order to load my object (with Hibernate)
and manipulate my object
Does anyone can help me?
Thanks a lot
Best regards

Hi,
Have a look into the link. It gives you some info regarding data mart from one system to another.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/80/1a6110e07211d2acb80000e829fbfe/frameset.htm
Regards,
Sunil

Similar Messages

  • Datasource migration from 3.5 to 7

    Hi Expert,
    BI 7 was installed in the environment with datasource 3.5 actviated in source system. I am not sure do I need to migrate datasources from 3.5 to 7.0? Can experts please share with me on what are the features available in datasource 7.0? Will datasource 7.0 improve on delta loading? Is migration a must from datasources 3.5 to 7.0?
    Your reply is much appreciated.
    Thanks and regards,
    Kang Ring

    Hi,
    As correctly pointed out, the datasource migration is not required unless you plan to achieve the following:
    1. RDA (Real Time data acquisition)
    2. Direct access to master data.
    3. Remote activation of datasource (meaning from BW itself, you can acitvate DS in ECC)
    However the only checkpoint is that if you are using hierarchies, those have to be loaded with 3.5 datasources as 7.0 does not support hierarchies. It is supported in 7.3
    Also check the link for BI 7.0 new features.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm

  • Value Set whose Data come from customize table with distinct record

    Dear All,
    I am new in Oracle EBS, currently i am creating value set whose data come from customize table which have 40 duplicate record in which distinct column return 27 record .
    Table XX_ROUND_SET
    Columns (Transactions_id,set_record)
    Total Record (40)
    Distinct Record (Set_Record --> 27)
    I just want to show only 27 record in it.
    Thanks
    Rehan

    Hi Rehan,
    PL.IGNORE MY EARLIER UPDATE AND TREAT THIS UPDATE AS YOUR SOLUTION.
    Method 1
    Create the VIEW based on DISTINCT values; use the VIEW for creates the VALUESET.
    Method 2
    Paste the QUERY in TABLE field with alias name, and give the column name (with alias name).
    (in your case )
    TABLE NAME : ( select distinct transactions_id, set_record from XX_ROUND_SET ) Y
    VALUE : Y.transactions_id
    HTH
    Sanjay

  • How to delete datasource registration from the administration tool?

    Hello,
    How could I delete datasource registration from the administration tool?
    Thank you
    Krisztian

    Hi Krisztian,
    You can not delete the datasource from the admin tool, but can do so
    from the iPlanet registry -
    - invoke kregedit
    - Go to Software\iPlanet, Application Server, 6.0, DataSource
    - Select the datasource you want to delete, Choose Edit-Delete from the menu
    to delete the datasource.
    Regards,
    Jitin Sood.
    "Krisztian Maraczi" <[email protected]> wrote in message
    news:9kdhb2$[email protected]..
    Hello,
    How could I delete datasource registration from the administration tool?
    Thank you
    Krisztian

  • NameNotFoundException when looking up datasource jndi from standalone clien

    Hi,
    I'm trying to lookup datasource jndi from standalone client, but always get exceptions.
    I configured an oralce datasource with jndi name "oracleDataSource". When looking it up in servlet, I can get connection.
    In order to test it from standalone client, I created following code:
    public class DataSourceTest
    * Attempt to authenticate the user.
    public static void main(String[] args)
    String datasource = null;
    if (args.length == 1 ) {
    datasource = args[0];
    System.out.println("datasource = "+datasource);
    if(datasource == null)
    datasource = "oracleDataSource";
    try{
    Connection conn = null;
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:3700");
    Context initial = new InitialContext(env);
    if(datasource != null){
    DataSource ds = (DataSource)initial.lookup(datasource);
    conn = ds.getConnection();
    if(conn != null){
    System.out.println("datasource is gotten.");
    conn.close();
    else
    System.out.println("datasource is error.");
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    When running, I get following exception:
    [java] datasource = oracleDataSource
    [java] Caught an unexpected exception!
    [java] javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
    [java] at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
    [java] at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    [java] at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    I also tried many other methods but always got exceptions. What's wrong with it? How can I lookup the datasource jndi from standalone client?
    Thanks in advance!

    Thank Tuan!
    I tried. When running, the server will read security.properties and ejb.properties. But I didn't use ejb and I didn't know how to configure ejb.properties, so I let ejb.properties empty. The security.properties is as following:
    client.sendpassword=true
    server.trustedhosts=*
    interop.ssl.required=false
    interop.authRequired.enabled=false
    interop.nameservice.ssl.required=false
    The result is:
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    Also, I tried it with ACC. In sun sample ConverterClient.java under rmi-iiop/simple, I added following code under with ACC and without ACC. With ACC, I can get connection. But without ACC, I can't get it.
    try{
              DataSource ds = (DataSource)initial.lookup("oracleDataSource");
              Connection conn = ds.getConnection();
              if(conn != null){
              System.out.println("datasource oracleDataSource gotten.");
              conn.close();
              else
              System.out.println("oracleDataSource is error.");
    Does it means that we must lookup datasource jndi with ACC?

  • Fetch the value from a HashMap through EL

    Hi,
    I have this question,
    how can we get a value from a HashMap through EL. is there any way to do that.
    for example i have a hashmap in my bean and i want to place the value of of certain attributes on the page. specific to the key values in the hashmap.

    Just by the key.
    ${bean.map.key}roughly resolves to bean.getMap().get(key).

  • Performance problems with combobox and datasource

    We have a perfomance problem, when we are connecting a datatable object or something like this to a datasource property of a combobox. Below you find the source code. The SQL-Statement reads about 40000 rows and the result (all 40000) should be listed in the combobox. There is duration about 30 second before this process has finished. Any suggestions?
    Dim ds As New DataSet
    strSQL = "Select * from am.city"
    conn = New Oracle.DataAccess.Client.OracleConnection(Configuration.ConfigurationSettings.AppSettings("conORA"))
    comm = New Oracle.DataAccess.Client.OracleCommand(strSQL)
    da = New Oracle.DataAccess.Client.OracleDataAdapter(strSQL, conn)
    conn.Open()
    da.Fill(ds)
    conn.Close()
    Dim dt As New DataTable
    dt = ds.Tables(0)
    ComboBox1.DataSource = dt
    ComboBox1.ValueMember = dv.Table.Columns("id").ColumnName
    ComboBox1.DisplayMember = dv.Table.Columns("city").ColumnName

    But how long does it take to fill the DataTable?
    I can fill a 40000 row datatable in under 4 seconds.
    DataBinding a combo box to that many rows is pretty expensive, and not normally recommended.
    David
    Dim strConnection As String = "Data Source=oracle;User ID=scott;Password=tiger;"
    Dim conn As OracleConnection = New OracleConnection(strConnection)
    conn.Open()
    Dim cmd As New OracleCommand("select * from (select * from all_objects union all select * from all_objects) where rownum <= 40000", conn)
    Dim ds As New DataSet()
    Dim da As New OracleDataAdapter(cmd)
    Dim begin As Date = Now
    da.Fill(ds)
    Console.WriteLine(ds.Tables(0).Rows.Count & " rows loaded in " & Now.Subtract(begin).TotalSeconds & " seconds")
    outputs
    40000 rows loaded in 3.734375 seconds

  • ComboBox - Setting Selected Values from data

    I am running into a problem in Flex 3 that seems to be
    different from Flex 2. Maybe someone can help.
    I have a function for setting a combobox selected item for a
    location for a value when the titlewindow completes loading. The
    value is a prior value from a prior save. In other words to set the
    combobox a value from a prior session.
    The locations xml file is loaded from a remote object
    oncreationcomplete of the titlewindow. The setselectedvalue
    function worked perfectly in Flex 2 but now only works in Flex 2
    after the titlewindow is loaded. We tested this by running the
    setselectedvalue function from a button click after loading.
    The dataprovider length is showing 0 in our debugging. After
    titlewindow up on screen the length is showing correct ( 35 ) - in
    this case. Our viewxmlobject function is showing no xml. Shows xml
    correctly after up on screen.
    I have set the creationpolicy to "all". That did not help
    either.
    Any suggestions? Anyone. This is killing me. Spent two days
    now trying to get back to working state.
    private function SetSelectedValue_cbLocation(): void {
    var xLocID:String = eLocationID.text;
    //viewXmlObject( cbLocation.dataProvider )
    for (var i : int = 0; i < cbLocation.dataProvider.length
    ; i++) {
    //Alert.show( cbLocation.dataProvider
    .locid, 'Location DataProvider', Alert.OK);
    if ( xLocID == cbLocation.dataProvider.locid ){
    cbLocation.selectedIndex = i;
    break;
    The combobox has the dataprovider set at design time.
    <components:is2ComboBox id="cbLocation" x="585" y="4"
    width="196" dataProvider="{xmlLocations.Record}"
    labelField="locname" dataField="locid"
    change="changeLocation(event)" disabledColor="#004080" prompt="1.
    Please select location"></components:is2ComboBox>

    Hard to say without seeing the code. Is the application
    opening a pop-up window (the title window)? If so, where is the
    combo box located? In the main app or the titleWindow? What calls
    the SetSelectedValue_cbLocation() function?

  • Error in setting datasource location from oracle to sql server

    Post Author: jonathanaramburo
    CA Forum: Data Integration
    Hello,
    I have an application that uses a table named "events" which conflicts the sys.events view in master database in sql server. The error i was encountering is that, whenever i tried to set the datasource location of my crystal report from its previous connection oracle to sql server, i get an error saying that some of the fields has not been updated because theres no matching fields to the current connection. It seems that crystal is pointing on sys.events view on master db and not on the events table in myDb database. How can I tell crystal reports to not pick up sys.events and get only myDB.events table.
    Thank you in advance,
    Thanks,
    Jonathan

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Error while tesing a Datasource created from Java function

    Hi ,
    I am trying to create a datasource from java function.After build/deploy i am getting the following error . The java class i am using from the EvalGuide Sample. Anybody had similar issues ?
    regards
    GK
    weblogic.xml.query.exceptions.XQueryStaticException: {lib:TestLayer/xfl/library1}protectSSN:1, line 4, column 1: {err}XQ0017: "{lib:TestLayer/xfl/library1}protectSSN": unknown function (or number of arguments (1) is wrong)
         at com.bea.ld.server.XQuery.createInvocation(XQuery.java:228)
    i am using WLS8.1 sp 6 ,ALDSP 2.5

    I am testing from Test View.
    I tried build-->deploy-->redeploy several times.
    Pls find the complete trace below
    eblogic.xml.query.exceptions.XQueryStaticException: {lib:TestLayer/xfl/library}protectSSN:1, line 4, column 1: {err}XQ0017: "{lib:TestLayer/xfl/library}protectSSN": unknown function (or number of arguments (1) is wrong)
         at com.bea.ld.server.XQuery.createInvocation(XQuery.java:228)
         at com.bea.ld.EJBRequestHandler.invokeQuery(EJBRequestHandler.java:559)
         at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:775)
         at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:339)
         at com.bea.ld.ServerBean.executeFunction(ServerBean.java:95)
         at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:954)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • Problem when extracting DataSource 0PAYSCALELV_ATTR from R/3 ECC6 to BW 3.5

    We have recently begun upgrading to ECC6.0 from 4.7.  We are still using BW 3.5.  After upgrading our Sandbox to ECC6.0, we found a problem when extracting Pay scale level attributes using DataSource 0PAYSCALELV_ATTR.  For some reason the table values are being multiplied by 26 by the extractor, which was not happening in 4.7.  Therefore in our BW system, these employees salaries are being calculated incorrectly because the hourly rate coming from R/3 is already wrong.  Please help!
    Kim Huskey
    Tarrant County IT
    CCC - SAP Support

    Hi Surendhar,
        Did you try to check the connection b/w ypur source system and the target system?
    You can do it by executing T.Code RSA1-> Select Source Systems-> Right click your source system-> Check.
    Also, pls check ST22 for any short dumps and SM21 for system logs.
    Hope it helps!!!!
    Amit
    Message was edited by: Amit

  • Problem in popultating combobox based on input from another combobox

    i have there combo boxes when i select the first combobox ,based on the input given it must populate the second and based on the input in second combo box it must populate the third one.1->2->3.
    Actually i am having a javascript when i select the data in first combo box the information is sent to specified jsp page with parameter using onchange function and the second combo box is poplated based on the first but the third combo box in not populating based on the second.
    here is my code:
    jsp:
    <select name="recrClient" class="selectBox" id="recrClient" onchange="htmlData('BSTSRecuritmentContacts.jsp', 'client='+this.value);">
    javascript
    function stateChanged()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    document.getElementById("contacts").innerHTML= xmlHttp.responseText;
    else
    //alert(xmlHttp.status);
    // Will populate data based on input
    function htmlData(url, qStr)
    if (url.length==0)
    document.getElementById("contacts").innerHTML="";
    return;
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request");
    return;
    if (url=="BSTSRecuritmentContacts.jsp")
    url=url+"?"+qStr;
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
    if i use the same method populating the third combo box, this is not working
    please reply me and thanks in advance

    Hi there,
    What about this:
    Create a multicube with 0PA_C01 and 0PE_C01 and then you create one key figure with the total of employes (that comes from 0PA_C01) and another key figure with the total number of employes that had training (that comes from 0PE_C01) and finally you create a calculated key figure at query level that subtracts the first key figure by the second, i.e., the total number of employees - the employees that had training.
    Diogo.

  • Populating combobox in jsp page from javabean using jsp:getProperty tag

    hi,
    i am new to jsp, so i don;t know how to populate a combobox in jsp page with productid attribute from a javabean called Bid . i want to have a code to automatically populating combobox using the attribute value from javabean.
    please reply me.
    <jsp:useBean id="bidpageid" class="RFPSOFTWARE.Bid" scope="session" />
    <jsp:setProperty name="bidpageid" property="*"/>
      <table  width="50%" align="center" border="0">
       <tr>
        <td  width="30%" align="left"><h4><b><label>Date (dd/mm/yyyy) </label></b></h4> </td>
        <td><input type="text" name="date" size="11" maxlength="10" readonly="readonly" value="<jsp:getProperty name="bidpageid" property="date"/>"  > </td>
      </tr>
      <tr> <td > </td> </tr>
      <tr>
        <td  width="30%" align="left"><h4><b><label>ProductId </label></b></h4> </td>
        <td><select name="productid" tabindex="1" size="1" >
          <option  value="<jsp:getProperty name=bidpageid" />Sachin</option>
          <option value="Hello">Vishal</option>
        </select></td>
      </tr>  and the javabean for Bid is as follow :
    import java.util.Date;
    import RFPSOFTWARE.Product;
    public class Bid{
    private Product product;
    private Integer bid_id;
    private String description;
    private Date date= new Date();
    public Integer getBid_id() {
    return bid_id;
    public Date getDate() {
    return date;
    public String getDescription() {
    return description;
    public Product getProduct() {
    return product;
    public void setBid_id(Integer bid_id) {
    this.bid_id = bid_id;
    public void setDate(Date date) {
    this.date = date;
    public void setDescription(String description) {
    this.description = description;
    public void setProduct(Product product) {
    this.product = product;
    }

    No Sir,
    I think I did not explained clearly.what I try to say is I dont want to use JSTL.I am using only Scriptlets only.I can able to receive the values from the database to the resultset.But I could not populate it in Combobox.
    My code is :
    <tr>
    <td width="22%"><font color="#000000"><strong>Assign To Engineer</strong></font></td>          
    <td width="78%">
         <select NAME="Name" size="1">
    <option><%=Username%></option>
    </select> </td>
    </tr>
    in HTML
    and in Scriptlets:
    ps1 = con.prepareStatement
              ("SELECT Username FROM Users");
              rs2=ps1.executeQuery();
              System.out.println("SECOND Succesfully Executed");
              while(rs2.next())
                   System.out.println("Coming inside rs2.next loop to process");
                   Username=rs2.getString("Username");
                   System.out.println("Success");
                   System.out.println("The value retrieved from UsersTable Username is:"+Username);
    In the server(Jboss console) I can able to display the username but I could not populate it in the Combobox .
    Can you now suggest some changes in my code,Please..
    Thanks a lot
    With kind Regds
    Satheesh

  • COPA Datasource Migration from 3.x to BI 7.0

    Hi Experts,
    I am facing an issue to restore the migrated COPA datasource from 3.5 to BI 7.0.
    I am doing this migration as mentioned below
    1.selected the 3.x datasource and in context menu used migrate
    2.used option "with export"
    3_.No transport request was requested_
    4.successfully migrated.
    I am not getting the option "restore datasource" in the context menu of the migrated datasource.
    I want to use this option if the solution is not working in the new BI 7.0 flow.
    Thank you in advance for your inputs.
    PKC

    Hi Raghavendra
    Thank u for ur earlier response.
    I have tried your proposal. But, could did not succeed.
    My issue Is I am not getting the option "restore datasource" after the migration & transport request is not requested while migration and hence the migrated datasource is locked as local object.
    Thank x
    PKC

  • DataSources transport from development to QA TESTING???

    Hi Gurus,
    I developed some objects in my D system using a generic extractions. I used 3 DataSources .
    Ii transported all my SAP BW object in the testing system. now I need to collect my 3 DataSource  in the R/3 development System to the R/3 system. Please can anyone show me the steps. I tried all day but no result. Please help me, I need the steps.
    Thank You Gurus.

    Hi
    You are using Tbales, so collect Table if it is Z/Y table, if it is SAP table then not required.
    1.Collect Tables and DataSources in request and transport from D ECC to Q ECC.
    2.Replicate DS in Q BW system.
    3.Collect InfoObjects and Transport from D BW to Q BW.
    4.Collect Cube/DSO and Transport from D BW to Q BW.
    5.Collect Multiproviders if you have any and Transport from D BW to Q BW.
    6.Collect Transfer/InfoSource and Transport from D BW to Q BW.
    7.Collect Update Rules and Transport from D BW to Q BW.
    8.Collect Reports and Transport from D BW to Q BW.
    Thanks
    Reddy

Maybe you are looking for

  • How can you get rid of the stripe on the homescreen created in ios 7?

    I found this question some months ago, but no one had a method to resolve it. I wanted to remove the solid stripe across the bottom of my ipad 4 homescreen.  I think it's been called an app park, a shelf, and an applications easy access.  Whatever it

  • Connection to content repository fails with saphttpa

    Hi all, We have configured all the archive link settings including content repository. When displaying the documents through "Links" , then a url is constructed and sent to our server for displaying the document. But archive link uses "SAPHTTPA" as R

  • Reg WBS data fetching

    iam unable to fetch the WBS data for MEXICO orders with the follwing query *.select all date activities found for the WBS   SELECT afvcprojn afvcaufpl afvcaplzl afvuusr00                                                  INTO TABLE gt_sid_hod         

  • Email HTML page

    I want to create the sort of HTML page that automatically shows in an email. I've got Adobe Creative Suite 3. I've searched all the manuals and help sites but drawn a blank so far. It doesn't help that I don't even know what it is officially called.

  • How to display scope plot in Labview GUI?

    I am trying to figure out how to show TDS8000 scope output plot in LV GUI(?) This maybe a two fold question. 1. I suppose it may be necessary to adjust the scope scale with appropriate level so that the plot will show enough details of information. (