Announcement

Collapse
No announcement yet.

EDIT ICON

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

  • EDIT ICON

    how can I hide edit icon on a grid ?

    ART

  • #2
    Re: EDIT ICON

    if you are refering to the pencil icon which opens the form, then maybe this will work:

    Event:
    onApplicationInit OR
    onScriptInit

    Code:
    sc_apl_conf("Application", "lig_edit", "off");
    Regards,

    Ishwor

    Comment


    • #3
      Re: EDIT ICON

      it doesn't work...

      what is : "Application" ?
      and "lig_edit" ?

      Arthur


      Comment


      • #4
        Re: EDIT ICON

        Application is the name of the application..

        "lig_edit on/off Qualifies (on) or unqualifies (off) the record edition. (the pencil icon)"

        i have used it before and it worked, i am not sure if i have used it in the grid iteslf in which you want to turn the pencil icon off..

        what i did was checked for a certain usergroup in the login and there used this macro to disable the edit icon for a grid..

        search lig_edit in the ScriptCase macros section of the webhelp and you'll find it there..
        Regards,

        Ishwor

        Comment


        • #5
          Re: EDIT ICON

          ishwor,

          I understand well what you mention, but as I can do to display or not "edit pencil" according to a defined condition, eg in the event "onrecord"

          thanks!

          Daniel, From Argentina

          Comment


          • #6
            Re: EDIT ICON

            there is no macro like: lig_edit
            at least I do not see it in HELP

            Arthur

            Comment


            • #7
              @aklisiewicz
              It is not a macro by itself. It is a property for a macro ie. sc_apl_conf("Application", "Property", "Value")

              for example: could use like : sc_apl_conf("grid_users", "lig_edit", "off");

              you can find it under the macro sc_apl_conf --> Property for Grid applications
              Last edited by ishwor; 10-19-2012, 04:17 AM.
              Regards,

              Ishwor

              Comment


              • #8
                Hi !

                @ Daniel

                I think you cannot use it (the macro: sc_apl_conf) in the onRecord event.

                The macro, according to the documentation can be used on the following events in the grid app:
                onApplicationInit
                onClick
                onScriptInit
                Regards,

                Ishwor

                Comment

                Working...
                X