Mapping DB to GUI

I am looking for an easy way to map DB fields to GUI fields. My plan is to "setName()" my GUI textFields to the same name as my database fields. That gives me an easy way to get the DB field name and value from the GUI; for example....
JTextField.setName("dbField1");
JTextField.setText("hello");
Then I could construct the SQL statement to update the database by getting appropriate db column names and values by using...
GUIField1.getName();
GUIFeild1.getText();
Simple. However, now I need to update the GUI from the database. I can already get column name and value from the resultSet. What is the best way to then update the appropriate GUI field?
For example, column 1 of the result is named "dbField1" and the value is "hello"
How can I get the appropriate GUI component (a TextField) inorder to update it?
I think that I need to do something like... and I am just guessing here.......
getComponentFor("dbField1").setText("hello");
Any suggestions????
thanks

If you're trying to dynamically build a gui (which it sounds like) then use an array of textfields and labels. Then you can loop through all your fields setting the names and text values of the textfields and labels as you see appropriate.

Similar Messages

  • Monitering the Message Mapping

    Hi all,<br>
    I want to see the message payload exactly before the mapping and exactly after mapping (through sap GUI or RWB). <br>
    We are  encrypting on target side so i need to see the target structure before encryption.

    Hi Raghu,
    There  are two ways you can monitor your messages......
    Go to  SXMB_MONI (for BPM go SXMB_MONI_BPE)+ select the message +double click. There above u can see two/three messages...
    Original XML message(thats the request message ) and
    Response message....or acknowledgement message with a ID.....
    Click any message and below  u can see all details like Receiver Identification, Interface determination, inbound message or request message as an XML payload
    <b>Workbench</b>:
    Go to RWB
    Select Message Monitoring
    In Messages from Components - > under Adapter Engine
    Click Start. You will be able to see the message before mapping under payload
    for after mapping
    Go to RWB
    Select Message Monitoring. In Messages  - > Integration Engine
    here u can see all the detalis...
    Regards
    Biplab

  • Maintain Format for Mapping

    Hi CRM Gurus,
    Can anybody tell the transaction code for Maintain format for Mapping in ELM I am working on CRM2007
    Thanks in Advance
    Chandra

    Hi Chandra,
    IN case of SAP CRM 2007, the transaction for Mapping format is 'BSP_CRMD_MKTLIST_map' but it doesnot work on GUI anymore. ATleast in my case i was not able to save the Mapping format on GUI.
    On UI you can successfully create the Mapping Format with Marketing Professional Role. This Mapping Format wil exists in MARKETING TAB.
    Hope this helps in getting the successful configuration.
    VS

  • Map flat to nested structure by creating a collection

    Hi All,
    I've got a problem by mapping a flat to a nested structure.
    The source structure looks like that:
    <b>ISIN</b> = DE00000123450
    <b>WKN</b>  = 012345
    The target structure is build as a collection of identifers:
    <i><b>IDENTIFIER (1..unbounded)</b></i>
    <b>ID</b>    = 01
    <b>TYPE</b>  = Isin
    <b>VALUE</b> = DE00000123450
    <b>ID</b>    = 02
    <b>TYPE</b>  = Wkn
    <b>VALUE</b> = 012345
    Now, it's impossible for me to append a new record to this identifier collection by using the plain mapping functionality without java functions.
    Did anybody face and solve this problem?

    Hi Bhavesh, Marcus,
    I'd like to refine the above problem somewhat ..
    The main problem here is not to map an element name of a source document to an element value of a destination document, but to construct a collection from a list of source element values (Isin->Value, Wkn->Value):
    ("." are just for prettyprinting)
    Source_1:
    <PRICES>
    ....<Price>
    ........<Isin>DE0123456</Isin>
    ........<Wkn>123456</Wkn>
    ........<Currency>USD</Currency>
    ........<Amount>123.45</Amount>
    ....</Price>
    ....<Price>
    ........<Isin>DE0123457</Isin>
    ........<Wkn>123457</Wkn>
    ........<Currency>EUR</Currency>
    ........<Amount>987.65</Amount>
    ....</Price>
    </PRICES>
    Destination_1:
    <PRICES>
    ....<Price>
    ........<IDENTIFIERS>
    ............<Identifier>
    ................<Key>ISIN</Key>
    ................<Value>DE0123456</Value>
    ............</Identifier>
    ............<Identifier>
    ................<Key>WKN</Key>
    ................<Value>123456</Value>
    ............</Identifier>
    ........</IDENTIFIERS>
    ........<Currency>USD</Currency>
    ........<Amount>123.45</Amount>
    ....</Price>
    ....<Price>
    ........<IDENTIFIERS>
    ............<Identifier>
    ................<Key>ISIN</Key>
    ................<Value>DE0123457</Value>
    ............</Identifier>
    ............<Identifier>
    ................<Key>WKN</Key>
    ................<Value>123457</Value>
    ............</Identifier>
    ........</IDENTIFIERS>
    ........<Currency>EUR</Currency>
    ........<Amount>987.65</Amount>
    ....</Price>
    </PRICES>
    So the main question for me seems to be: How to do the transpose of Isin and Wkn to the Value elements:
    Source_2:
    <Price>
    ....<Isin>DE0123456</Isin>
    ....<Wkn>123456</Wkn>
    ....<Currency>USD</Currency>
    ....<Amount>123.45</Amount>
    </Price>
    Destination_2:
    <Price>
    ....<IDENTIFIERS>
    ........<Value>DE0123457</Value>
    ........<Value>123457</Value>
    ....</IDENTIFIERS>
    ....<Currency>EUR</Currency>
    ....<Amount>987.65</Amount>
    </Price>
    Since the length of the source list has very few items (comparable to columns in a database table), they could easily be set as constant Key's in the destination. The problem is: how to map element values of different source elements  (Isin, Wkn) into a collection of destination elements (comparable to rows in a database table). The mapping from Destination_2 to Destination_1 could be done by a SplitByValue.
    I couldn't find a mapping in the GUI which allows to do the latter mapping. More precisely to sort-of reference the destination elements by an index or to simply add more elements to the collection without overwriting the first one.
    A Java Mapping doesn't seem to be appropriate, since it seems, that only 1 result value can be returned (or is it possible to modify the destination DOM/XML with a Java Mapping ? Or to return a list of values ?).
    An XSLT Mapping seems to be possible, but unfortunately it imposes bigger efforts when additionally conversions or value-mappings are needed.
    In the case that XSLT mapping is the only solution to the problem: is it possible, to do a XSLT mapping pipelined with a GUI mapping, such that the structural mapping can be done by XSLT and the conversions / value-mappings can be done via the GUI ?
    Best regards,
    Marc

  • Input validation in an OO-friendly fashion

    Okay, so "input validation" may sound a bit like an issue for the security division of the forum, but I'm concerned with the most OO way to verify the inputs of users. The situation is that I have about five or six different blanks in a GUI (not that it matters) where a user can input something to change the GUI's model. The GUI's model is, itself, an interface and therefore supports pluggability.
    Now, each of the inputs has potentially different "policies" or business rules for what can be entered. For example, one may be a date, etc. You guys know what I mean. Anyway, I know that I could just have some validation method for every field, but this doesn't seem to be very OO-esque.
    I'd like to have some kind of an interface called "StringValidator" or something that would have a method "validate()," but I don't know how this would play out. Maybe I could have a map in my GUI model where the key is the field name and the associated value is an appropriate implementation of StringValidator? I don't know, though. Even though it would be easier to implement five specific methods, one for each field, I'd rather not.
    If I use some kind of StringValidator, maybe I could require a method that returns an array of Strings with all illegal forms, but then again, that's bad form...
    I really just don't know.
    So, in summary, my two questions are as follows:
    1. What is the best way to implement an OO, easily scalable way to validate Strings in my app?
    2. How do I protect against things like SQL statements, HTML scripts, etc.? I know I should (in many cases), but I don't know how to.
    Thanks for any help, and for wading through that description.
    theAmerican
    PS I just remembered something about some Scanner class or something. Maybe that would help?

    It depends quite what you're doing; if you're working with a db then using prepared statements would handle all the escaping for you, but if you allow the users to input raw SQL then you can't realistically stop them from screwing things up.
    Similarly if you're having the users create html somewhere, then the more flexibility there is the harder it is to control. You don't have to worry about scripting if you're just using JLabel to render the html as it doesn't support it; if you're creating a web UI then you may have to.
    Pete

  • How to implement a custom UI control

    I need to display interactive maps on the Windows SAP GUI. The maps
    are dynamically generated and fetched from an external map server using ABAP.
    The interactive map should be scrollable and allow the user to select a single or multiple POIs (Point Of Interest) using the mouse and drag and drop them into
    a table and/or tree. There should be an visual indication on the map
    for selected POIs and a tooltip displaying additional information should
    pop up if the cursor is placed above a POI. I've implemented all this using
    SWT / Java already which was pretty straight forward.
    I looked at the CL_GUI_PICTURE control but it seems that I would need more
    events (such as OnMouseMove, OnLeft/RightButtonDown, OnLeft/RightButtonUp,
    OnDrag) in order to implement this. I think that the CL_GUI_PICTURE has
    just a few events in order to minimize client/server interactions.
    What are my options to implement such an interactive map on SAP GUI?
    I found this blog where a custom control is implemented using ActiveX:
    /people/thomas.jung3/blog/2004/09/01/using-net-windows-controls-in-the-abap-control-framework
    Is this the way to go? Is there an official developers guide for custom
    UI controls from SAP?

    Hi Dominik,
    Sorry but I don't have an answer - I have been trying to solve the same problem for a while now. I even contacted Thomas Jung directly, but was not able to solve the event sink\handler problem. Although I did manage to re-create his example and display a .NET VB Textbox within the SAP GUI...
    If you do manage to get any further - please let me know how you managed to get the event handling to work...
    Tx,
    N

  • Certificate DN doesn't match AD DIT

    I am building a PKI with the plan of becoming cross certified with an external bridge in the future. The required Distinguished Name (DN) for cross-certification is different than the internal AD OU structure and the issue is that I want to publish 2 certificates
    to the users' AD accounts one for Smart Card Logon and the second for Encryption.
    The internal AD DN for the users is as follows:
    CN=John Q. Doe, OU=Users, OU=Company Nickname, DC=Company, DC=Local
    The acceptable formats for the cross-certifying entity are:
    CN=John Q. Doe, OU=Users, O=Company, C=US
    or
    CN=John Q. Doe, OU=Users, DC=Company Name, DC=com
    We are using a third party enrollment system for smart cards (Entrust Identity Guard).  Is there a way to map those certificates to the appropriate user or device. My hope was using the Subject Alternative Name (SAN) "Directory Address" might
    help??
    Any other suggestions?

    Interesting - thanks!
    OK - I hope I understand it correctly noq: So you use the 'compliant' (O=...) DN in the Subject CN but the real AD LDAP DN in the SAN because the latter is needed to allow for publishing the certificate to the right AD objects (as the publishing app. would
    check that attribute when trying to find the corresponding user in AD... it reminds of another non-MS CA doing publication in a similar way...)
    As for name mappings: If you configure a name mapping in the GUI, it (a string) finally goes into a entry in the altSecurityIdentities attribute. See figure 21 in
    this MS white paper, and/or some corrections and comments in
    that article.
    But I think you know that already as this configurations - AFAIK - includes all the mapping options that have been introduced to replace or complement UPN mapping.
    I might miss something here myself as I was pretty sure that the mapping 'on certificate' in AD is always done based on strings (unless you might use some third-party logon add-on client): You can map on Subject Name or Serial Number, or even SKI or hash
    value (according to the article with the corrections) - so I agree that this is basically the same level of security as mapping on binary certificates as those certificates or extensions change with every certificate renewal. But you only need the certificate
    to be present at the time the Name Mapping / alt. sec. ID is created - when a user or a script enters those data as a string in AD.
    There are some attributes you can publish binary certificates to - userCertificate, and the older userSMIMECertificate and userCert - but those are to be used by encryption applications (e.g. Outlook SMIME) and they are not checked when a user logs on to
    AD with a certificate.
    Elke

  • Arabic letters are boxes

    Hi,
    I have this app that loads a ResourceBundle and reads from a properties file for all of the properties that map to the GUI widgets. The GUI widgets' text are extracted from this prop file. I am having a problem with this in that when I try to display these values then some of the Arabic symbols are a box. Now I have the entire unicode chart from www.unicode.org and these are the codes that I am using. I also have jdk1.3.0_02. Could someone please help?
    Thank you,
    Jay.

    Jay-
    I suspect that the font that you are using does not contain all the glyphs for the characters that you are trying to display. You could try and use another font like Bitstream Cyberbit or Arial Unicode MS. However, the issue that you run into with using external fonts not included with the Java Runtime is that now other users of your application need to have the proper font installed on their system to view the text correctly.
    -David

  • Spring HTTP INVOKERs

    hi
    this is vinod
    in my project we are going to use the spring httpinvoker to interact with database daos
    to map the swing gui
    how it is used can u please provide the simple code for that any body
    how the code will be..

    Why is someone else going to write your code for you? Spring is pretty well-documented, between the official docs, the numerous books and the abundance of tutorials on the 'net. These "I've had this great idea, can someone else actually do the work?" questions are getting really irritating.

  • Issue with GUI Mapping

    Hello all,
    <b>My Source is.............</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:PersonsMT xmlns:ns0="http://xyz.com/scratchpad">
       <Persons>
          <Person>
             <Name>Smith</Name>
             <Height>22</Height>
             <Father>
                <Name>Paul</Name>
                <Height>23</Height>
                <Father>
                       <Name>Sr Paul</Name>
                       <Height>23</Height>
                <Father/>
             </Father>
             </Father>
          </Person>
          <Person>
             <Name>Brad</Name>
             <Height>22</Height>
             <Father>
                <Name>Luke</Name>
                <Height>23</Height>
                <Father/>
             </Father>
          </Person>
       </Persons>
    </ns0:PersonsMT>
    And Target Should look like this........
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:PersonsListOutputMT xmlns:ns0="http://xyz.com/scratchpad">
    <Persons>
         <Person>
              <Name>Smith</Name>
              <Height>22</Height>
         </Person>
         <Person>
              <Name>Paul</Name>
              <Height>23</Height>
         </Person>
         <Person>
              <Name>Sr Paul</Name>
              <Height>23</Height>
         </Person>
         <Person>
              <Name>Brad</Name>
              <Height>22</Height>
         </Person>
         <Person>
              <Name>Luke</Name>
              <Height>23</Height>
         </Person>
    </Persons>
    </ns0:PersonsListOutputMT>
    I have to do this only by GUI mapping how to do this.....
    With Regards,
    Satya Sunil

    Hi Sunil
    What I understood from your source structure is that for a person you are maintaining an infinite number of ancisters (father's father) details :
    <Person>
              <Name>Smith</Name>
              <Height>22</Height>
              <Father>
                   <Name>Paul</Name>
                   <Height>23</Height>
                   <Father>
                        <Name>Sr Paul</Name>
                        <Height>23</Height>
                        <Father/>
                   </Father>
              </Father>
         </Person>
    There is <Father> inside <Father>. Is this what you intend to do? If so,Is there a limit to the level <Father>?
    Am I understanding the source structure right ? If yes, please give me sample of source XML template from the message mapping tool.
    Vijendra
    Message was edited by:
            Vijendra Bhanot
    Message was edited by:
            Vijendra Bhanot

  • Accessing Java tables of XI within GUI/Java mapping

    Hi,
    I am looking for a way to access tables of a java dictionary within java/GUI mapping. Specifically, if it is possible some simple API to access  java tables within user-defined functions.
    I know you can access tables via JDBC/RFC lookups. But, this way more applies to external to SAP XI tables. Is there a more simpler way to access java native tables inside SAP XI.
    Thank you in advance,
    Dmitriy Mindich

    Hi Stephan,
    I agree that first case should not be implemented. But, I would like to disagree on the second case. I am not talking about storing application data, but interface-related intformation, such is file generation id or date generation. This information is interface-specific, and unfortunately XI does not provide a way to store persistent variables inside XI.
    There are a couple of options:
    1. Use SEEBURGER's functionality. Unfortunately, I dont have the need to use EDI functionality of SAP, thus I dont want to buy SEEBURGER's license.
    2. Use ABAP Mapping and store it inside tables inside ABAP-stack. However, as I said before this step would be performance intensive for me, since the majority of mapping in my case is done in Java/GUI mapping.
    Based on these cases, I was thinking there should be an easier way to store/retrieve interface related information inside XI tables. And, since most of my mappings are Java-based, I was thinking I can use Java-stack to store persistent variables.
    Would you agree, Stephan?
    Regards,
    Dmitriy Mindich

  • Port mapping converting gui to cli

    Hi,
    I am having an issue with a new office LAN implementation and I was wondering if anyone can help.
    The current setup has a Linksys router and there are port mappings for the servers for a inside and outside port. This has been input via GUI. I am upgrading to a 3845 router and have converted the GUI input to Cisco CLI. This however does not work and the LAN does not behave as it did before.
    The Linksys GUI input is attached.

    Hi @samdilloway,
    A few questions for you:
    Did you check if those servers can go to the internet?
    Is the NAT functioning properly when they go outside?
    Here is a link of a page with the step-by-step process of the port mapping configuration. Make sure you're doing it exactly like that:
    http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=21470
    Also, a link of a TSHOOT page for the same problem:
    http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=22385
    To be sure, the problem that you have is that users from outside cannot access to the services your mapping, right?
    Let me know your answers.
    HTH.
    Don't forget to rate.
    Rgrds,
    Martin, IT Specialist

  • Parameterized mapping GUI to XSLT

    Hi I am using parameterized message mapping in PI 7.1, in which I am passing values to message (graphical mapping). The graphical mapping is receiving those values and storing them to DynamicConfiguration key/value pairs. I have written a UDF for that and the UDF does all the job of setting DynamicConfiguration and returns empty string to the target message root element.
    Then, in operation mapping I am placing the above message mapping first followed by the XSLT mapping step. The XSLT mapping is reading the Dynamic parameters set earlier by the message mapping step and using the same populating the XML tags. The objective of the XSLT mapping is to create SOAP envelope with the above fields (parameters) as custom header fields in the SOAP header.
    I see that the SOAP envelope is created correctly by the XSLT with the SOAP body containing all values. But the SOAP header is not the getting the values from the DynamicConfiguration set by the message mapping.
    Question: Is it possible to pass values like this between message(graphical) mapping to XSLT mapping? Are they stored in memory or is it that the moment the next mapping is called, the DynamicConfiguration values are lost?
    Thanks for your help

    Hi saisach,
    I can tell you the easiest way to achive your requirenment.
    In First Message Mapping.:
    Add a filename field under header node in the receiver structure
    Suppose your receiver structure is:
    <Test>
    <Name>Sai</Name
    </Test>
    Then modify it like below.
    <Test>
    <DummyHeader>
    <FileName>TestFile.txt</FileName>
    </DummyHeader>
    <Name>Sai</Name
    </Test>
    And also map the dynamic confuration value to FileName Field.
    Then in your SOAP envelope creation XSLT  mapping read the Dynamic value from this FileName Field and do what you want.
    Create Third simple XSLT mapping to remove the DummyHeader Field.

  • Target structure generation using GUI mapping

    Hi Experts,
    I have two nodes in source  and one node in target structure .
    Source
    permanentemployee (0..n)
          name
          dept
    contract employee (0..n)
         name
         dept
    Target
    Employee (0..n)
        name
        dept
    If both nodes (permanentemployee  &  contract employee )are present in source then I should get two occurances of target..
    Please watch that I have same subnodes in permanentemployee  &  contract employee .
    Please let me know your thoughts.

    Hi Vamsi,
    Duplicate the target structure.
    then map
    permanentemployee (0..n) node to Employee (0..n) target node and fields should map to the target side fields [like name --> name and dept --> dept]
    and contract employee (0..n) node to Employee (0..n) target node [this is the duplicated node] and map the corresponding fields to tarhet fields. [like name --> name and dept --> dept]
    Regards
    Ramesh
    Edited by: Venkataramesh Boppana on Oct 8, 2009 12:43 AM

  • Internal GUI Error when creating Message Mapping.

    Hi Experts,
    An Unexpected Exception occurs when I try to create a Message Mapping on PI 7.1 EHP1.
    After that the object is not create but is locked, if I try to create again an error message is displayed saying "Object Message Mapping: mm_efgsdjk | http://testexxxx currently being edited by user CONSULTOR".
    Can anyone help-me with this problema ?
    Thanks in advance,
    Regis Ferrato

    Hello,
    To unlock the object, please do the following.
    1. Goto Integration Builder homepage and click on "Administration" link on top right menu.
    2. Goto Repository tab >> Lock Overview.
    3. You can select and delete the required locked object.
    Please not that if you dont have the access to this screen, you need to ask basis to do this or give you the access.
    Regards,
    Vikas

Maybe you are looking for

  • How do I move iPhoto photos to new iPhone?

    I have photos from my 3GS in iPhoto. Can I move some of the photos to my new 4S?

  • Htmldb_item.hidden not working

    I have a report with a sql region. The query is SELECT HTMLDB_ITEM.HIDDEN(1,OWNER.OWNER_ID) OWNER_ID, OWNER.FIRST_NAME||' '||OWNER.LAST_NAME||' ' AS "OWNER NAME", HTF.ANCHOR('F?P=103:9:'||:APP_SESSION,'ADMIT =>') ||VISITOR.VISITOR_NAME AS "AUTHORIZED

  • Customization to Add Approver to Requisition Approver List

    Hi We use a Position Hierarchy to determine the Approver List for a PO Requisition Approval However we also use Project Costing, and would like to dynamically add the Project Managers into the Approver List for Requisition lines coded to their Projec

  • Smart Playlists and the Fifth Generation iPod

    Does anyone know if the issue of Smart Playlists not auto-updating has been addressed in the 5th gen. iPod? For more info. / background, please see: http://docs.info.apple.com/article.html?artnum=301910

  • Use of Pivot

    Hi All, I need to add an additional column to the below list here the [approved] column is a sum of list of columns from the second select stm in the code "SELECT @COL += N', ' + QUOTENAME([RN])" which gives values as col1+col2+col3.... so on I need