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

UI - detect item code change in matrix

Hi everybody,

We are facing here a strong problem regarding an add-on managing pricing info in transactions:

We are trying to detect if the item code has been changed on any document line.

To do this job we usually use the "et_Validate" event and test the value of "ItemChanged" property of the related event pointer.

It appears that when the user leaves column 1 on the form matrix (which contain the itemcode), this property is always False, unlike other cases on other columns.

So we cannot say.

We thought about storing in a string array in vb all the itemcodes, and do checks according to the index (line index on the matrix will match value index in string array)

But there may be a more elegant way to solve this problem.

Please advise.

Kind regards,

PS. We are using SBO 2004A with Patch 21

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 May 30, 2005 at 06:42 AM

    Hi Cyril

    I'm using a hashtable for this purpose.

    key=formtype&formcount&linenumber

    values are references to a specific value class

    then i use the gotfocus,lostfocus and formclose - events for managing the hashtable and to determine if values got changed.

    hth

    Add a comment
    10|10000 characters needed characters exceeded

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.