Announcement

Collapse
No announcement yet.

How to remove/disable ADD NEW button

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

  • How to remove/disable ADD NEW button

    I think SC is very bad at the moment in managing toolbars and buttons. The customization of what goes or doesn't ho on the form/grid is very inconvenient (it exists at all). This is the part where I really would like Net Make to redesigtn the SC. For example ADD/EDIT/DELETE buttons should be fully customizable.

    Here is my question:

    I need to disable the ADD NEW button.
    I have a grid which supposed to display data with no access to any record editing.
    What is the best approach ?

    Arthur








    PS>I think this question has been asked in the past and still hasn't been answered correctly
    -----------------------------------------
    Arthur Klisiewicz
    dATA POINT SOFTWARE
    www.datapointsoftware.com

  • #2
    I think I'm missing the point here. To remove the add-new button from a grid, you just don't check the box 'add button' in creating the link. It's default off... And a grid is always read-only, or you have created an editable grid view (which in fact is a form).

    Concerning the form: you can easily remove new the button from the toolbar within the toolbar options.

    I suspect you are refering to some kind of problem but ...
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      when you remove those check marks (and the grid is within a Tab) the icons still apear on the grid (yes - I think it is a bug)!
      I wonder if there is a workaround ?

      Arthur
      -----------------------------------------
      Arthur Klisiewicz
      dATA POINT SOFTWARE
      www.datapointsoftware.com

      Comment


      • #4
        I'm probabely reading the question wrong again, but I still don't get it. Are you using a grid or a editable grid view? Screenshots?
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Im using FORM. The form uses several regions. Those regions are placed as Tabs. Each Tab has EDITABLE GRID VIEW. Reading/Editing records works fine, but there is a problem with ADD and DELETE record. The buttons simply do not show up. Wehn each editable grid view is run separately everything works fine (the buttons are visible), but when placed within the Tabs the buttons disappear. I believe this is a bug in SC6.
          I tought I could move this Project into SC7, but after converting it I cannot run it anymore, as I get errors. I posted about it, but so far nothing from NetMake and this is very frustrating.
          -----------------------------------------
          Arthur Klisiewicz
          dATA POINT SOFTWARE
          www.datapointsoftware.com

          Comment


          • #6
            There are thousands of reasons to want to dynamically enable / disable the Add New button on a grid, Aducom.

            One good example: limiting the number of records a user can add. This is desirable when, for example, selling user accounts in blocks.

            The documented way to do this is via the sc_apl_conf macro. sc_apl_conf("grid_app_name", "insert", "off") is supposed to turn off the Add New button. It doesn't, but it's supposed to. I just posted a bug report about that.

            The current workaround: add an onBeforeInsert event to the linked form that throws an error if the maximum count has been exceeded. That's a terrible fix, because the user has no idea they've hit their limit until they've filled out the form and clicked Add. SC needs to fix the macro...

            Comment


            • #7
              This is a reply on an issue years ago. If there is something not working SC should fix it, obviously.
              Albert Drent
              aducom software netherlands
              scriptcase partner, reseller, support and (turn-key) development
              www.scriptcase.eu / www.scriptcase.nl

              Comment


              • #8
                Giblet535 - do you have any update on this feature ? Dos it work at the moment or not. I need the same functionality.
                ARTHUR

                -----------------------------------------
                Arthur Klisiewicz
                dATA POINT SOFTWARE
                www.datapointsoftware.com

                Comment

                Working...
                X