Synchronise Record Position Between Forms

Jonathan2708
Jonathan2708 Member Posts: 552
Hi,

If a user opens a card form, browses through the records and then closes the form, the next time they open the form the record is positioned on the last record visited. I need to know if it is possible to effectively set the last visited record (as per stored in ZUP file) for a particular form through C/AL code. i.e. when a user closes one form, set the record position of another form which is based on the same table.

Any help appreciated,

Jonathan

Comments

  • ara3n
    ara3n Member Posts: 9,258
    You would need a table to store the information for each form for every user, as well as storing the Primay key of that record.
    Oncloseform trigger you would write to this table.
    In the other form. onopenform trigger you would get PK for that user and display the record for that form.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n