Table lookup doesn't work on form

wilk_uwilk_u Member Posts: 94
Hi,
i'm working with form 55 purch. order subform it displays some global variable in line, on control displaying this value there was some code in onLookup trigger, then i moved variable through adding it to purchase line table, commented lines in onlookup trigger added exactly the same lines in lookup on field in table. When running table, lookup works, but on form 55 lookup doesnt work, there is just an arrow of lookup, but no action running.. Any clues?
Greetings

Comments

  • VjekoVjeko Member Posts: 55
    If you have anything in OnLookup trigger, even comments - the trigger is considered defined, and it takes precedence over table trigger. Delete the commented code, also delete any local variables in the trigger (because as soon as you define a local variable, the trigger is also considered defined), and it will work.
    (Co-)author of "Implementing Microsoft Dynamics NAV 2009"
    http://vjeko.com/
  • vijay_gvijay_g Member Posts: 884
    edited 2012-01-13
    Don't comment on control box delete all lines from onlookup trigger of form.
  • wilk_uwilk_u Member Posts: 94
    Had no idea about that.

    Thank You.
  • lvanvugtlvanvugt Member Posts: 774
    Read more about htis here :OnLookup & OnValidate #1
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
Sign In or Register to comment.