on 02-11-2016 9:34 AM
Hello,
I want to display a messageBox on documents marketing Lines only ig ItemCode or ItemName was modified so i must test if the value was modified but the event ItemChanged does not work (since 2004 !!!) .
I try to test my value with the LOST/GOT events but this event is triggered 13 times in SAP 9.1 PL10 if you have created RF on the rows of the matrix (or header)
Have you a work around ?
Kind regards
Bruno
Hi Bruno,
Try something like this:
if(!BeforeAction)
{
switch (pVal.EventType)
{
case BoEventTypes.et_VALIDATE:
#region et_VALIDATE
switch (pVal.ItemUID)
{
case "your matrix unique id":
if (pVal.ColUID.Equals("your col unique id"))
{
if (pVal.ItemChanged) //had some change in matrix, should be something
SBO_Application.MessageBox("Value Changed");
}
break;
}
default:
break;
}
}
Hope it helps.
Note: I use SAP 9.1 PL 9 and SAP 9.0 and this code works.
Best regards,
Diego Lother
Message was edited by: DIEGO LOTHER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ad
innerevent=false work only with the event VALIDATE. Not with LOST and GOT FOCUS so I can't know if the value has changed or no.
Can you try on your base if the LOST and GOT focus fired 13 times in your version with and without RF ?
Regards
Bruno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bruno,
You could use the gotfocus event to save the current value and check in the lostfocus event if the value has changed
Regards
Ad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.