Control on Open Form

cwoonl
cwoonl Member Posts: 14
Please advice--

I have two forms, says A & B. while form A is open, i have to block user open form B and vice versa.

All advice is welcome.
Thank you, #-o

Comments

  • Konrad
    Konrad Member Posts: 30
    I would use table or better single instance codeunit to record openings and closings of forms for particular userID. Then you can check in onOpenForm trigger whether the other form is currently in use.
    Don't think there is any standard way to do this in navision.
    What do you need that for?
  • cwoonl
    cwoonl Member Posts: 14
    Thanks Konrad for reply.

    Your advice is appreciated.

    The scenario for this requirement is because, user wish to have different No. Serial generate based on form they open. As std Nav No. Serial generation at table level.

    please advice if other suggestion.

    Thank you.
  • Konrad
    Konrad Member Posts: 30
    Have a look at SalesHeader table (GetNoSeriesCode, onInsert functions) and it's forms (SourceTableView property).