Code does not execute

WojtekmWojtekm Member Posts: 123
Hello,

I`ve put some new code in table 7002 Sales Price becouse I need to see item description in this table.

The code is:
Item No. - OnValidate()

IF Item.GET("Item No.") THEN BEGIN
    Description := Item.Description;

So the problem is that second line code is execute in test database but it does not execute in production db.

Any ideas?



best regards
Wojtekm

Comments

  • davidspdavidsp Member Posts: 18
    Are you using the same license file?
  • WaldoWaldo Member Posts: 3,412
    Have you tried to use the debugger?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • WojtekmWojtekm Member Posts: 123
    ok, i use debugger and it helps :)
  • DenSterDenSter Member Posts: 8,305
    What about a lookup type flowfield? That way you prevent redundancy (i.e. storing the Item's description in more than one place). To accommodate direct population of the description on forms, you put a CALCFIELDS command in OnValidate.
Sign In or Register to comment.