How to receive the record selected on a lookup form?

SilentpowerSilentpower Member Posts: 13
edited 2005-04-20 in Navision Attain
Hello,

I've a problem with a lookup form:

this is the code in a field. When I enter the field a lookup form appears and the user can select a value.
lrecschadeaard.RESET;

lfrmschadeopties.fctSetParameters('PLAATS');
lfrmschadeopties.LOOKUPMODE(TRUE);

lfrmschadeopties.SETTABLEVIEW(lrecschadeaard);

IF lfrmschadeopties.RUNMODAL = ACTION::LookupOK THEN BEGIN
  "Soort Plaats" := lrecschadeaard.Code;
END;

anyone who has a suggestion?

Tnx a lot!

Comments

  • jmjm Member Posts: 156
    Hi Silentpower,

    what about:
    IF lfrmschadeopties.RUNMODAL = ACTION::LookupOK THEN BEGIN 
    [b]  lfrmschadeopties.GETRECORD(lrecschadeaard);[/b]
      "Soort Plaats" := lrecschadeaard.Code; 
    END;
    
    br
    Josef Metz
    br
    Josef Metz
  • SilentpowerSilentpower Member Posts: 13
    that works!!

    Tnx a lot jm
Sign In or Register to comment.