Automatic Event Fire on every entry in Input Field

Dear All,
Here i have a scenerio, I am using barcode reader application. After reading the barcode from barcode machine, , numeric value eg  '1234567890' is automatically displaying in my input field. After that I have to call my RFC according to every entry in that field.
Mean to say as the value comes to the input field , automatically my next view should be called where i am displaying the detail of particular employee having I card of that barcode.
So is there any possibility in Webdynpro Java to fire an event automatically on every entry?
Kindly help me out.
Thanks & Regards
Nivedita

Dear Monalisa,
Thanks for your quick response (SDN was down so i could not reply back). But as i explained earlier, my application is not for mobile barcode reader. Its for normal Id card Barcodes. Mobile Barcode Reader requires 2 types of barcode reader equipments and link given by you is explaining that proccess only.
Here I am able to read the data from barcode Reader. But after reading data i need to generate any automatic event. I dont want to use any submit button or Enter key action. I want that as the value comes to my input field ,automatically it should go to database. webynpro does not support Javascript as per my knowledge.
Kindly suggest something.
Thanks & Regards
Nivedita

Similar Messages

  • Event for value change of an input field

    Hello,
    I'm a newbie in WD4A.
    I've got a input field. Is there a event that's fired, if the value of an input field is changed?
    Regards Christian

    No.  There is only an event when the user presses enter.  You can check the online help for all events of all UI elements.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d7/ef8841e3af1609e10000000a155106/frameset.htm
    In 7.02 there is an AJAX based change event on the inputField, but it is not available as a normal WD Event. It instead triggers the attached SearchHelp without the WD Phase Model.  This is the new SuggestValues feature in 7.02.

  • Parameter passing when EPCM event fire

    Hi.
    I have jsp view with two input field (Cust_No, Sales_Org).
    When submit buttin clicked, I want to create event and  want to pass two  input field.
    So, I user EPCM event, client bag but I don't know how to tranfer two input field into fireEvent() function.
    I attached my jsp file.
    Please complete my code.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <script>
    function fireEvent() {
        EPCM.storeClientData( 'urn:com.sap.training.portal', 'Cust_No', Cust_No);
        EPCM.storeClientData( 'urn:com.sap.training.portal', 'Sales_Org', Sales_Org);
        EPCM.raiseEvent('urn:com.sap.training.portal', 'SalesOrder', '');
    </script> 
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
          <hbj:group id="group" title="Search Sales Order" design="SAPCOLOR" width="210">
            <hbj:groupBody>
              <hbj:gridLayout>
                   <hbj:gridLayoutCell rowIndex="1" columnIndex="1">
                        <hbj:textView id="lCust_No" text="Customer No" />
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell rowIndex="1" columnIndex="2">
                        <hbj:inputField id="Cust_No" type="string" />
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell rowIndex="2" columnIndex="1">
                        <hbj:textView id="lSales_Org" text="Sales Organization" />
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell rowIndex="2" columnIndex="2">
                        <hbj:inputField id="Sales_Org" type="string" />
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell rowIndex="3" columnIndex="2">
                        <hbj:button id="submit" text="Tell" onClientClick="fireEvent();" tooltip="Click me" onClick="onSubmit" design="emphasized" />
                   </hbj:gridLayoutCell>
              </hbj:gridLayout>
            </hbj:groupBody>
          </hbj:group>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Regards, Arnold.

    <hbj:content id="myContext" >
    <hbj:page title="PageTitle">
    <hbj:form id="myFormId">
    <script language="javascript">
    function fireEvent()
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var inputfield = eval(func("Cust_No"));
    if (inputfield.getValue()!="")
    EPCM.storeClientData( 'urn:com.sap.training.portal', 'Cust_No', inputfield.getValue());
    </script>
    <hbj:group id="group" title="Search Sales Order" design="SAPCOLOR" width="210">
    <hbj:groupBody>
    <hbj:gridLayout>
    <hbj:gridLayoutCell rowIndex="1" columnIndex="1">
    <hbj:textView id="lCust_No" text="Customer No" />
    </hbj:gridLayoutCell>
    <hbj:gridLayoutCell rowIndex="1" columnIndex="2">
    <hbj:inputField id="Cust_No" type="string" jsObjectNeeded="true"/>
    <hbj:button id="submit" text="Tell" onClientClick="fireEvent()" tooltip="Click me" onClick="onSubmit" design="emphasized" />
    </hbj:gridLayoutCell>
    Hope it gives you some idea..
    Regards,
    P.

  • How to do validation of input fields

    Hi all,
              I have a rquirement to do the validation of input fields.Can anybody explain me how to go for that???Please explain in detail.U can also give me a link where i can find the tutorial for doing this.

    Hi Amit,
    What everyone has said above is correct - in the method of your action simply test for whatever condition you need to validate for.  However, the following tutorial shows you how to use Web Dynpro's Message Manager to display the messages on the screen in an easy user-friendly way:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf">Enabling Message and Error Support</a>
    In addition, there are some validations that are done automatically depending on what you have your input fields set to - for instance, if you bind your input field to a date and a user enters words into the field instead of an actual date, it will automatically display an error message.  To learn how to turn this feature on and off, see this tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/edf6ea90-0201-0010-7696-a68662381c12">Using Validating and Non-Validating Actions</a>

  • Input field - entry is not in the list of values

    Hi
    I have a very strange thing going on in my aPP.
    I use an input field to which I attach an on Enter event.
    When user presses 'Enter', a pop up window appears with the list of countries.
    Selecting a country automatically puts this country into the input field. So far so good.
    The problem, however, I  am experiencing is in a situation where the user  enters a valid value into the input field
    without pressing 'Enter' and then continues pressing other buttons in the app. What happens is that the web dynpro framework immediately throws an exception saying the value is not in the set of accepted values.
    I do not understand why the system throws such an exception if no set of values has yet been attached to the input field (by ImodifiableValueSet for example).
    Any idea?
    Thank you
    yuval peery

    Hi
    1. In comp controller  in wdDoInit I get the list of countries and write them to a local node.
    2. This node is mapped to a view in a different window.
    3. When I press enter,  a pop up window is created. The values mapped from the comp controller to this view are presented to
        the user in a nice table.
    4. When the user selects a line  in the table, the method writes back the value to my input field.
        Quite straight forward.
    The problem is  that when the user enters a valid name into the input field before even pressing "Enter" the framework
    returns "entry is not in the set of values".
    Frustrating.
    regards
    yuval

  • Automatically fill input fields based on selection from dynamic drop down

    Hi All,
    I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword).
    My scenario:
    1. In my offline interactive form, I have:
        a.  Material Number --> drop down field with "Allow Custom Text Entry" ticked
        b.  1 execution button to call web service
        c.  Material Group - Input Field (Read Only)
    2. User will enter material number with wild card character (eg: ABC*).
        User will then click the execution button.
        Web Service in result will return all materials that match the entered material number.
        Dynamic binding will do the magic to generate the drop down list.
    3. Beside material number, web service will also return material description and material group.
        Below is the illustration:
         Material        Description       Material Group
         ABC              Material ABC               GRP01
         ABCDE        Material ABCDE          GRP02
    --- so far so good ---
    My requirement:
    Every time user select material from the drop down list, i want to auto-populate field "Material Group" (which value is also returned by web service).
    I know i need to put the script on event change of the drop down field.
    But i don't know how to read internal table returned by web service.
    Hope someone can enlighten me.
    Thanks in Advance !!!

    Solved after reading:
    1. /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
    2. Chapter 7 of Live Cycle Designer Scripting Basics
    (http://help.adobe.com/en_US/livecycle/9.0/LiveCycle_Designer_Scripting_Basics.pdf)
    Thanks.

  • Define a reminder for every entry in a calender

    Hi!
    I have just downloaded a calender from a website (my university courses). All those entries are "single" ones, so no repetition of events. Unfortunately, none of those events has a reminder defined.
    Does anyone of you know how I can define an automatic reminder that will be used with every entry in the calender? Then I would not have to define it for every single entry.
    That would be a big help! Thanks in advance...
    Yours,
    Matthias

    Found a way to fix it.

  • System Log Event ID 4321 every 30 seconds, system name conflict for a name not in use

    -- Symptom --
    System event log shows an error with event ID 4321 every 30 seconds:
    The name "pac-1          :2d" could not be registered on the interface with IP address 172.20.51.206. The computer with the IP address 172.20.21.2 did not allow the name to be claimed by this computer.
    -- Environment --
    OS:  Windows 7 x64 Enterprise
    Network:  Enterprise domain
    DHCP:  Yes
    WINS:  via DHCP
    -- Additional information --
    This computer was set up from an image.  The image was built with the system being named 'pac-1'.  This system's name was changed to 'pac-11' before (or possibly shortly after) joining the domain and now has a completely different name, and there
    is no system on the network with the name 'pac-1' (there are 'pac-3', and other numbers, but no 'pac-1')
    I have renamed the system with no change to the frequency of the error, and I cannot find 'pac-1' in the registry anywhere except for strings located in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LANDesk\Inventory\LogonHistory\Logons that list prior logons.
    I've done my google research and have found great information for plenty of other people's situations, just not this one.  Any helpful advice is welcome.
    Thank you!

    c0lorless wrote:
    -- Symptom --
    System event log shows an error with event ID 4321 every 30 seconds:
    The name "pac-1          :2d" could not be registered on the
    interface with IP address 172.20.51.206. The computer with the IP
    address 172.20.21.2 did not allow the name to be claimed by this
    computer.
    -- Environment -- OS:  Windows 7 x64 Enterprise
    Network:  Enterprise domain
    DHCP:  Yes
    WINS:  via DHCP
    -- Additional information -- This computer was set up from an image.  The image was built with the
    system being named 'pac-1'.  This system's name was changed to
    'pac-11' before (or possibly shortly after) joining the domain and
    now has a completely different name, and there is no system on the
    network with the name 'pac-1' (there are 'pac-3', and other numbers,
    but no 'pac-1')
    I have renamed the system with no change to the frequency of the
    error, and I cannot find 'pac-1' in the registry anywhere except for
    strings located in
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LANDesk\Inventory\LogonHistory
    \Logons that list prior logons.
    I've done my google research and have found great information for
    plenty of other people's situations, just not this one.  Any helpful
    advice is welcome.
    Thank you!
    I'd check my WINS server's registration entries, if they contain an
    entry with that NETBIOS name. If the machine with the ip-address
    172.20.21.2 is not your WINS server you need to check, what services
    etc. are running on that machine. Also look if the domain/workgroup
    name, which is used by this machine is correct and identical to all
    other machines.
    Wolfgang

  • I added a calendar event to repeat every two weeks, but it repeats every day.

    I've added a calendar event to repeat every two weeks, but it repeats every day.  The original event was set up for all Day on Wednesday, Nov 5.  Setting up for a single  day worked fine.  Add the repeat option and select every two weeks...and it shows up every day until the end date.  I've re-booted the phone and tried other start dates.  Same result.  This is in the base iPhone calendar.  No other calendars have been installed.   iPhone 6  iOS 8.0.2.  Any suggestions?

    Found a workaround:
    Just change each attribute 1 item at a time.
    Create the calendar entry for one day only with no other settings.
    Go back in and edit it so that its every two weeks, then leave and confirm this worked.
    Open calendar back up and add in the end date.
    That's the only way I could get it to accept those settings, one attribute at a time.
    Misc. bug I suppose.  I miss the "It just works" days.  Living in silicon valley, the QA engineering buds I have at apple go on rants about the undisclosed/undiscovered but known bugs in ios every time we're having drinks.  From what I hear, internally IOS8/8.1 weren't ready for prime time push just yet.

  • How do you make the date change for every entry when inserting.

    Hello, I am making a daily vehicle inspection report for my truck and I would like to make a 7 day calendar but I would like to insert the date ie Monday Feb 22, 2010, Tuesday Feb 23, 2010 etc...and have it change for each day of the week. is there a way to do this? Also can you put an outline or a box around the 6 lines of text that you input.
    Thank you
    Ottoman

    Jerrold Green1 wrote:
    Ottoman,
    As Peter says, you can use a Table for this. You do not, however, need to enter two dates to fill with a series of dates. Dates are an exception to the general Fill rule. Just enter one, and fill down to get successive dates.
    Other exception available:
    a single cell is sufficient for every entries ending with a number :
    president1
    thief2
    king3
    behave this way.
    Durations behave like numbers : two cells are required.
    Yvan KOENIG (VALLAURIS, France) samedi 27 février 2010 18:20:29

  • Webdynpro Development: On change of input field Event

    hi,
    Is there any event in Web Dynpro(Java), that chaught the event of change in an input field? ie, if I change the value of a perticular field, it will caught that event and populate another field accordingly.
    Thanks,
    Angshuman

    HI
    Use OnEnter property of the Input Field. Write the Event name you wanted to occur.
    As the user will enter into the field & press enter, the particular field, you wish to, will be filled automatically.
    Regards
    Chander Kararia

  • Input Field in table - I need a OnClick Event

    Hello everybody,
    I have the following problem:
    I have created a table in my view which is filled at runtime. The table has 3 different rows and every row has TableSingleMarkableCells, these cells further have a input field as their celleditor.
    I now want to know which cell the user is editing. I have a AttributePointer through which I know that at the time the user presses the enter key. But I need to know whether the focus has changed. Because there is the possibility that the user switches between the differnt cells with the arrow key or the tab key. But the AttributePointer only gives me the first selected cell.
    Have anybody a suggestion to solve this problem -  it seemed to be something like definingb a OnClick event for a input field (additionaly to the default OnEnter event...)
    Best regards,
    Sebastian

    Hi,
    You can find out at which row the editing goes, by using
    onLeadSelect action of TableUIElement.
    in onLeadSelect action you can find row number using this statement
    int rownumber= wdContext.node<TableNode>().getLeadSelection();
    Regards
    LakshmiNarayana

  • How do we adjust Revenue Generated from an automatic Event in Oracle Project Billing?

    Hi @All,
    Can someone please help me on below Query.
    Once we generate revenue based on automatic events and revenue has been accepted in GL, How do we adjust this revenue?
    Thanks in advance,
    Satya Kumar Vaddi

    If you wish to adjust the revenue in PA, Enter Manual events to adjust the automatic events; process it as a normal process and interface revenue to GL. If not in PA, Pass the journal entry in GL directly.
    AB

  • What event fires when user "leaves" TextInput?

    I need to perform some calculations on data that the user is inputting into several text inputs.  I want to perform the calculations whenever the user leaves any of the TextInputs.  The user could leaves the TextInput by tabbing out of the box or clicking out of the box.  What event fires whenthe users leaves the TextInput boxes?
    Thanks!

    focusOut
    Dispatched after a display object loses focus. This happens when a user highlights a different object with a pointing device or keyboard navigation.

  • Quicken essentials locks up with every entry, pleasseee help me

    Deb once again and last for today I hope,
    I use Quicken Essentials and after using it wonderfully for months, it now locks up with SWOD at every entry I try to input.  What could possilbly be the problem on a MAC with this application?  I have all software updates for computer and this application.  Pleaseeeeee help, as this is sooooo frustrating to get that color wheel of death and have to wait and wait for it to go away.  It never did this before.  That is why I was asking all the questions about clean my mac software earlier, thinking MAC needed some disk cleaning or something.
    Once again, thanks so much,
    Deb

    Thank you!!
    Called Quicken and the nicest rep there helped me out.  She and I deleted some quicken application files and everything worked perfect after that.
    Thank you soooo much,
    Deb

Maybe you are looking for