Announcement

Collapse
No announcement yet.

Disable Edit when status = 1 on grid

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable Edit when status = 1 on grid

    Hello All Master

    Please give me instructions how to disable the edit menu when the status in the database has become (1).
    So the user can not edit transactions that already had the satus 1

    Thx before

  • #2
    You mean an editable grid? Or do you mean the pencil containing the link to the edit form?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Originally posted by aducom View Post
      You mean an editable grid? Or do you mean the pencil containing the link to the edit form?
      The pencil containing the link to the edit form. I want to disable when status=1. How to do it aducom

      Comment


      • #4
        Look at the macro documentation for SC ...

        Try: sc_
        apl_conf("<your_app_name>", "lig_edit", "off");



        Best regards: - Reinhard -

        I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

        Comment


        • #5
          I've tried using sc_apl_conf {} with a script that I put in "onapplicationinit '

          if ({Status} = 2)
          {
          sc_apl_conf ("grid_trans_zis", "lig_edit", "off");
          }

          This works well, but added a button in the toolbar why hidden too

          note:
          I use sc v.7.01.0021
          when the script has been deleted, added button in the toolbar is not visible too
          Last edited by mumtaz; 01-13-2015, 11:05 PM. Reason: edit

          Comment


          • #6
            Originally posted by mumtaz View Post
            I've tried using sc_apl_conf {} with a script that I put in "onapplicationinit '

            if ({Status} = 2)
            {
            sc_apl_conf ("grid_trans_zis", "lig_edit", "off");
            }

            This works well, but added a button in the toolbar why hidden too

            note:
            I use sc v.7.01.0021
            when the script has been deleted, added button in the toolbar is not visible too

            Same problem in sc8, I just want to hide the pencil.

            Comment


            • #7
              so you only want to be able to delete? Then create a grid and apply a delete button in a column. Or use a run button.
              Albert Drent
              aducom software netherlands
              scriptcase partner, reseller, support and (turn-key) development
              www.scriptcase.eu / www.scriptcase.nl

              Comment

              Working...
              X