Skip to main content

Block reopen work orders to certain users

Answered

Comments

6 comments

  • Andreas von Arx

    Hi Yesid

    It would be quite simple to do through BEAS Script for the opening of orders only for particular users. But I would not recommend changing a logic to allow posting to closed orders.

    Just check for the windowevent reopenworkorder (if you are on the workorderscreen)

    Kind regards
    Andreas

  • Yesid Lopez

    Good Morning

    How can I make this lock, reopen orders, enter workpieces? The objective is that to orders already closed nothing is entered.

    Kind regards

     

  • Martin Heigl

    Hi, 

    sorry - long time ago

    Reopen is only possible in the work order position edit window

    Here you can insert follow customisation (Crtn+N+U)

     

    global function dw_master_item_button_open_click
    // in this example only user manager can reopen the work order
    if <system.user> <> "manager" then
      messagebox=not allowed to reopen work order
      return -1
    end if
    end global

     

  • WuPingHsien

    Hi

    I tested this script
    It is found that although the warning pops up, the work order can still be opened...

  • Martin Heigl

    on my side it's working fine. Can you insert the debug log ?

Please sign in to leave a comment.