How to catch cell lost focuse event of matrix

Dear all
can you tell me how to catch the cell lost fouc event of matrix.
i want to check the value is entered the that cell, which is not greter than the extising value..
thanks in advance......

Hi
For that you can use either validate or lost focus event
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
        ' BubbleEvent sets the behavior of SAP Business One.
        ' False means that the application will not continue processing this event.
        ' Validate event
        If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
          (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then
            If (pVal.Before_Action) Then
                'write your code
            End If
        End If
        'Lost focus event
        If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
         (pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) Then
            If (pVal.Before_Action) Then
                'write your code
            End If
        End If
    End Sub
Hope this helps
Regards
Arun

Similar Messages

  • JTable, cells lost focus

    How can I get or listen to event when my cell lost focus ??

    The correct answer is to... well, that should be saved for the Swing forum. or alternatively, its in the text for THE FIRST google result for "jtable cell listener".

  • ItemEvent - Event Type - Lost Focus Event

    Hi,
    Just want to ask whether what eventtype i should use for this situation.
    I want to do something when the itemcode in marketing document been key in correctly.
    At first i use the lost focus event. but i after i find that the lost focus event will keep on check where the itemcode is key in correct or not when it lost focus. Actually I want this effect but this will caurse the scoll bar cannot move.
    For example. when i put the cursor in item code column. then i go and scoll the bar. it will keep on fire the lost focus event make me cannot scoll the bar or the matrix become wrong disappeared. Any idea on it?
    Sorry i maybe not explain well. But i don know how to explain on it. Hope you all understand what I mean la.
    Regards
    Wong

    Hi Wong
    1st Try to split them
    2nd use beforeAction=true and ItemChanged = True
    If you have 2005/2007 version on the item code et_choose_from_list and validate are similar...
    If pVal.ItemUID = "38" then
    if pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE then
      if pVal.ItemChanged=True And pVal.BeforeAction = True then
      **** do something
      end if
    end if
    end if
    or
    If pVal.ItemUID = "38" then
    if pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_choose_from_list then
      if pVal.BeforeAction = True then
      **** do something
      end if
    end if
    end if
    Regards,
    J.

  • How do I retrieve lost calendar events after OS 5 synch?

    how do I retrieve lost calendar events after OS 5 synch?

    You can re-download them for free from:
    App Store>Purchased

  • Re:Lost focus event

    Hi all,
    I have written some code in lost focus event.But the lost focus event is not firing.i didn't set any filters.please help me to sollve my problem.
    Regards
    Mohana

    Hi,
    try this
    If pVal.ItemUid = "Uid" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.BeforeAction = False  and pval.charpressed=9 Then
    end if
    '9'  is the item which gets fired when tab is pressed
    it's better to write keydown if ur using tab
    and coming to firing a event i gave the code before._refere to ur previous replie's_

  • TLF lost focus event?

    Is there something like a lost focus event (like onBlur in JS)?

    It is supposed to inherit InteractiveObject events such as flash.events.FocusEvent.FOCUS_OUT ("blur" in JS)

  • InputField's Lost Focus Event?

    Dear All,
    The input field does not seem to support an onLostFocus event.
    Is there a work around?
    How can the lost focus be detected?
    Thanks and regards,
    Mayuresh

    Hi,
    As far as i know no work arounds, If you try work arounds it will be too costly in terms of performance.
    Only option is users mercy and handle it in onEnter
    Regards
    Ayyapparaj

  • How to Catch External device's Event

    hi frndz
    i connected Dental Web Camera in my PC.i want to capture his click event.can i capture its click event.
    or any other way to catch its generated event.
    actually i want to store picture(Taken from Camera) into database.
    can u help me to solve this problem or can u provide me any solution
    thanks in advance
    Edited by: ajju29 on Mar 20, 2009 2:40 AM

    IMO:
    If Your camera don't ofer any SDK, you should check OS API and next search how catch events in your OS.
    if you develop for windows, check msdn.microsoft.com
    this links i find in google, maybe can help you"
    http://www.velocityreviews.com/forums/t130113-swing-how-to-catch-all-events.html
    http://www.experts-exchange.com/Programming/Languages/Java/J2SE/Q_23643749.html *(you must pay)
    http://www.javareference.com/jrexamples/viewexample.jsp?id=9
    http://www.microdoc.com/download/EDFoop2000_EN.pdf
    and more,
    ask google.
    Edited by: Skowroniasty on Mar 20, 2009 10:52 AM

  • How to catching Clear-Sort button event?

    Does any one know how to catch the event when user click the Clear-ALL-Sort button? I would like to do somthing in Java by catching this event.
    thanks in advance.
    John

    I'm not really sure what you mean.
    LIke, I want to use the three event listener functions like a global or static function for all of the buttons which I think I've done for the most part.
    However, I'm having an issue with the current state of the button. Like...
    1 - on
    2 - off
    3 - off
    4 - off
    1 - off
    2 - on
    3 - off
    4 - off
    1 - off
    2 - off
    3 - on
    4 - off
    1 - off
    2 - off
    3 - off
    4 - on
    Really redundant right? So I want to beable to pass something through the event listener functions somehow so I only have to right the listener section once instead of 4 times.
    Know what I mean? If I was in an external document class structure I could just re-create my own event listener class to pass aonther property/parameter. But I don't know what I can do within AS3 internally in the Flash movie to do this.
    Just seems likes there should be a relatively simple way to do this, but I'm not sure how many errors I'd have to wade through or if it's even possible.

  • How to catch Find and add event of toolbar in UDO addon ?

    Hi experts ,
        please help me anyone How can i catch Find and add event of SAP  toolbar in my UDO addon ?
    thanks in advance
    Surajit

    Hi,
    Try This.....
    'In Menu Event
    If pVal.MenuUID = "1281" And pVal.BeforeAction = True Then   'Find
                      sbo_application.Messagebox("Find Mode")
    end if
    If pVal.MenuUID = "1282" And pVal.BeforeAction = True Then     'Add
                      sbo_application.Messagebox("Add Mode")
    end if
    Thanks
    Shafi

  • How to catch global transaction timeout event

    Hi all,
    I need to find a way to catch global transaction timeout events. By default, there are only two transaction related events can be caught:
    .SysTransactionHeuristicAbort
    .SysTransactionHeuristicCommit
    Is there a way to add transaction timeout to the list. Thanks in advance.

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • How to catch IE7 tab change event in Java Applet?

    My applet have some modeless dialogs, When I start my applet with modeless dialog in tab1, if I swith to tab2, the modeless dialog of tab1 remains open.
    So I want to catch the tab change event, and set modeless dialog invisible when tab changes.
    Who knows the solutions.... Thanks

    To get to the IE7 browser, you'll have to go through JNI if you're using Java to get to a C level interface. You'll have to write the code to interface to it also. IE7 does not have a Java interface, inface, MS has a vested interest in not supporting a Java interface. You'll have to look up the IE7 developers docs to see the OLE interface you'll have to hit.

  • Lost focus event litesner vs Mouse event litesner

    hi all, I having problem with JSwing components in window environment. Below is the phenomenon.
    1.) create a JFrame.
    2.) drag JTextField and JButton put onto the JFrame.
    3.) Add FocusLostEvent into the JTextField lostFocusListener.
    4.) At the event code this:-
    if (lostFocusEvent.isTemparory())
    return;
    javax.swing.JOptionPane dialog = new javax.swing.JOptionPane(
         "Error",                         javax.swing.JOptionPane.INFORMATION_MESSAGE,                         javax.swing.JOptionPane.DEFAULT_OPTION
    dialog.createDialog(this,reslabels.getString("Error_Input_Error") ).show();
    5.) run the program.
    6.) focus your cursor in the JTextField. Next, use your mouse click on the JButton.
    7.) You should see this. Message Dialog pop-up.
    8.) Well, don't click the OK/NO button from the Dialog box.
    9.) Now, point your mouse to the button and see what will happen to your JButton.
    10.) The JButton is Armed.
    By right the Jbutton should not be armed because the focus should has gained by the dialog box.
    After all, we try create the same program using MS VC++. It does not have this problem because logical enough the focus has obtained by the dialog Box. Jbutton should not perform any action. Otherwise, it is some kind of degrade the dialog show modal.
    If you has above experience and solutions, please do share with me. Thanks.
    regards,
    elvis
    scjp

    WWWizard, It doesn't work. below is the source code. Please take a look and compile it and run at your window environment.
    1.) Focus you cursor at the JTextField.
    2.) Once ready, click on the JButton. You should see the Dialog msg pop up. Do not close the Dialog at this moment.
    3.) Move your mouse pointer to the JButton that you just clicked. Why the JButton is Armed? It shouldn't happen in window environment.
    ========start==========
    package test.lib;
    import java.awt.*;
    import javax.swing.*;
    * This type was generated by a SmartGuide.
    public class TestCustLib extends JFrame {
         private JPanel ivjJFrameContentPane = null;
         private JPanel ivjTestCustLibPane = null;
         IvjEventHandler ivjEventHandler = new IvjEventHandler();
         private JTextField ivjJTextField1 = null;
         private JButton ivjJButton1 = null;
    class IvjEventHandler implements java.awt.event.FocusListener {
              public void focusGained(java.awt.event.FocusEvent e) {};
              public void focusLost(java.awt.event.FocusEvent e) {
                   if (e.getSource() == TestCustLib.this.getJTextField1())
                        connEtoC1(e);
         private lib.ButCus ivjaa = null;
    * TestCustLib constructor comment.
    public TestCustLib() {
         super();
         initialize();
    * TestCustLib constructor comment.
    * @param title java.lang.String
    public TestCustLib(String title) {
         super(title);
    * connEtoC1: (JTextField1.focus.focusLost(java.awt.event.FocusEvent) --> TestCustLib.jTextField1_FocusLost(Ljava.awt.event.FocusEvent;)V)
    * @param arg1 java.awt.event.FocusEvent
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void connEtoC1(java.awt.event.FocusEvent arg1) {
         try {
              // user code begin {1}
              // user code end
              this.jTextField1_FocusLost(arg1);
              // user code begin {2}
              // user code end
         } catch (java.lang.Throwable ivjExc) {
              // user code begin {3}
              // user code end
              handleException(ivjExc);
    * Return the aa property value.
    * @return lib.ButCus
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private lib.ButCus getaa() {
         if (ivjaa == null) {
              try {
                   ivjaa = new lib.ButCus();
                   ivjaa.setName("aa");
                   ivjaa.setLocation(243, 160);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjaa;
    * Return the JButton1 property value.
    * @return javax.swing.JButton
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JButton getJButton1() {
         if (ivjJButton1 == null) {
              try {
                   ivjJButton1 = new javax.swing.JButton();
                   ivjJButton1.setName("JButton1");
                   ivjJButton1.setText("JButton1");
                   ivjJButton1.setBounds(60, 146, 85, 25);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJButton1;
    * Return the JFrameContentPane property value.
    * @return javax.swing.JPanel
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JPanel getJFrameContentPane() {
         if (ivjJFrameContentPane == null) {
              try {
                   ivjJFrameContentPane = new javax.swing.JPanel();
                   ivjJFrameContentPane.setName("JFrameContentPane");
                   ivjJFrameContentPane.setLayout(new java.awt.BorderLayout());
                   getJFrameContentPane().add(getTestCustLibPane(), "Center");
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJFrameContentPane;
    * Return the JTextField1 property value.
    * @return javax.swing.JTextField
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JTextField getJTextField1() {
         if (ivjJTextField1 == null) {
              try {
                   ivjJTextField1 = new javax.swing.JTextField();
                   ivjJTextField1.setName("JTextField1");
                   ivjJTextField1.setBounds(54, 64, 126, 20);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJTextField1;
    * Return the TestCustLibPane property value.
    * @return javax.swing.JPanel
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JPanel getTestCustLibPane() {
         if (ivjTestCustLibPane == null) {
              try {
                   ivjTestCustLibPane = new javax.swing.JPanel();
                   ivjTestCustLibPane.setName("TestCustLibPane");
                   ivjTestCustLibPane.setLayout(null);
                   getTestCustLibPane().add(getJTextField1(), getJTextField1().getName());
                   getTestCustLibPane().add(getJButton1(), getJButton1().getName());
                   getTestCustLibPane().add(getaa(), getaa().getName());
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjTestCustLibPane;
    * Called whenever the part throws an exception.
    * @param exception java.lang.Throwable
    private void handleException(java.lang.Throwable exception) {
         /* Uncomment the following lines to print uncaught exceptions to stdout */
         // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
         // exception.printStackTrace(System.out);
    * Initializes connections
    * @exception java.lang.Exception The exception description.
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void initConnections() throws java.lang.Exception {
         // user code begin {1}
         // user code end
         getJTextField1().addFocusListener(ivjEventHandler);
    * Initialize the class.
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void initialize() {
         try {
              // user code begin {1}
              // user code end
              setName("TestCustLib");
              setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
              setSize(460, 300);
              setTitle("TestCustLib");
              setContentPane(getJFrameContentPane());
              initConnections();
         } catch (java.lang.Throwable ivjExc) {
              handleException(ivjExc);
         // user code begin {2}
         // user code end
    * Comment
    public void jTextField1_FocusLost(java.awt.event.FocusEvent focusEvent) {
         if (focusEvent.isTemporary())
              return;
         //int li_Ok = javax.swing.JOptionPane.showConfirmDialog(this,"Don\'t click me!!! Move your mouse to JButton1.","Oops",     javax.swing.JOptionPane.DEFAULT_OPTION,javax.swing.JOptionPane.QUESTION_MESSAGE);
         javax.swing.JOptionPane.showMessageDialog(this,"Don\'t click me!!! Move your mouse to JButton1.");
         //javax.swing.JOptionPane.showInputDialog(this,"Don\'t click me!!! Move your mouse to JButton1.");
         //javax.swing.JOptionPane.showOptionDialog(this,"Don\'t click me!!! Move your mouse to JButton1.","Don\'t click me!!! Move your mouse to JButton1.",javax.swing.JOptionPane.YES_NO_OPTION,javax.swing.JOptionPane.WARNING_MESSAGE,null,null,null);
         //javax.swing.JOptionPane.showInternalMessageDialog(null,"ta");
         return;
    * Starts the application.
    * @param args an array of command-line arguments
    public static void main(java.lang.String[] args) {
         try {
              /* Set native look and feel */
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              /* Create the frame */
              TestCustLib aTestCustLib = new TestCustLib();
              /* Add a windowListener for the windowClosedEvent */
              aTestCustLib.addWindowListener(new java.awt.event.WindowAdapter() {
                   public void windowClosed(java.awt.event.WindowEvent e) {
                        System.exit(0);
              aTestCustLib.setVisible(true);
         } catch (Throwable exception) {
              System.err.println("Exception occurred in main() of TestCustLib");
              exception.printStackTrace(System.out);
    ========end==========

  • Retrieving data upon lost focus event

    Hi all..
    Is is possible to make some data displayed in a table, whenever the focus lost event happen on a textfield?

    Yes

  • How to catch a key down event in TextEdit UI element ?

    Is it possible for me to catch 'Enter' and 'Esc' key when I input something ?
    Best regads ,

    hi, Shishir ,
    I see the on key event in input field , yes , the TextEdit does not has any event . But how can I meet such requirement ?
    When the user click enter on TextEdit , I should do something , When the user click escape , I should do something ?
    Best regards ,

Maybe you are looking for

  • ORacle Installation: Kernel Parameters

    I was trying to install Oracle 10.2.0 on sun solaris 5.9. I got warning/error about noexec_user_stack=1: found no entry failed. due to this, i exit out of the installation .I knew that I can add this in /etc/system but for this I need to bounce the s

  • Error connecting Jdev with ESB and BPEL - caused by remote HTTP Server

    Hi everyone, hopefully someone can help me with my problem. I have 3 servers in my cluster, one straight web server, one SOA server and one J2EE server. I am trying to configure Jdev for developing SOA applications. I was able to create the applicati

  • Drill Down are not giving correct values

    Hi We created sales Order values as a character and putting them in Rows and populating data by writing update rule. We created variables on calendar month in order to choose specific period of data in the query. For example if we need 02/2008 to 0/4

  • Corelation not getting compiled in BPEL

    Hi, I have a BPEL ( V 1.1, one-way ) that uses corelation. I have created the corelation,added property and then property alias and evrything is visble in structure window. But when i try to compile it gives the following error. [scac] error: in GDIP

  • Does the Canon HD-20 (mini DV) work well with FCP?

    What is the caliber of result from shooting this consumer grade HD camera with 24p, and importing mini-DV? Does the G5 and Final Cut handle HD footage from this particular camera well? THANKS. G5 Mac OS X (10.4.5) fcp 5.1.2