Skip to Content
author's profile photo Former Member
Former Member

Change Event

Hi

First I wanna say that i'm getting great support from this forum here -> Thanks!

I've tried to catch change events of an editText-Control in the orderline - grid.

It works when enter values manually but doesn't work when a default value get set (eg. after selecting an item).

It's important that I get every changed/new value because I'll do some calculations with the current sum of those columns.

For now I rely on LostFocus events on different columns just to make sure that i catch changes in one column that maybe doesn't get/lost Focus.

And what about an rowChanged Event? Could be useful too.

Greetings

Phil

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2005 at 01:23 PM

    Hello

    use et_VALIDATE instead of et_LOST_FOCUS

    it will be fired off whenever a new value is being validated in the cell

    and will be much better from performance aspects

    Regards, Avi.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I prefer et_VALIDATE also, but I usually check to see if the value has really changed, because this event fires more often than I would like. I used et_GOT_FOCUS to save the starting value and update the saved value if it passes the et_VALIDATE event.

      Bruce Harold

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2005 at 06:04 AM

    Hi

    Thanks for the explanations. When I change the Value of another Control within the et_Validate - Event , SBO hangs.

    Steps to reproduce the behaviour:

    - Use the Filter Events Sample

    - For the order Form check:

    <SNIP>

    If pVal.BeforeAction = False And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE And pVal.ItemUID = "38" And pVal.ColUID = "58" Then

    txtGesGew = frm.Items.Item("14").Specific

    txtGesGew.Value = "Test"

    End If

    </SNIP>

    Then open an order and enter a value into the Weight-Column.

    When I do not set the control value it works.

    By the way I don't get an et_VALIDATE event for the default values but I think this is by design?

    oops: I'm using VB.NET

    Greetings

    Phil

    Message was edited by: Philipp Knecht

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Bruce and Mark

      Thanks for the tips. I like the idea of different handler objects.

      Sadly it's just not possible to manipulate a .text property of another control within an controls et_validate - event.

      Maybe i have to set the property later then in the lost focus - event or so...

      Anyhow imho event errors are making SBO UI develoment complicated and hard to maintain because of the workarounds.

      Greets

      Phil

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.