Setrecord

MiStaMiSta Member Posts: 19
Hi,

the following code doesnt work:

RessourcenSuchmaske.SETRECORD(recRessource);

IF RessourcenSuchmaske.RUNMODAL = ACTION::LookupOK THEN BEGIN
RessourcenSuchmaske.GETRECORD(recRessource);
VALIDATE("No.", recRessource."No.");
END;

The form opens but the pointer always stands on the first record.
What is wrong?

Thanks in advance

MiSta

Comments

  • garakgarak Member Posts: 3,263
    Did you check the SourceTablePlacement Property on your form "RessourcenSuchmaske" ?

    Another tip if you have forgott it.
    You use the LookupOK Action, but your form will not show the OK and Cancel Button (if you have it correct designed).
    So, to see the OK and Cancel button u must use RessourcenSuchmaske.lookupmode(true);
    clear(FormResList);
    FormResList.SETRECORD(Rec);
    FormResList.lookupmode(true);
    if FormResList.runmodal = Action::LookupOK then
      FormResList.GETRECORD(Rec);
    

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.