Hi Zoltan,
I tried your solution & it seems work!!
Thank you very much!
BTW, just wonder why it can't work by overriding the property of the data
item, as like what I did for other fields before. Can you please guide me if
you know the reason. Anyway, Thanks again
Best Rgds
Teng Beng Lee
Welcome aboard!
You can solve this in the Visual Assist Button Clicked event of the
control.
Define a variable with appropriate data type to catch the UDC code (e.g.
KY). Without further explanation here is the ER code for you.
Let me know, if you have question about it!
Also let us know your reesults! Thx.
Good luck,
Zoltán
=======================================================================
FORM: Fix/Inspect [FIX INSPECT] (W59GZ001A)
=======================================================================
CONTROL: EDIT Salesperson Code
EVENT: Visual Assist Button Clicked
-----------------------------------------------------------------------
evt_szUserDefinedCode_KY
0001 VA evt_szUserDefinedCode_KY = "0"
0002 Suppress Default Visual Assist Form
0003 Call( App
0005S , Form: W0005SB )
"55" -> Systemcode
"RS" -> Userdefinedcodes
VA evt_szUserDefinedCode_KY <- Userdefinedcodevalue
UNDEFINED X D!
UNDEFINED X Description002
"<Blank>" X Version
0004 VA evt_szUserDefinedCode_KY = ltrim(rtrim([VA
evt_szUserDefinedCode_KY],' '),' ')
0005 String, Convert String To Numeric
VA evt_szUserDefinedCode_KY -> szGenericString
FC Salesperson Code <- mnNumericValue
UNDEFINED X cErrorCode
_________________________________________________________________
Get MSN Hotmail alerts on your mobile.
http://en-asiasms.mobile.msn.com/ac.aspx?cid=1002
Using Enterprise One Version 7332
Looking forward to ERP8.0 or ERP8.9