On Lookup

sabzamsabzam Member Posts: 1,149
Hi Everybody,

I've got a small problem but I can't find the right solution to it. I have crated two tables; which are related to each other. On lookup at Column x; the form of Column y is displayed BUT 'the pointer' is on the very first record. Now in Navision if let's say we have got customer 10000 when we go to customer list the pointer is on customer 10000. How is this achieved?

Comments

  • ara3nara3n Member Posts: 9,256
    you need to add code that looks like this
    If Columnx <> '' then begin
    MyRecordB.setrange(Columnx,Columnx);
    if MyRecordB.findfirst then;
    MyRecordB.setrange(Columnx);
    end;
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • NaviDevNaviDev Member Posts: 365
    Or you can try also the GET command.
    Navision noob....
Sign In or Register to comment.