2 Replies Latest reply on Apr 14, 2015 1:30 PM by karen_joy

    Delete Script

    karen_joy

      Title

      Delete Script

      Post

      Hi All,

      Can you please help me to make my script for my delete button into work.

      The script is below:

      Get(AccountPrivilegeSetName)  ≠ "Full Access"

      Show Custom Dialog ["You dont have enough privilege to perform this action"]

      Exit Script

      Else

      Allow user abort [Off]

      Show Custom Daalog ["You are about to delete this record"]

      If [Get ( LastMessageChoice ) = 1

      Show Custom Dialog ["Deleteion of record aborted"

      End If

      End If

       

      Thank you

       

       

        • 1. Re: Delete Script
          philmodjunk

          Changes are in red:

          If [Get(AccountPrivilegeSetName)  ≠ "[Full Access]"]
             Show Custom Dialog ["You don't have enough privilege to perform this action"]
             Exit Script
          Else
             Allow user abort [Off]
             Show Custom Dialog [
          "You are about to delete this record"]
             If [Get ( LastMessageChoice ) = 1 // OK was clicked ]
                Delete Record [no dialog ]
             Else
                Show Custom Dialog ["Deletion of record aborted"
          ]
             End If
          End If

          • 2. Re: Delete Script
            karen_joy

            Thanks Again Phil...yes