cancel
Showing results for 
Search instead for 
Did you mean: 

UI - detect item code change in matrix

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)