Skip to Content

ActionSuccess property doesnu00B4t seem to be fired.

Hi all,

I´m trying to catch the click event on button 3 (Create) in the purchase order confirmation form (65). I can catch the event before the purchase order is created. But not after. The problem is that ActionSuccess is never true.

Next code never gets into the if:

If pVal.FormType = 65 Then
   If pVal.ItemUID = "3" 
      And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK 
      And Not pVal.BeforeAction And pVal.ActionSuccess Then
         'Never executes this
         Dim oForm As SAPbouiCOM.Form
         oForm = con.Forms.Item(FormUID)

   End If

End If

Could someone clear me why?

Thanks in advance,

Ibai Peñ

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 05:37 PM

    EventFilter turned off?


    Ibai, I tryed your code and get the same result.

    If I use et_ITEM_PRESSED instead of et_CLICK it works for me.

    I could imagine et_CLICK is meant more technically wheter et_ITEM_PRESSED indicates that an action will pass / has passed.

    However, does et_ITEM_PRESSED work for you, too?


    Message was edited by: Florian Zeller

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I have tested and arrived to the same conclusion.

      For the specific case of the Form "65" you don't receive an et_ITEM_PRESSED event.

      <b>Have you already created a message into CSN?

      If you haven't please do it and let as now.</b>

      Usually when we want to verify an action was successfully done we want to control it after button OK is pressed for example and then we use the et_ITEM_PRESSED.

      The et_CLICK occurs on every item, it does not always have an associated action.

      The et_ITEM_PRESSED is only thrown for some items like Buttons, TabFolders and some more; and it means an action is done in consequence like add, find, change current folder tab,..



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.