How do I update a bean value from an AJAX call?

Hi all,
How do I update a bean value from an AJAX call? I suppose I could write a servlet to do it. However, this seems like a common problem, so I was wondering if there was some built in solution.
Thanks,
Grae
Edited by: caalip2 on Mar 30, 2010 1:07 PM

caalip2 wrote:
Raymond
Basically, I would user the following. The first choice for IE, the second for Firefox.
new ActiveXObject("Microsoft.XMLHTTP");
new XMLHttpRequest();
GraeDon't do this to yourself. If it were that easy there wouldn't be AJAX frameworks for JSF. Find one you like and use it. I've used a4j (part of RichFaces) successfully.

Similar Messages

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How can i update my old ios from 4.2 to 4.3 version for free ?model:iphone3g

    how can i update my old ios from 4.2 to 4.3 version for free ?model:iphone3g

    An iPhone 3G can't be updated past 4.2.1.
    (85804)

  • Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    The_Tonmoy wrote:
    I have no communication with my that friend :/ So it means i need to delete those apps? There's no other solution to update those apps?
    No.  purchases are forever tied to the apple ID used to buy them.  Delete them and buy your own copies.

  • HT4623 How can I update my iphone 4 from iOS 5.1.1 to iOS 6.1.4 only.  I am not looking for iOS 7 right now.  Please suggest the update process?

    Hi Team,
    I have iphone4 16GB with iOS 5.1.1.  While using the phone, few times the phone is automatically going to shutdown and getting call disconnected.  Some times, it happens more frequently in a day, sometimes not. 
    and also, How can I update my iphone 4 from iOS 5.1.1 to iOS 6.1.4 only.  I am not looking for iOS 7 right now.  Please suggest the update process?

    You cannot. You can only upgrade to the currently supported version of the iOS which, at this time is iOS 7.0.2.

  • HT1338 how do i update my macbook pro from 10.5.8 to the latest software? also please let me know what do i have to do to save my files from being deleted when updating? thank you

    how do i update my macbook pro from 10.5.8 to the latest software?

    First you have to purchase Snow Leopard, 10.6, from the Apple on-line store for $20.  Install and on-line software update from the disk version to the last of the line, 10.6.8.
    Then determine if you can go to Mountain Lion, http://www.apple.com/osx/specs and if you can go to the App Store and purchase for $20 the download of 10.8.3.
    If you cannot go to ML, see if you can go to Lion, 10.7.5, do you have an Intel Core 2 Duo, i3, i5, i7 or Xeon processor at least 2 GB ram and 7 GB free hard drive space.  If so you can purchase a download code for Lion from 1-800-MY-APPLE for $20.
    If you can use Mountain Lion, skip the Lion step and go directly to ML.

  • How do I update my iPhone 3G from iOS 1.1 to iOS 4?

    How do I update my iPhone 3G from iOS 1.1 to iOS 4?

    Plug it into a computer running iTunes.

  • HT201210 How do I update my iPhone 3G from iod 4.1 to 4.2

    How do I update my iPhone 3G from ios 4.1 to 4.2 ??
    I've downloaded ios 4.2 and now, Not updated and Restore!!!
    My phone does not work
    plz help me

    How to update iDevice
    Specifically read the section on updating the device via iTunes.

  • How can I update all my music from my itunes library to my ipod touch ?

    How can i update all my music from my itunes library to my ipod touch ?

    Sync them
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • TA48312 How can i update my osx software from my emac from osx 10.3 to the highest available software for an emac?

    How can i update my osx software from my emac from osx 10.3 to the highest available software for an emac?
    I have osx 10.3.x and i want to update to the highest possible. Please help!!!!! i cant find the download. And i dont want to lose any data!!

    Depending upon the specific model you have you can upgrade to either 10.4.x or 10.5.x. Neither are available from Apple any longer, so you will need to look to eBay or Amazon for copies. Be sure to only purchase retail copies and not gray labled machine-specific copies.
    If your eMac came with 10.3 originally and has a clock speed of 1 GHz or higher, then you can install Leopard, 10.5.x.
    If you don't want to lose data then make backups.

  • How can i update the registry values...????

    Dear Sir,
    Can any JGuru tell me how can I update registry key value using my Java program?

    You may try to use Runtime.getRuntime().exec( ...) to execute Window API.

  • HT4623 How can I update my ipad2 software from 4.3.5 to 6.01?

    How can I update my ipad2 software from 4.3.5 to 6.01?

    See the chart below to determine whether you can upgrade your device and what you can upgrade to.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 6.1.x
    iPhone 4S                                    iOS 6.1.x
    iPhone 5                                      iOS 6.1.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 6.1.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 6.1.x
    iPad 3                                          iOS 6.1.x
    iPad 4                                          iOS 6.1.x
    iPad Mini                                     iOS 6.1.x
    =====================================
    Select the method most appropriate for your situation. If you are trying to upgrade to iOS 5 or higher, then you will have to connect your device to your computer and open iTunes in order to upgrade.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • How can I update my ipod version from 1.3 to 2.0 or higher

    How do I update my Ipod version from 1.3 to 2.0 or higher?

    Except for iPod touch (which runs iOS), each iPod model has different software.  The version number doesn't really matter between different iPod models.  The latest version of software for each iPod model is installed by iTunes.
    Connect your iPod.  In iTunes, select the iPod in the sidebar, under DEVICES.  Over to the right, go to the Summary tab.  You should see a button there that says Check for Update.  Click it.  If there is an update available for your iPod model, it will be installed.  If not, you already have the latest version of software for your iPod model.

  • How do you update the schema password from Oracle Enterprise Manager...

    How do you update the schema password from Oracle Enterprise Manager...

    Or do you mean, change the SYSMAN's password?
    If this is the case, I suggest you to refer to this link --> EM HowTo Reset sysman Password
    ~ Madrid

Maybe you are looking for