How to Programmatically remove delete options from envelope

SOLVED

Hi All

Can't find any information regarding hiding the some options on the options GRID

would like to hide the delete button if the Created user <> than the user like in the screenshot below 

  

If anyone has more detail on how to achieve this it would be great 

Kind Regards

Parents
  • 0

    If you go to

    1. the screen definition screen (Development > Script dictionary > Screens) function GESAMK,

    2. on the general tab, block section

    3. the Options field allow you to setup codes(eg KARID) to allow insertion, deletion etc. look up the codes using the selection option. 

    4. remember to save and perform validations if you change anything.

    The option can be controlled through code as well.

  • 0 in reply to JJ_Sage

    Thanks JJ_Sage, I am actually looking to block this though code. As I need to enable the delete for only certain people.

  • +1 in reply to Moomin
    verified answer

    you can lookup "status" variable in the help manual.

    when a user clicks delete, you can check validity according to your criteria and stop the deletion by using mkstat on NBLIG control subprog.

    sample help manual below

    Description and comments

    status is used to know the result of an entry operation.

    This variable is also reset to 1 after the Affzo display operation

Reply
  • +1 in reply to Moomin
    verified answer

    you can lookup "status" variable in the help manual.

    when a user clicks delete, you can check validity according to your criteria and stop the deletion by using mkstat on NBLIG control subprog.

    sample help manual below

    Description and comments

    status is used to know the result of an entry operation.

    This variable is also reset to 1 after the Affzo display operation

Children
No Data