How to Map one key to multiple values

Hello Everyone
Let's say I have a System. to access this system, one needs a username and a password. Now i have a Hashtable that maps passwords to their usernames. Now what if i want to store the Firstname and lastname of the person, in case he/she forgets the password or username? Is there a way to associate a key (Password) to multiple values(username, password, lastname)? if so, can you show me how to go about it?
Edited by: Tonata on Apr 27, 2009 8:09 AM

M.Murat wrote:
Hello
My suggestion is that you can create a map in which value is a list(for example Arraylist).
You can store the items in that list and match that list to proper key.
M.MuratCode smell: Object Denial+_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to map one element to multiple target nodes? Kindly help!

    Hi Experts,
       I have a source XML:
       <Inventory>
             <MaterialNo>Z001</MaterialNo>
             <InventoryLineItem>
               <BatchNo>B001</BatchNo>
               <Quantity>100</Quantity>
             </InventoryLineItem>
             <InventoryLineItem>
               <BatchNo>B002</BatchNo>
               <Quantity>120</Quantity>
             </InventoryLineItem>
             <InventoryLineItem>
               <BatchNo>B003</BatchNo>
               <Quantity>50</Quantity>
             </InventoryLineItem>
       </Inventory>
    I want the target output as: This is a RFC function module which has an internal table ITAB_STOCK as the input parameter.
       YGET_STOCK
           ITAB_STOCK
             Item
                 MM - Z001
                 Batch - B001
                 Qty - 100
             Item
                 MM - Z001
                 Batch - B002
                 Qty - 120
             Item
                 MM - Z001
                 Batch - B003
                 Qty - 50
       What I am getting is:
            YGET_STOCK
           ITAB_STOCK
             Item
                 MM - Z001
                 Batch - B001
                 Qty - 100
             Item
                 Batch - B002
                 Qty - 120
             Item
                 Batch - B003
                 Qty - 50
          The MaterialNo (MM) is not coming in all the items. What could be the problem in my graphical mapping? How to achieve the expected target uisng graphical mapping?
          Kindly help!
    Thanks
    Gopal

    Hello,
      Just do the below mapping you will get it...
    Map InventoryLineItem to Item in your table.
    Then MaterialNo--->CopyValue---->MM
                                       [0]
    You will get it let me know if not.
    Regards,

  • How to return one ROW with Multiple value seperated by Colon in a SQL Query

    Hi,
    I have a SQL query as mentioned.
    select deptno
      from deptI want to mofidfy this query, so that this should return me department list with colon delimeted in one ROW.
    10:20:30:40.......Thanks,
    Deepak

    In 10g:
    select rtrim(xmlagg(xmlparse(content deptno || ':')).getstringval(), ':') data
    from   dept;
    DATA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    10:20:30:40with apologies for the abuse of XML...

  • How to map one modbus register to another modbus register in labview?

    How to map one modbus register to another modbus register in labview? For example, let 40001 equal to 30001. Thank you.
    Steven

    Hello Steven,
    Sorry, I was under the impression that you were using the complete Lookout development software (as opposed to just the Lookout Protocol Drivers). You cannot do any development (connections, mapping, etc.) with the Lookout Protocol Drivers (LPD). So, you were right. We have to do this in LabVIEW.
    I ain't sure how exactly the Modicon floats work, but assuming what you're saying is correct, in your LabVIEW VI(s) you would read the DataSocket item corresponding to 40yyy+1 first, and then write this value back to the DataSocket item corresponding to 40xxx. Similarly, you would read the DataSocket item corresponding to 40yyy and then write the value read back to the DataSocket item corresponding to 40xxx+1.
    A tip: I wou
    ld at first make sure I have the OPC communication between LabVIEW and LPD working. Make sure you can read and write to the LPD registers via their DataSocket/OPC equivalents in LabVIEW. You can then implement the mapping as described above.
    Hope this helps,
    Khalid

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • One column having multiple values with comma separator.

    Hey Guys,
    In my db, one culmn having multiple values with comma separator. like column_name = 'value1,value2,value3'. Now I want to compare this column to another column and fetch in Cursor.
    and each value having corresponding email_id, By fetching cursor, I need to populate email_ids.
    Thanks in advance!!
    -Lakshman

    Please compare and fetch cursor and populate result with out extract data into temp table. Give me the query!You have not provided DDL for table so I don't know table or column name to write any SQL.
    You have not provided DML for test data to run SQL against.

  • How to use one PSE with multiple URLs?

    I need to hit my DMZ SAP Web Dispatcher with multiple unique URLs.  I am starting off using webdisp1.abc.com and webdisp2.vde.com.  DNS will resolve both the Web Dispatcher Host.  Following Tobias Winterhalter's Blog: Name-based virtual hosts and one SAP Web Dispatcher to access multiple SAP systems.
    My question is how do I go about generating the pse so I can store both webdisp1.abc.com and webdisp2.vde.com?  Do I just import the first request and initiate another certificate request using the same pse?
    Example
    sapgenpse gen_pse -s 2048 -p D:\<file path>\SAPSSLS.pse -r D:\<file path>\webdisp1.req CN=webdisp1.abc.com, OU=IT, O=XYZ Inc., C=US
    Cheers,
    Dan Mead

    Hi Daniel,
    what you are looking for are so called SAN certificates. As Martin said, with sapgenpse you are pretty out of luck. However you can create the certificates using openssl and then use sapgenpse to import them into a pse. There are a number of guides on how to create SAN certificates on the web, like the one mentioned by Martin from CAcert (which is one of the best imho) or this one. And there are also guides on the internet on how to convert OpenSSL keys to PSE.
    You should however keep in mind, that SAN certificates are more expensive than standard certificates. Therefor they only pay if the hostnames in there are stable for the lifetime of the certificate. If the hostnames need to change once a year, you already will be better off (from a cost perspective) by creating one pse per hostname an let the webdispatcher listen to different addresses, as each hostname requires a new certificate signed by the CA.
    Please also make sure, the systems and browsers connecting to your webservers are able to understand SAN certificates. For SAP systems this requires at least pl24 of the sapcryptolib.
    Kind regards,
    Patrick

  • How to allow user to enter multiple values?

    Hi, can someone tell me how I can allow user to select multiple values from a selection screen. To be more clear, I have to display 4 values on the selection screen and want to allow user to select 2 or 3 values from it. It will be very helpful if someone could tell me how to do it.
    Thanks in advance,
    pushpa

    hi mahesh,
    pls c the code below. this is what i have written in my program. when i run this program it is showing only one value and that too only the first one '1234'. i want that it display all the values that i gave in the initialization part.
    please help.
    thanks,
    pushpa
    SELECTION-SCREEN BEGIN OF BLOCK enter_data WITH FRAME TITLE text-001.
    SELECT-OPTIONS skunnr FOR kna1-kunnr.
    SELECTION-SCREEN END OF BLOCK enter_data.
    INITIALIZATION.
    skunnr-low = '1234'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '9824'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '8756'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '6534'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.

  • How to schedule one report for multiple company code?

    How you can schedule reports in BW 3.5? Suppose I need to schedule one report for multiple company code, how can you do that and notify the users? I do not want to send multiple emails to the same user if the report runs for 20 times (for 20 different companies).
    points are given for ASAP replies.
    Thanks in advance
    Peter

    Dear Peter,
    Try to restrict the Company Code with  those 20 values and schedule.
    Regards,
    Ramkumar.

  • JAX-WS mapping one servlet to multiple URLs

    Hi. I have a JAX WS web service define like this:
    package yohoo;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public class Foo
      @WebMethod
      public String doSomething()
        return "done";
    }And I attempted to map the web service multiple time on web.xml:
    <servlet>
      <servlet-name>FooWS</servlet-name>
      <servlet-class>yohoo.Foo</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>FooWS</servlet-name>
      <url-pattern>/one/FooWS</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>FooWS</servlet-name>
      <url-pattern>/two/FooWS</url-pattern>
    </servlet-mapping>However when I tried to request the WSDL via the second mapping I got an exception (JBoss 7). Is this a feature that should be supported or am I doing something totally wrong?
    javax.servlet.ServletException: Cannot obtain destination for: /TestWS/two/FooWS
         org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination(RequestHandlerImpl.java:164)
         org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:81)
         org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
         org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
         org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
         org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:113)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
         org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
         org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    Just to close the loop on this (and for the next person trying to figure out how to do it), I was able to [extend X509KeyManager as described in Alexandre Saudate's blog|http://alesaudate.com/2010/08/09/how-to-dynamically-select-a-certificate-alias-when-invoking-web-services/] . I was then able to set the com.sun.xml.ws.developer.JAXWSProperties.SSL_SOCKET_FACTORY on my JAX-WS request context to use my custom SSLSocketFactory, and it works like a charm!
    Thanks,
    Bill

  • How to use one key recovery-help!

    this is a follow to my querry last time since the machine that i have doesnt have the original OS installed contrary to what is indicated in its COA.
    i went to disk management and found these 5 drives:
    non-letter drive Healthy (OEM Partition) 14.75 GB
    C:  (system, boot,..., primary partition) 97.56 GB
    E: (Primary Partition) 324.35 GB
    LENOVO (D): Logical Drive
    unallocated drive of 101 MB
    what is a logical drive by the way?
    does it mean that i still have the Original OS? how will i use the One Key Recovery?
    Thanks in Advance...God Bless!

    Is there a OneKey Rescue System button on your PC? Did you create backup disks?

  • How to map idoc segments to multiple output structures

    Dear experts,
    On Pi I need to map segments from an Idoc to 2 different outputstructures. My scenario is as follows:
    incoming Idoc on PI -> if segment eq 'X' then map to outputstructure '1'; if segment eq 'Y' then map to outputstructure '2'
    Idoc structure is as follows:
    - 1 header segment
    - 1..n detail segments (which I need to map to outputstructure 1)
    - 1 summarisation segment (which I need to map to outputstructure 2)
    Output needs to be a .txt file.
    I would like to use the graphical message mapping on PI, how can I map the Idoc to multiple output structures?
    Thanks in advance,
    William

    Hi
    You can do 1:n multimapping
    in message mapping in messages tab ..add both the structures in target tab and do the mapping
    and in operation mapping add both the message interface on the target side
    PLease go through this blog
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • How to have one provider with multiple portlets in JDev 11g

    Hi,
    I am trying to create Oracle PDK Portlets using JDeveloper 11g but for each portlet JDeveloper is creating a provider. As In JDeveloper 10.1.3.4 we can have one provider with multiple portlets in it. But JDev 11g creates provider for each portlet. How can we have one provider with multiple portlets in JDev 11g. Is it something changed in 11g version or am I doing it wrong. As the Help says we can have multiple portlets in one provider but when creating portlets it does not do that. Any help is appreciated.
    Thanks

    Hi,
    I am trying to create Oracle PDK Portlets using JDeveloper 11g but for each portlet JDeveloper is creating a provider. As In JDeveloper 10.1.3.4 we can have one provider with multiple portlets in it. But JDev 11g creates provider for each portlet. How can we have one provider with multiple portlets in JDev 11g. Is it something changed in 11g version or am I doing it wrong. As the Help says we can have multiple portlets in one provider but when creating portlets it does not do that. Any help is appreciated.
    Thanks

  • How to update one key recovery on a G580

    Hi guys, Does anybody know how to update the one key recovery to the current setup? If I allow it to make changes, will it update, or revert to the previous recovery point? Any help greatly appreciated, new to Lenovo, still not sure where I'm at with it Cheers Rick
    Solved!
    Go to Solution.

    hi roadrash,
    Welcome to Lenovo Community Forums!
        OneKey recovery Will access the Factory image backup installed hidden on your computer,
    It means that it will revert how you got the system from the store.
    Also
    Windows 8 Disk can be ordered from Lenovo(fees may apply).
    If you want to create an updated  backup
    On a Windows 8 / 8.1 what You could do is a Backup drive using this method.
    Hope this helps
    Cheers!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to map the method action return value directly into screen using variables?

    Hi,
    My JDev version is 11.1.1.6.3.
    I have a 'MethodAction' defined in PageDef file, that goes to model layer and return String value. As this needs to be executed during initializing of pageDef, I have also added an 'InvokeAction' for that.
    <executables>
               <invokeAction id="invokeSayHelloId" Refresh="ifNeeded"
                                    Binds="sayHello"/>
               <variableIterator id="variables">
                    <variable Name="Name" Type="java.lang.String"/>
               </variableIterator>
    </executables>
    <bindings>
              <methodAction id="sayHello" InstanceName="HrAMDataControl.dataProvider"
                                     DataControl="HrAMDataControl" RequiresUpdateModel="true"
                                     Action="invokeMethod" MethodName="sayHello"
                                     IsViewObjectMethod="false"
                                     ReturnName="data.HrAMDataControl.methodResults.sayHello_HrAMDataControl_dataProvider_sayHello_result">
                                        <NamedData NDName="pName" NDValue="Michael John" NDType="java.lang.String"/>
             </methodAction>
    </bindings?
    Requirement:
    I want to map the return value of this method action directly into screen by making use of PageDef variables.
    Question:
    I. I need to know how to map this return value direcly as exprssion against PageDef variable.
    2. If Question 1 is achievable, assuming the method action returls List instead of String (I know well it returns 2 items), can I map the 1st Item against Variable 1 and 2nd Item against Variable 2 directly?
    Thanks in Advance.
    Ragu

    Thanks Frank, but If I directly map the MethodAction's result to UI, there are chances where it might get executed whenever I refresh the UIComponent (UIComponent to which the methodAction result is mapped. Isn't so??). Instead, If I invoke the MethodAction using InvokeAction, I can get the control on when it should get invoked (using RefreshCondition). If I assign the variable to UIComponent (Assume I've mapped the method action result to variable using expression), refreshing of UIComponent will not cause any performance issue I feel.
    Correct me If I am wrong.

Maybe you are looking for

  • Chapter Markers won't show up on Chapter Menu when trying to burn a DVD.

    Help, Trying to burn an SD DVD disc in FCP X from the Share menu.  I've set Orange Chapter Markers with Titles in my project from the timeline and these don't appear when I check the box to use chapter markers for Subtitles in the Destinations box to

  • ERP;-QM- automatic coa generation triggered after ud

    Hi Gyes, I am seraching for automatic generation of Certificate of analysis when the UD is created for inspcetion lot. can any one help me ? i seen from se37 function module list. i am not getting the function module which could trigger once the ud i

  • Embed src issue / Div moving

    Alright, two problems here. My website is at http://www.theepicenter.org/pagetemp.htm. First: I did a check on my code at validator.w3.org. It keeps telling me that there are errors on Line 113 with the <embed> element (this is the "destination finde

  • Re-distribution license

    Hi, Having read the "Oracle Technology Network Development and Distribution License Terms for Instant Client" here: http://www.oracle.com/technetwork/licenses/instant-client-lic-152016.html I realize I can re-distribute the Instant Client, but is it

  • Wifi LAN VERY slow on mac mini 10.6.8

    All, I have a mac mini 1.66 intel core Duo with 2gb of RAM.  The HD crashed a couple months ago and so it has a clean version of 10.6.8 on it.  In my house I have a Motorola modem (comcast) hooked to a vonage box with wifi.  Off this we run 2 MBP's a