How to save changed data from a input field to the source structure

Hi,
I have a small problem with the onChange event with HTML input fields.
When changing a value of a input field or by creating a new value for a field the OnChange event is called by moving away the mouse pointer....
get_form_field( 'field_name' ).
But is it possible to write back the new value in the source field ls_screenstructure_field1 without using the OnInputProcessing?
I ask because my application´s structures have a lot of fields that should be filled and changed by input fields.
It´s not comfortable to request every new value with .. = request->get_form_field(... .
Thanks for helping.
Cheers,
André

you wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
<htmlb:inputField id            = "test"
                            alignment     = "LEFT"
                            size          = "6"
                            required      = "TRUE"
                            doValidate    = "TRUE"
                            type          = "INTEGER"
                             />
<bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
  <script for="test" event=onchange type="text/javascript">
alert(this.value);
ValueChanged();
</SCRIPT>
if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
Hope this helps.
do let us know if you need help in how to capture this value in oninputprocessing.
Regards
Raja

Similar Messages

  • How to save a datas from serial port?

    How to save a datas from serial port?

    Hi
    I need some help about rs-232 communication. I want to make a vi witch can do this things:
    -read a txt file (to simulate a serial port like when the datas are coming)
    i will get 3 different data in serial port (like this: 121 213 135)
    i want to save in a txt file what datas get my vi
    so
    -write in a txt file or draw in a diagram (or both)
    so my problem is: read in serial port and save in a file and draw a diagram.
    if anybody can help pls HELP ME because im a beginner in this problem.
    I already do something but Im not sure that good.
    Thx for all.

  • How i can give date in each input for applying the exchange rate in Query.

    Hi Gurus,
    We have a requirement to create some currency conversion queries. In the selection screen user should be able to give four inputs. Like given below
    Input 1.          a)  key figures
                            b) Fiscal Year
                            c) Fiscal Period
                            d) Exchange Rate Type
                            e) Date (Exchange rate will be applied which is applicable on the given date)
      Input 2.         a)  key figures
                            b) Fiscal Year
                            c) Fiscal Period
                            d) Exchange Rate Type
                            e) Date (Exchange rate will be applied which is applicable on the given date)
    Input 3.          a)  key figures
                            b) Fiscal Year
                            c) Fiscal Period
                            d) Exchange Rate Type
                            e) Date (Exchange rate will be applied which is applicable on the given date)
    Input 4.          a)  key figures
                            b) Fiscal Year
                            c) Fiscal Period
                            d) Exchange Rate Type
                            e) Date (Exchange rate will be applied which is applicable on the given date)
    So we will have 4 key figures in the query results with the exchange rate applied on the given date.
    I will make four restricted key figures and make the query. I do not know how i can give date in each input for applying the exchange rate.
    Please give your suggestions to resolve my problem.
    Many thaks in advance.

    You can not bring the key figures in the selection screen for the currency translation. Instead you can apply a currency translation type to respective key figures in the query definition.
    The currency translation type can be defined in RSCUR transaction, where you can maintain the parameters like Exchange Rate Type, Exchange Rate Date etc.
    You can refer one of my article on this at
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600157ec-44e5-2b10-abb0-dc9d06ba6c2f
    Hope this helps.
    Regards,
    Yogesh

  • How can I plott data from a text file in the same way as a media player using the pointer slide to go back and fort in my file?

    I would like to plott data from a text file in the same way as a media player does from a video file. I’m not sure how to create the pointer slide function. The vi could look something like the attached jpg.
    Please, can some one help me?
    Martin
    Attachments:
    Plotting from a text file like a media player example.jpg ‏61 KB

    HI Martin,
    i am not realy sure what you want!?!?
    i think you want to display only a part of the values you read from XYZ
    so what you can do:
    write all the values in an array.
    the size of the array is the max. value of the slide bar
    now you can select a part of the array (e.g. values from 100 to 200) and display this with a graph
    the other option is to use the history function of the graphes
    regards
    timo

  • HOW: To save/refresh data from different forms but in same session

    Hi
    I have 2 screens
    Screen-1
         Tabluar form with 10 rows and each row corresponds to one edit image
    Screen-2
         Forms type form with multiple text items and list items and one OK and cancel button
         If I click on OK button, whatever I enter in screen-2 is updated but till now no commit only EXIT_FORM and the screen is going back to Screen-1
    In Screen-1 I have written trigger When-Wiindow-Activated, which has to refresh the screen-1 values with the changed values from above screen-2
    BUT this is not happening. (I am using SET_BLOCK_PROPERTY... and EXECUTE_QUERY to refresh, by passing the query string)
    Also I have one save button in Screen-2 which should commit whatever I have updated in Screen-2 (once or muyltiple times)
    I am opening the Screen-2 from Screen-1 by using OPEN_FORM built in with form name and ACTIVATE,NO_SESSION and also the parameter.
    Please let me know if I am doing any mistake in calling or some properties need to be set.
    I assume that, as the aplication is in the same session then the newly edited record in screen2 should get reflect in screen-1, and should get saved once I click on save button in screen-1 (FORMS_DDL('COMMIT'))
    regards
    JC

    I assume that Screen 2 is not based on table as it doesn't prompt you "Do you want to save chages" on exit.
    So you probably just updating with update statement.
    You will need to call POST; before exit_form in screen 2.
    Post;
    Exit_Form(NO_COMMIT, NO_ROLLBACK); Also in screen 1, instead of OPEN_FORM and re-query in WHEN-WINDOW-ACTIVATED, I would suggest to use call_form and re-query just after call_form:
       CALL_FORM('xxx',no_hide, no_replace, no_query_only, pl_id);
       SET_BLOCK_PROPERTY ('YOUR_BLOCK' ...
       GO_BLOCK('YOUR_BLOCK');
       EXECUTE_QUERY;

  • How do I move data from old hard drive to the time capsule?

    Hi ,
    I got the Time Capsule a couple days ago and have been backing up my Macbook pro's data. I have an old Lacie 160G external hard drive with data I'd like to put into the time capsule. The only way it can do that now seems like I have to transfer the data from the Lacie to my mac ...then backs it up automatically to the Time Capsule.
    However, my 256G of space on my mac is about to be full !
    The time machine automatically puts my Lacie hard drive as excluded from being backed up and the button - (to remove it) doesn't work when an external hard drive is connected to the Macbook. Right now, my trust in the time capsule is not superb. I've tried intentionally to delete a video file on my Macbook and then see if I could retrieve it . I've had one fail/error and one success. Since one failed I have not dared to delete anything.
    So..the plan is to delete files on my Macbook and then import data from my Lacie to my Macbook...and pray the time capsule will save everything?
    Can anyone with experience tell me how to use the time capsule correctly?
    Thanks in advance!
    Kai

    The TM should be able to include the LaCie if it is formatted HFS+. If it isn't then no .. TM cannot backup.
    On Yosemite the simple fact is TM is working poorly.. we are awaiting a patch or 6 to fix some of the issues.. but it is being extra flakey.
    This is just a very personal opinion but I purchased Carbon Copy Cloner a couple of years ago.. very good purchase.. Easy to use.. reliable.. can backup network drives and disks that are not HFS+ formatted.. plus it can make a bootable clone.. It can backup separately your internal drive and your external drive to different sparsebundles on the TC.. I reckon for $40.. it is well worth it.
    Otherwise you are stuck with the Yosemite / TM bugs.. good luck with those..
    And more so the fact that TM is simply limited in its ability.
    At least create a disk image on the TC and copy manually the files from the external drive into it. You do not need to copy the files to the Mac to do this..
    But I think I would be buying another decent sized external drive.. 160GB drives.. sounds ancient..
    How to use data and backups properly on a TC.
    Q3 here. http://pondini.org/TM/Time_Capsule.html

  • How to "encapsulate" a data from a text field in a JSP form

    Hi. I'm trying to make a user's registration jsp page and I'm not sure how I could get the data from a JSP form from the user and store that into some variable that I could later pass to a query to modify the database. I've been using a JavaBean, but I get null values for all the fields of the jsp page. That's logical, since I cannot find a method that will read the user's input and store that into some variable. In my JavaBean, I have get and set methods that will return a String for each of the form fields such as first name and email. The set method will have in a String as a parameter to set that field value (whichever field it is) to the value of the input parameter, but I don't know if there is a method or a way to read and store the values entered by the user into the jsp form. This is a code snippet of the jsp form:
    <TR><TD>First Name: </TD>
    <TD><INPUT TYPE="TEXT" NAME="fname"
                   VALUE="<%= newUser.getFirstName() %>"></TD></TR>
    Here, the getFirstName() method simply returns the value of a String value related to the user's first name, which is initialized as null in the JavaBean. newUser is the name of the JavaBean that I'm using.
    Any suggestions? Thanks.

    haha...nevermind this question also guys...I found out that I could use the request.getParameter("some_String") method with my JavaBean to read and store data entered by the user in a text field.

  • How do you extract data from ArrayList of Maps and the classical Iterator?

    Hello guys.
    I ran into this great doozie when I was coding this project I am working on. I have created a randomized question pool for a test so that no two tests with the same ID are alike. I grab a resultset from the DB and push the values through a randomizer. After that, then I stick a Map of the entire object into an ArrayList. Each object is then one complete question. So I have X objects (questions) in the ArrayList then (this is determined by a value in the DB in the test table).
    I have the following code setup:
    Map m = (Map)i.next();
              Iterator keys = m.keySet().iterator();
              while (keys.hasNext())
                   key = keys.next();
                   value = (String)m.get(key);
    The key - data pair always comes out in the same order. What I am trying to do is populate a test (form values) for this. Is there a way that I can do this in JSP? The key map is 100% new to me.
    I want to put the test into a table layout. the typical HTML boiler plate stuff is a cinch, but how would I get the information into a textfield? I can print out the key value pairs, but I guess I get lost in the logic when trying to get these to print in a specific order. Any help you can provide would be highly appreciated.
    Kind Regards,
    Josh

    You can use the JSTL c:forEach tag for that.

  • How to add "Prepare Data" from a web service to the form

    Hello,
    Can any one please advise on how to add the "Prepare Data" process from the existing web service and have the form to pre-populate the data from this "Prepare Data" process instead of using schema xsd. I heard that this is an alternative or may be a better way to pre-populate data in ES2/ES3 to avoiding creating a data source in Form Designer. I try to find a sample on Adobe site but could not find one, most of them are using schema.
    Any guidance or URL to the sample would be helpful.
    Thanks,
    HD

    Thanks

  • How do i transfer data from a hard drive to the airport extreme

    2 part question...(#1) I do not have a home based Mac/PC. I would like to know how I transfer all my data from iTunes to the Airport Extreme base? I need to free up space on my Mac book Pro, and I don't want to carry a portable hard drive around with me. (#2) After the data is transferred, will I be able to access it on a Apple TV?

    The airport extreme has no data storage.  Where do you want the data to go?
    Does this help:
    http://support.apple.com/kb/HT2426

  • How To save Unicode data from Struts app.

    I using Struts html:text . I am using wXP . it displays the data in unicode font (in Marathi language ) but When i tring to save it , it did't saved in
    unicode rather its in the unkown format ?
    pls anyone solve my problem . i will be very thankful !

    When you enter unicode characters in html it will automatically converted to the unicode numbers (I don't know what name they use to call such case) eg &1234;
    This is not an unknown format, but that's the unicode number of the character.
    Eventhough stored in that format, you still can display the character properly by using <bean:write> tag, but rememebr to set filter='false'

  • How to search XML data from a HTTPMultiService and display the result on the Spark List

    Hello all,
    I am totally new to Flash Builder and Actionscript and hope someone might be able to help me out. I basically create a mobile app with a single view. The view has a TextInput as a search box and a search button. I conntected a Data/Service using a local XML file and bind the Data to a Spark List. Innitally the List will show nothing until the user enter the search term and hit the button. The List suppose to show the XML data that match the search term.
    Now is my problem. I cannot make the List to show the data that match the search text. The List just shows ALL the data.
    Here are my MXML code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:shopping="services.shopping.*"
            title="Search">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function button1_clickHandler(event:MouseEvent):void
                    navigator.popView();
                protected function list_creationCompleteHandler(event:FlexEvent):void
                    getDataResult.token = shopping.getData();
                protected function seach_clickHandler(event:MouseEvent):void
                    getDataResult.token = shopping.getSearchData(searchTxt.text);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="getDataResult"/>
            <shopping:Shopping id="shopping"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:actionContent>
            <s:Button height="79" label="Back" click="button1_clickHandler(event)"/>
        </s:actionContent>
        <s:List id="list" left="0" right="0" top="111" bottom="0"
                creationComplete="list_creationCompleteHandler(event)" labelField="english">
            <s:AsyncListView list="{getDataResult.lastResult}"/>
        </s:List>
        <s:TextInput id="searchTxt" x="80" y="34" width="250" height="49" enabled="true"
                     prompt="search..."/>
        <s:Button id="search" x="338" y="35" width="72" height="49" label="s"
                  click="seach_clickHandler(event)"/>
    </s:View>
    Here is the _Super_Shopping.as file:
    * This is a generated class and is not intended for modification.  To customize behavior
    * of this service wrapper you may modify the generated sub-class of this class - Shopping.as.
    package services.shopping
    import com.adobe.fiber.core.model_internal;
    import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
    import com.adobe.serializers.xml.XMLSerializationFilter;
    import mx.rpc.AbstractOperation;
    import mx.rpc.AsyncToken;
    import mx.rpc.http.HTTPMultiService;
    import mx.rpc.http.Operation;
    import valueObjects.Shop;
    [ExcludeClass]
    internal class _Super_Shopping extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
        private static var serializer0:XMLSerializationFilter = new XMLSerializationFilter();
        // Constructor
        public function _Super_Shopping()
            // initialize service control
            _serviceControl = new mx.rpc.http.HTTPMultiService();
             var operations:Array = new Array();
             var operation:mx.rpc.http.Operation;
             var argsArray:Array;
             operation = new mx.rpc.http.Operation(null, "getData");
             operation.url = "assets/data/shopping.xml";
             operation.method = "GET";
             operation.serializationFilter = serializer0;
             operation.properties = new Object();
             operation.properties["xPath"] = "/::shop";
             operation.resultElementType = valueObjects.Shop;
             operations.push(operation);
             operation = new mx.rpc.http.Operation(null, "getSearchData");
             operation.url = "assets/data/shopping.xml";
             operation.method = "GET";
             operation.resultFormat = "text";
             argsArray = new Array("item");
             operation.argumentNames = argsArray;
             operation.properties = new Object();
             operation.properties["xPath"] = "/::shop";
             operation.resultElementType = valueObjects.Shop;
             operations.push(operation);
             _serviceControl.operationList = operations;
             preInitializeService();
             model_internal::initialize();
        //init initialization routine here, child class to override
        protected function preInitializeService():void
          * This method is a generated wrapper used to call the 'getData' operation. It returns an mx.rpc.AsyncToken whose
          * result property will be populated with the result of the operation when the server response is received.
          * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
          * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
          * @see mx.rpc.AsyncToken
          * @see mx.rpc.CallResponder
          * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
        public function getData() : mx.rpc.AsyncToken
            var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getData");
            var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
            return _internal_token;
        public function getSearchData(item:String) : mx.rpc.AsyncToken
            var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getSearchData");
            var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(item);
            return _internal_token;
    The getSearchData() supposed to return XML data that match the search text, but it doesn't. Can anyoen help?
    Thank you!

    Hi,
    are you able to change dynamically the  operation.url = "assets/data/shopping.xml";?
    i need to do that based on the users input.
    Thanks in advance,

  • How to refresh changed data in a plannable template with the Enter Key

    Hi,
    The situation I face is as follows.
    Integrated Planning is being implemented as a tool for budgeting. The user changes a value in a plannable cell on the portal and wishes to see the new updated data by pressing ENTER. Currently we have provided a REFRESH button so that the user gets the desired result.
    Is it possible to see the updated value by pressing ' ENTER' and if so , whats the way around to do it.
    thanks in advance.
    Jaya

    Hey guys,
    I'm interested too in this solution. In BPS there is an additional function described in the HowTo Paper HowTo run planning functions on save and other events
    Now I'm looking for this possibility in IP as well in excel-based IP and web-based IP. For example a copy function should be executed automatically when pushing the enter key.
    Thanks a lot!
    Clemens

  • How do I migrate data from my old HDD to the new one I replaced it with?

    I recently upgraded my HDD to a bigger one (160G to 500G). The old HDD still has all of my data which I would like to migrate to the new drive. I purchased a device that a tech at a computer store recommended but when I plug in the old HDD (using this device) to my Macbook pro the HDD doesn't show up in Finder! Can someone explain what's going on and what I need to do to get my data back? Thanks for all your help.

    In the Utilities folder, run Disk Utility with the external disk drive connected and powered up. On the left column of DU's window there should be three devices: the first one would be the name of the new drive you installed and its size, with the volume it has (probably Macintosh HD unless you renamed it) indented below it. Next you should see the device that corresponds to your old drive, now connected via the enclosure the tech sold you; the clue to identifying it is that the name should contain "160 GB" (the size) in it. Below and indented you should see the name your old startup volume had; probably Macintosh HD unless you changed it. And below that you should see SuperDrive, which you can ignore.
    If there is no external device in the list (just your new drive and SuperDrive), that means the Mac can't communicate with the external enclosure; should take it back and have the tech set it up right.
    If there is a second device in the list, corresponding to your old drive, but the indented volum name under it appears grayed out, select it by clicking on the name to highlight it, click on Repair Disk, let the repairs finish and if no errors are found, click on the Mount icon on the upper bar of the window. Your old disk with all your stuff should now be accessible. If it cannot be repaired or it refuses to mount, report back with any and all messages it may show.
    As for moving things over, consider using the Migration Assistant to migrate, as explained here (yours is the third case, Time Machine or other disk migration): http://support.apple.com/kb/HT4889

  • How can you transfer data from an ipod touch to the itunes library without having all your data deleted?

    I have a laptop and the hard drive had to be replaced because it WILL NOT work (This broken hard drive will be refered to as "HD1" from now on). So I had no choice but to have HD1 replaced with a better hard drive (the new one will be refered to as "HD2" from now on). I had HD1 for about 5 years, but what is stuck on HD1 is my itunes library will all of my music, like I said before HD1 will not work so I cannot retrieve any of my itunes data, or any data to be exact. But also, my data that was synced in HD1's itunes library is also on my ipod touch, which is still functional for the time being. HD2 has been installed and working perfectly and I installed itunes on it as well. If I synced my ipod touch to HD2's itunes library, all of my music on the ipod touch will get deleted. What I'm trying to do is have all of my music on my ipod touch transfered to HD2's itunes library without having anything deleted.
    Key things to remember:
    -"HD1" is my broken hard drive
    -"HD2" is my new and awesome hard drive
    -I can't access HD1 at all because it doesn't work
    -I have an ipod touch with all of HD1's music on it
    -HD2 has an empty itunes library on it
    -I need a way to transfer all the data on my ipod touch to HD2's itunes library without having anything deleted
    Is there someone, anyone who can help me out with this?

    I think so when you sign in your itunes library with your apple id which you were using on HD1 the data will be transfered or simply use icloud.

Maybe you are looking for

  • Moving iTunes library to an external drive.

    My startup disk is full so I would like to move my iTunes library to an external drive to fee up space.  What is the best way to do this?

  • RE:Changing name and IP address of an AIX 4.2 Server2.

    Hi Daniel, we had similar problem on HP-Unix OS. The client changed the IP address of the server for some reason. Then we got 'Can not resolve the IP address' error (or something like that). Finally it turned out that the OS references more than one

  • Custom fields on OM to trigger creation of 0001 infotype record

    Hi Everyone, I need to resolve this as soon as possible. I have a requirement as follows:- There is a Custom infotype with 2 fields on a custom tab on Position level in OM. Now, when there is any change to the field contents and the validity dates, t

  • List of the different Oracle SOA exceptions by component

    Hello all, I was wondering if anyone can point me to where I can find the API or list of exceptions for the core Oracle SOA components ( BPEL, ESB, Business Rules, Web Services Manager and BAM). Thank you.

  • New user--how to sync Goggle contact

    I'd like to synch with Google contacts. When I go to Address Book>Preferences>General there is not an option for "Synchronize with Google contacts" even though Help says there should be such an option. How do I sync with Google contacts. Thanks