How to update one attribute in two inputText ?

Hi all,
I have an entity attribute, VARCHAR2(15). The data is like this : 'INVM000000001'
During data entry, user want to input the data using two inputText, i.e :
DocType : INVM
DocNo : 000000001
Then the data is stored in one database column.
How can I do that ?
Thank you for your help,
xtanto

Xtanto,
similar to what I suggested for the credit card sample. You can bind the textfield values to a managed bean. When you submit the page or step out of the last field, you use an action listener to access the values of the two components and update the binding layer
e.g. (Pseudo code)
DCBindingContainer dcb = (DCBindingContainer ) getBindings();
DCIteratorBinding dciter = (DCIteratorBinding ) dcb.get("myIterator");
dciter.getCurrentRow().setAttr("attname", mTextField1.getValue()+" "+mTextField2.getValue());
There also might be another way using ADF bindings e.g using variable, just need to look at this.
Frank
Ps.: If I find time I will blog an example

Similar Messages

  • Hello, I would like to know how to transfer one of my two "membership" to an other computer because I just bought a new Mac.... ? Or how to cancel it on my old laptop so I can activate it on my new computer. Thanks a lot !

    Hello, I would like to know how to transfer one of my two "membership" to an other computer because I just bought a new Mac.... ? Or how to cancel it on my old laptop so I can activate it on my new computer. Thanks a lot !

    Hi Virginie,
    You need to go under the help menu option and sign out from Muse and then install it on the other computer that you want using the creative cloud desktop app.
    - Abhishek Maurya

  • How to update one row in AdvancedDataGrid

    My App have a AdvancedDataGrid and it has so much rows. Some
    data rows for AdvancedDataGrid has changed and i don't want to
    update all rows ... But i don't know how to update one row for my
    AdvancedDataGrid
    Some body help me ...
    Thanks so muchs !

    thanks ntsii.
    my problem is:
    [Bindable]
    var dp:ArrayColection = new ArrayColection({...});
    <mx:AdvancedDataGrid dataProvider="{dp}">
    <mx:groupedColumns>
    </mx:groupedColumns>
    </mx:AdvancedDataGrid>
    //==================================
    in my dp have more rows and some time one of them is changed
    then i guess the AdvancedDataGrid must build all rows when
    it's dataProvider (dp) have changed.
    And i don't want to that...
    But i am not sure the AdvancedDataGrid buld all rows from
    begin to end ... i don't know.. !

  • How to manage one library with two accounts

    how to manage one library with two accounts

    you can only be logged into one account at a time on the iTunes store. However, you can authorize your computer for both accounts, making your computer work with both. In the menu bar just click [Store > Authorize Computer]

  • How to use ONE IPod on TWO Computers

    I have an Desktop-PC using ITunes 5.0 and an IPod 20 GB. When I connect my IPod with my Laptop, the complete IPod is deleting by the ITunes on the Laptop. How can I use ONE IPod on TWO Computers without deleting the music hole time?!

    I think you need to manually update on at least the computer that has the smaller music selection.
    it may be best to turn off automatic updates on both machines and manually add and delete songs.
    or you could network both computers to share one music library

  • How to update one song only?

    i have about 140 songs in my ipod shuffle, and i usually have new song to add. How to delete one song in ipod memory? i just can clear it (right-click),and the memory doesn't change anything???
    and if i want to add just one or two songs? how can I?i tried and my ipod didn't update ...everytime i want to add new song, i have to restore my ipod,i think it's harmful but i have no idea.
    anyone help me please? i don't want my ipod will die soon...
    window   Windows XP   ipod shuffle 512M

    Hi,
    Check this link http://docs.info.apple.com/article.html?path=iTunesWin/6.0/en/799.html
    If you have any more questions post back.
    Santo

  • How to update when i have two updateable report on single page

    Hi,
    I've two updateable report created using pl/sql procedure. I really don't know how to update both reports at the same time. I report contains only one row and second one contains multiple rows.
    For the second one, i use
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    UPDATE table
    SET col3=HTMLDB_APPLICATION.G_F03(i),
    col4=HTMLDB_APPLICATION.G_F04(i)
    WHERE col1=HTMLDB_APPLICATION.G_F01(i) and
    col2=HTMLDB_APPLICATION.G_F02(i);
    end loop;
    how to update the 1st report. Please help me

    when you use the htmldb_item api to render form elements to your pages, those values end up in the htmldb_application.g_fNN arrays. i'm not sure how you defined your first report region, but you seem to be populating the g_f01 through g_f04 arrays with your second. if that's the case, try populating g_f05 with your first region. a query region like...
    select htmldb_item.text(5,ename) from emp
    ...would do it. you should then be able to access those submitted values in the htmldb_application.g_f05 array.
    hope this helps,
    raj

  • How  to update marketing attributes in sap crm 7.0

    hi sap gurus,
    I want to understand how to update the marketing attributes in sap crm, basically I want the logic to update the marketing attributes in the system. which tables I should verify & then I need to write an abap program  to update/modify the marketing attributes.I know the beginning validations,  the bu_group =zul1-outlet master from but000 table , after that I am stuck up with the logic. I know the field which  I need to update: in table cabnt, atinn field.
    Edited by: packframe2585 on Feb 23, 2012 7:47 AM

    Hi,
    i´m using FM CRM_MKTBP_MAINTAIN_OW. But this is also not very good from a performance point of view.
    Kind regards
    Manfred

  • How to connect one database in two threads?

    Dear All,
    If anyone can tell me how to connect one database concurrently?
    I tried the following idea:
    1.create a Hashtable to keep database objects(those databases have been opened)
    2.Before openning(connecting) a database:first step is to check the hashtable.
    If the the database object is in the hashtable, this object will be returned.
    If the datatbase object is not in the hastable, open the database and store this opened database object into the hashtable.
    I failed the test of this implementation. My test is:Create two threads (extend java Thread class).In each of these two threads, try to open the same database.Just like the following:
    MyThread thread1 = new MyThread();
    MyThread thread2 = new MyThread();
    thread1.start();
    thread2.start();
    I guessed the database object in the hashtable would be returned in the second thread.Unfortunatly, I only got an exception which meant the database couldn't be opened twice.It looks like the second thread happened before the opened database object stored into the hashtable.
    I cannot figure out if my design is wrong or my test application is wrong.
    I really appriatiate your attentions!!!
    Lu

    um not sure i follow exactly but in your code add the word synchronise to it and this means only 1 tread can access it at any 1 time.
    So your could have a class which is a singleton so it only opens the dbase once and then all other access share your connection.
    so
    public class foo{
    foo INSTANCE = new foo();
    private foo(){} //private constructor
    then all your methods use foo's internal dbase connection. Am i making sense

  • How to replace one char with two chars in email address policy?

    I very much like to replace the 'ß' char in the surname with 'sz'. However, applying filter '%rßsz%[email protected]' on 'Preußig' leaves me with '[email protected]'.
    So, how do I replace one char with two chars in email address policy?

    As far as I know, your only solution is to manually create such addresses instead of using e-mail address policy.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • How to divide one catalog into two?

    I have a question that I can not find an answer to and hope I can get the help here.
    Lightroom 5.
    I have one catalog now and would like two.  The reason is I have two things that I shoot.  I do studio work for my clients and also do landscape photography for myself and for sale.  I would like to keep the two catalogs seperated.  One reason for this is when I use the star system to organize my photos then do a search for say 3 stars it brings up my portrait work and landscape work. I have all my files organized on my hard drive and simply want them to stay where they are but would like 2 seperate catalogs to reference.  I can not figure out how to do this.  Is anyone out there able to explain this to me?  Thanks

    davidKheaton wrote:
    So if I understand correctly, if I make a collection of all my portrait work then export as new catalog it will create the new catalog and keep all the keywords, collections etc and leave the files where they are?  Then if I do the same thing to all the landscape images then just delete the original catalog it is all good?
    Well, there are a few assumptions that only you can verify. The major assumption is that all of your photos is in either one or the other category, that there aren't any photos in a 3rd category, and that you can segregate the photos properly. Then all is good ... except ... in my opinion, you are now doing unnecessary work to avoid the benefits of Lightroom
    So if I understand correctly, if I make a collection of all my portrait work ...
    I still recommend you stop right there, make a collection for landscape, make a collection for portrait, and not bother with splitting the catalog; your collections give you a virtual split, which is just as effective as actually splitting the catalog, but its less work, and it eliminates the possibility that you accidentally import a photo into the wrong one of your two future catalogs.

  • 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 update xml attributes as multiple rows

    I am new to this technology, but i need to show the result
    in xml document i have to update these attributes get from Databse utility class.
    <equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">
    <equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">By using XSLT Doucment i have to show this in table format multiple rows of data.
    I'll be happy if anyone tell me the example.

    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
    XSLT approach:  check these online tutorial
    http://www.xml.com/pub/a/2000/08/02/xslt/index.html
    http://www.xml.com/pub/a/2000/06/07/transforming/index.html
    ABAP approach:
    for example you have the xml (original) in a string called say xml_out .
    data: l_xml  type ref to cl_xml_document ,
            node type ref to if_ixml_node  .
    create object l_xml.
    call method l_xml->parse_string
      exporting
        stream = xml_out.
    node = l_xml->find_node(
        name   = 'IDENTITY'
       ROOT   = ROOT
    l_xml->set_attribute(
        name    = 'Name'
        value   = 'Charles'
        node    = node
    (the above example reads the element IDENTITY and sets attribute name/value to the same)
    like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
    so how do I access the XML file in order to update it?
    you have already read this XML into a ABAP variable right?
    Sorry couldnt understand your whole process, why do you need to read local XML file?
    Raja

  • How  to create one delivery for two sales orders?

    Hi Experts,
    I need to create one delivery for two sales orders. But it fails.
    The route, shipping point, ship to party are same for both orders but INCOTERMS are different.
    Delivery date, Good issue date, loading date,material availability date, transportation planning date for 1st order is 12/07/11 and for second order is 14/07/11.
    I have created delivery on 14/07/2011 but the delivery is created for 1st order only, the second order is missing in the delivery.
    It not happened because of incorterms.? different dates
    Kindly help regarding this.
    Thanks
    Raghu

    Hi
    To understand splitting behavior, see SAP Note 546668 - FAQ: Delivery split when creating deliveries. And yes, incoterms happens.
    I think that with the help of question 6 you can try to force the merging of SO. Then, see SAP Note 166397 - Delivery split according to customer field ZUKRL, and handling the field ZUKRL in a VOFM in the copy rule I think that you can try to do it.
    Finally See  Note 4505 - Duprec when adding delivery (VL04, VL01, VL10*) to avoid problems while you are merging.
    Regards
    Eduardo

  • How to update one table based on another table ??

    Hello Friends:
    I am trying to run the following query in oracle but it won't run.
    UPDATE BOYS
    SET
    BOYS.AGE = GIRLS.AGE
    FROM GIRLS
    WHERE
    BOYS.FIRSTNAME = GIRLS.FIRSTNAME AND
    BOYS.LASTNAME = GIRLS.LASTNAME;
    This query runs fine in sql server but in oracle its saying can't find "SET". PLease tell me what is the correct syntax in oracle to update one table based on another table.
    thanks

    See if this helps.
    If you wrote an SQL statement:
    update boys set age = 10;
    Every row in the boys table will get updated with an age of 10. But if you wrote:
    update boys set age = 10
    where firstname = 'Joe';
    Then only the rows where the firstname is Joe would be updated with an age of 10.
    Now replace the 10 in the above statements with (select g.age from girls g where g.firstname = b.firstname and g.lastname = b.lastname) and replace where firstname = 'Joe' in the second statement with where exists (select null from girls g where g.firstname = b.firstname and g.lastname = b.lastname). The same concepts apply whether 10 is an actual value or a query and whether you have a where clause with the update statement to limit rows being updated.
    About the select null question regarding the outer where clause:
    Since the query is checking to see if the row in the girls table exists in the boys table what the column is in this select statement doesn't matter, this column isn't being used anywhere. In this case Todd chose to use null. He could have also used a column name from the table or a lot of times you'll see the literal value 1 used here.

Maybe you are looking for