How to handle Text  change event in text box in SAP B1

Hello Expert...
How to handle Text  change event in source.
Please define the Event when i change the text in textbox..
currently i am using the Lost focus event but it is only occur when tab focus lost from that text box.
So please required solution ASAP..
Abhinav Lalpurwala
Edited by: Abhinav Lalpurwala on Aug 5, 2011 3:19 PM

Catch the et_VALIDATE event, when InnerEvent = False and ItemChanged = True.
            If pVal.EventType = BoEventTypes.et_VALIDATE Then
                If pVal.InnerEvent = False And pVal.ItemChanged Then
                    'TODO Your code here...
                End If
            End If
Vítor Vieira

Similar Messages

  • How to handle tab change event in UI shell main area

    I have two tabs(two taskflows) in UI shell main area. one is department tab and another is employee tab. My department tab shows employees department wise. On employee tab I have emplyee table which shows employees jobwise. This employee table has the functionality of adding new record to employee vo as well.
    Now i follow these steps.
    1. by defualt department tab is open.
    2. by clickinng on Tasks menu link i open Employee tab in to main area. Now i have both tabs in main area.
    3. at Employee tab I search all employees job = accountant. It shows the search result well.
    4. Now i add a new record to it and without saving/deleting this record i move to department tab.
    5. at Department tab i search employees where department =20, here no relation b/w job and department.
    6. Now i return to employee tab. my newly added record got disappeared. It is there but does not show in table.
    How to resolve it??
    I have one solution in my mind while changing the tab i can prompt to user "you can not leave the newly added record..either save it or delete it". But how to catch tab change event here? where i can write code to prompt msg to user?
    Pls help.
    Edited by: 900997 on May 6, 2012 4:10 AM

    With apologies for the slow reply, I'm currently travelling.
    Two things to note:
    1) The af:document uncommittedDataWarning flag was designed to stop users navigating away from half entered records. More about this flag can be found here: (see point 4)
    ....please note our documentation from time to time spells this flag wrong with only one "t" in the word committed, so if you're attempting a bulk search check for this (and I'll raise document bugs to get this fixed in the future).
    2) On addressing the ADF UI Shell, if you're switching between "pages" in the UI Shell, as separate to switching between dynamic tabs within a single page using the UI Shell, the UI Shell will actually restart the currently running task flow in the page you're returning too. You can verify this by implementing an initializer on your task flow with a log message, and watching when the initializer is called.
    In addressing your last question, at this stage I think you need to assess my first answer then come back if you think you sill need to execute the code on the tab click. I also need to know are you talking about the primary level of tabs that represent each page in the UI Shell, or are you referring to the dynamic tabs within a single UI Shell page that hold your task flows?

  • How to handle value change events of select list in custom component?

    My HelloUIComp code...How to handle events for "Select"...if i choose option1 from select then one text box is to be displayed in custom component and if i choose another option then some other text box is to be displayed in custom components...
    public class HelloUIComp extends UIComponentBase {
        public static final String account="custom.account";
        public static final String RENDERER_TYPE = null;
        HtmlCommandButton button = createButton();
        //HtmlSelectOneMenu select=createSelect();
        public void processDecodes(FacesContext context) {
             Calling the lifecycle method "processDecodes" on the
             internal button is absolutely critical to create action events
        private HtmlCommandButton createButton() {
             FacesContext context = FacesContext.getCurrentInstance();
             HtmlCommandButton newButton = new HtmlCommandButton();
             //newButton.setOnclick("return func_1(this,event);");
             MethodBinding binding = context.getApplication().createMethodBinding("#{pc_MyProjectView.go}", null);
             return newButton;
      /*  private HtmlSelectOneMenu createSelect()
             HtmlSelectOneMenu selectCategory=createSelect();
             return selectCategory;
         public void encodeBegin(FacesContext context) throws IOException {
              String style = (String)getAttributes().get("style");
              String startdate = (String)getAttributes().get("startdate");
              String enddate = (String)getAttributes().get("enddate");
              //String add=(String)getAttributes().get("add");
              ResponseWriter writer = context.getResponseWriter();
             writer.startElement("table", this);
            writer.startElement("tbody", this);
            writer.startElement("tr", this);
            writer.startElement("td", this);
            writer.writeText("Account Category", null);
              writer.startElement("td", this);
              writer.writeText("Reg-No", null);
              writer.startElement("td", this);
            writer.writeText("Account-No", null);
              writer.startElement("td", this);
            writer.writeText("", null);
              writer.startElement("td", this);
            writer.writeText("Start-Date", null);
              writer.startElement("td", this);
            writer.writeText("End-Date", null);
              writer.startElement("td", this);
              writer.startElement("select", this);
            if (style!=null)
                   writer.writeAttribute("style", style, null);
            writer.startElement("option", this);
              writer.writeText("Select", null);
              //to access data
              Account accountObj;
              AccountData accountDataobj;
              List listOfAccounts;
              int noOfAccounts;
              accountDataobj=new AccountData();
              for(int i=0;i<noOfAccounts;i++)
              writer.startElement("option", this);     
              accountObj=(Account) listOfAccounts.get(i);
              writer.writeText(accountObj.getCategory(), null);
            writer.startElement("td", this);
              writer.startElement("select", this);
              if (style!=null)
                   writer.writeAttribute("style", style, null);
              writer.startElement("option", this);
              writer.writeText("Select", null);
              for(int i=0;i<noOfAccounts;i++)
              accountObj=(Account) listOfAccounts.get(i);     
              writer.startElement("option", this);
              writer.writeText(""+accountObj.getRegNo(), null);
              writer.startElement("td", this);
              writer.startElement("select", this);
              if (style!=null)
                   writer.writeAttribute("style", style, null);
              writer.startElement("option", this);
              writer.writeText("Select", null);
              for(int i=0;i<noOfAccounts;i++)
              accountObj=(Account) listOfAccounts.get(i);
              writer.startElement("option", this);
              writer.writeText(accountObj.getAccountNo(), null);
              //writer.startElement("option", this);
              //writer.writeText("00200155", null);
              writer.startElement("td", this);
              writer.startElement("td", this);
              writer.startElement("input", this);
              if (style!=null)
                   writer.writeAttribute("style", style, null);
              writer.writeAttribute("readonly", "","");
              writer.startElement("td", this);
              writer.startElement("input", this);
              if (style!=null)
                   writer.writeAttribute("style", style, null);
              writer.writeAttribute("readonly", "","");
         public String getFamily() {
              return "HelloFamily";

    NewEclipseCoder wrote:
    How to handle events for "Select"...if i choose option1 from select then one text box is to be displayed in custom component and if i choose another option then some other text box is to be displayed in custom components...Two ways:
    1) submit the form to the server and render the desired textbox depending on the option.
    2) render all textboxes and use Javascript/DOM to display/hide them depending on the option.

  • How to handle double click event in a text control

       Will u please send me information on handling double click events inside text control and also about locking and unlocking of DB tables for updation.

    Hi Prabhavathi,
    Here is how you handle double click events in Textedit control.
    1)Create a custom control in screen (say TEXT_CONTROL)
    2)In main program,
    a) Declarations:
    data: obj type ref to cl_gui_custiom_control.
          text type ref to cl_gui_textedit.
    b) Create the instance of custom container
    c) Create the instance of textedit control.
    3)Now to handle double click events , create a local class as follows.
    class shail_event definition.
    public section.
    handle_doubleclick for event dblclick of cl_gui_textedit .
    class shail_event implementation.
    method handle_doubleclick .
    here do the coding for handling the double click.
    4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
    5) Define varibles for event.
    DATA: i_events TYPE cntl_simple_events,
          wa_events TYPE cntl_simple_event.
    SET HANDLER hand->handle_doubleclick for text.
    wa_events-eventid = cl_gui_textedit=>event_double_click.
    wa_events-appl_event = 'X'. "This is an application event
    APPEND wa_events TO i_events.
        CALL METHOD texte->set_registered_events
            events                    = i_events
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3
            OTHERS                    = 4.
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
    If you want the program, kindly send your mail-id so that I can mail it to you.

  • Filling binding bean on text changed event

    I have a form with binding to POJO
    I handle text changed event on one text field.
    When user changes this text, I want binding to push variables to my POJO, so that i could invoke some pojo methods on current data.

    You can use EL for binding
    <af:inputText value="#{bindings.Id.inputValue}" id="it1" autoSubmit="true"/>
    <af:outputText value="#{bindings.Id.inputValue eq test ? bindings.Id.inputValue :null}" id="ot1" partialTriggers="it1"></af:outputText>
    Abhilash S

  • How to handle the drop event

    Hi everyone,
    Now I'm developing the function about drag-drop source(image & text) from Panel Tree to the document.
    I also have a look at the basic drag/drop & Panel Treeview, but all of them is not the source code mentions to how to handle the drop event, almost about drag event only.
    Now when user Drags(image, text) from PanelTreeView(example) and drops them to document and then new page Item contains source(image, text) created, so I want to get the page item after drop event.
    so anyone know about this please give me suggestion
    thanks so much.

    i dont think you can.
    --> Adobe Certified Expert
    keyoke_za wrote:
    > Hi,
    > How can I get my flash movie to handle the drop event
    when dropping objects from outside the flash window.
    > Thanks for your help..

  • How to handle fund changes

    Hello All,
    I have following question about how to handle fund changes at the installment.
    1) At first i created document as follows.
         Tuition fee : 100 USD
         Fund  was 0A00 .
    2) I also created installment for qbove document.
        Installment 1 : 50 USD
        Installment 2 : 50 USD
    3) During clearing fund was changed to 0B00 for the installment 2 by the FM team for their own purpose.
        When student pay installment 2, i got an error and how can i handle in this case.
    your help would be appreciated.

    FM errors can be tricky.  Changing the original fund is likely the culprit.  Do you have more detail about the specific error your are receiving.  This is not enough information to resolve an issue in FM.

  • How to handle form close event or escape key press event for user defined f

    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,

    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Catch ex As Exception
            End Try
          End If
    Hope this helps

  • How and where to change the Dunning Text

    Hi guru's
    i want  change the dunning text and assign the changes how to do it can any body tell me how to do it.,
    thanks in advance
    Nandini Reddy

    Hi chandra sekhar reddy
    Dunning letters changes for lvel 1.2.3
    now user wants to change the dunning text.
    they want to change the old email address and old contact numbers etcc....
    could you please advise me how to do the changes and let me know the dteps if its require functional specification
    many thanks in advance
    value points assigned
    Thanks and regards

  • How to handle Scrollbar's event in the Form Block !

    I want to create three Block like
    Block : X-axis , Source From View
    Block : Y-axis , Source From View
    Block : Cell , Source From Stored Procedure.
    The relation is (X-axis , Cell) , (Y-axis ,Cell).
    Then , if i scroll X-axis or Y-axis Scrollbar , then Cell will change !
    Problem : If X-axis Cursor record does not change , the Cell's Data will not refresh.
    Can tell me how to handle the scrollbar's event , Thank.

    Thank you.
    The Cell's behavior is a matrix , the relation will execute when X,Y record is changed !
    if you move the scrollbar , will chanage block's data , but the cursor record does not change another!.
    If i use JaveBean to handle it , possible ?
    Using Form 6i .

  • Multiple Vulnerabilities in OpenSSL How to handle a change on CUCM to fixed software

    Regarding Bug ID CSCup22670:
    I would like to ask which certificates are affected.
    During upgrade to fixed version will be those certificates replaced by new ones?
    Is the CAPF private key affected? If yes after generating new private key for CAPF will be all LSC certificates for the endpoints generated automatically?
    Regarding Bug ID CSCup22603:
    A similar question in regards to endpoints. Will be the LSC certificate automatically regenerated or there is need to regenerate a new certificate for each endpoint after upgrade to fixed version?
    What is preferred order, to fix CUCM first and then the endpoints software or it does not matter
    I didn't find sufficient description in official documents.
    Can somebody answer those questions?
    Many thanks

    I  re-read your post and answered my own question.
    Try creating a custom MXML component based on TextInput, like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TextInput xmlns:mx=""
         text="{DEFAULT_TEXT}" >
        [Event(name="TEXTINPUT_VALUE_CHANGED", type="")]
        [Event(name="TEXTINPUT_VALUE_IS_DEFAULT", type="")]
                public var DEFAULT_TEXT:String;
                private function handleChange(event:Event):void{
                    if ( != DEFAULT_TEXT){
                        this.dispatchEvent(new Event('TEXTINPUT_VALUE_CHANGED',true));
                        this.dispatchEvent(new Event('TEXTINPUT_VALUE_IS_DEFAULT',true));
    Drop this custom component into your application, adding event handlers:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="" layout="absolute"
        xmlns:comps="comps.*" >
            private function handle_TextInputChange():void{
                btnSubmitChanges.enabled = true;
            private function handle_TextInputIsDefault():void{
                btnSubmitChanges.enabled = false;
            DEFAULT_TEXT="This is the default text."
        <mx:Button id="btnSubmitChanges" label="Submit Changes"
            x="100" y="50"/>

  • How to handle password changes if we implement singlesignon between BO& BI7

    As we know ,we can implement single signon between BO and SAP BI 7, by importing roles and users through CMC and by selecting the option "Use Single signon during report refresh time".
    My doubt here is, When we import roles from SAP and Auto import the users, is it only the SAP usernames that are stored in BO repository or both username and password. If  second case holds true then how to handle/manage password change for a user who is already imported in BO sometime back?
    Would the password changes be reflected automatically in BO?
    Please guide me if you think that I'm thinking in a wrong direction.

    Hi Naresh,
    password changes are reflected automatically in BO. BO just forwards the data to the SAP side and it does the real authentification.
    PS: Keep in mind that you cannot change the SAP password on the BO login screen if your SAP password has expired. You have to do this with the SAP client (SAP GUI)

  • How to handle version changes? Strategies?

    We're struggling with version change issues. Most recently we tried to move from 8.5 to 8.6 and lost about a week of project time while we tried to make it run well. The problem was that the Development Environment would crash several times a day while doing block diagram edits, losing unsaved changes. We never found any clues as to why. It would be one thing to debug a VI that crashes, but when it is the LV editor itself that is crashing, how do we work on that?
    Anyway, we have a policy here of freezing software updates for projects that are close to completion, because buggy updates so often delay project completions, and this triggered a return to 8.5, which is where we remain now on that project.
    But now we can't install and use the VI Analyzer we just bought on any of the PCs tied to that project, as it demands 8.6. I do have one PC that is completely disconnected from this project, and it runs 8.6, so running the Analyzer there may be useful, but still messy.
    How do you handle version changes? How often do you try to follow the updates? How often do you need to go back a version? Do you maintain different versions? Is it even possible to run multiple versions on an individual Win XP PC?

    I have installed several versions of LabVIEW on my system.
    Most of the toolkits are only installed in the latest versions. There are ways to install toolkits on multiple versions.
    And I think that toolkits as of LabVIEW version 8.6 can be installed on several LabVIEW verions.
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to generate selection change event through code in JTree?

    I am developing an application which downloads the file from other system and adds it into the tree. On selecting any file in the tree I m displaying it's contents. But now i am trying to display the contents of downloaded file as soon as it's download completes. Here i am not getting the way to how to generate the event as the download completes, because i tried that setSelectionPath(TreePath path), but it also don't generates the selection change event. Is there any other way to do so?

    Put null in place of oldLeadSelectionPath. From the API for TreeSelectionEvent:
    protected TreePath     oldLeadSelectionPath:
    leadSelectionPath before the paths changed, may be null.
    I'm at the office and can't try out anything, so please let me know whether that works for you.
    edit Or it may be easier to put all code from your valueChanged (...) override in a new method and invoke that method both from valueChanged (...) and wherever else you need.
    Edited by: Darryl.Burke

  • Standard text changes to italicized  text

    I'm using Adobe Acrobat 6.0 Professional Version 6.0.6 in XP Pro.
    While entering text using the Text Box Tool, the text I'm entering will suddenly change from normal text to italicized text.
    Does anyone know why this happens ?
    Is there a way to deselect italic text ?

    Ummm! Not really sure. It may be something related to the font that you have selected, but am not sure. If you are using the Text Touchup Tool, then it may be that the font reverts to that what was originally in the box. You should be able to select the text and change the font using that tool.

Maybe you are looking for