Announcement

Collapse
No announcement yet.

How to disable 'detail' app access when no access granted?

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

  • How to disable 'detail' app access when no access granted?

    I have a master/detail apps.
    And i also prepare a user who has access to the 'master' app and not the 'detail'

    How come when i access the 'master' app, i can stil access the 'detail' apps where i have no access?

    Below is my working doc
    https://docs.google.com/document/d/1...it?usp=sharing


    Thanks for your comments.

  • #2
    Access is granted on the highest level, that is from the menu level. So if you have a master-detail the detail is considered to belong to the master. So if you have access to the master you have access to the detail. You need to create a master-only page.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      another sad news i got from SC

      i hope SC developer can hear me and provide such enhancement, which to make 'detail' app recognize the security as well rather just based on master app

      Comment


      • #4
        is there any macro can retrieve what are the 'detail' app for the master app?
        i am hoping to customize and hide the detail app if no access to them.

        anyway to achieve this?
        Last edited by weilies; 08-17-2014, 10:39 AM.

        Comment


        • #5
          Reason i need this feature so desprately is because i wish to push SC to the limit and cater for following scenario

          "I have a Master Employee app, it has detail apps (Job detail, Person detail, compensation, misc setup)"
          Senior HR - can access Job, Person, Compensation
          Junior HR - can access Job, Person
          Compensation Manager - can access Job, Person, Compensation
          SuperAdmin - all detail apps

          And i also have a plan to MOD SC so it accept multiple security 'Group' instead of just one
          It's tedious to make each of them as a seperated master app. (hope it's not the only workaround...)

          Comment


          • #6
            Originally posted by aducom View Post
            So if you have access to the master you have access to the detail. You need to create a master-only page.
            No, look at sc_block_display(<block_name>, off) ...
            Best regards: - Reinhard -

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

            Comment


            • #7
              Hi Weilies,

              I also would like that it would be possible to switch off the display of a page. At the moment it is the only possibility to switch of the block, as Reinhard mentioned, or having the same form twice, one time with, the other without the 'secret'-page.

              The option to switch off the block will show a blank page to the ones, who are not allowed to access. This always will make them ask what is on that page

              BR

              Eric

              Comment


              • #8
                Originally posted by EricB View Post
                The option to switch off the block will show a blank page to the ones, who are not allowed to access.
                No, i have not a blank page with sc_block_display(<block_name>, off). Only the space between two tabs is marginal larger.
                Best regards: - Reinhard -

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

                Comment


                • #9
                  @RHS afaik a master detail is something else then having a block of data... The detail is a separate app running in an iframe in a master-detail relationship..
                  Albert Drent
                  aducom software netherlands
                  scriptcase partner, reseller, support and (turn-key) development
                  www.scriptcase.eu / www.scriptcase.nl

                  Comment


                  • #10
                    Albert, i have as example five master/detail forms (one master, five details). The details arranged with/in tabs. And this tabs i can show / not show with sc_display_block().
                    Best regards: - Reinhard -

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

                    Comment


                    • #11
                      I know the show hide block feature, that's why I need a macro to list out all the detail app, then by passing in master app name, I will be able to tell which detail app is accessible and trigger a show/hide detail.

                      But again, I can't find such macro

                      Comment


                      • #12
                        Senior HR - can access Job, Person, Compensation
                        Junior HR - can access Job, Person
                        Compensation Manager - can access Job, Person, Compensation
                        SuperAdmin - all detail apps
                        Here is an example as Reinhard suggested!
                        Configure your detail blocks as tab.

                        In the onLoad event of your master.

                        Code:
                        switch([v_group])
                        {
                            case 'Junior': //or whatever your group-id is
                                sc_block_display(misc,off);
                                sc_block_display(compensation,off);
                                break;
                            case 'Compensation':
                            case 'Senior':
                                sc_block_display(misc,off);
                                break;
                        //  you can add as many cases as you need/want.
                        }
                        No need for a macro, it's all there.

                        jsb

                        Comment


                        • #13
                          I don't want to be the grumpy old man, but does that give you empty tabs? Then it would be an ugly option. But I never tried that. Or does it make a tab disappear?
                          Albert Drent
                          aducom software netherlands
                          scriptcase partner, reseller, support and (turn-key) development
                          www.scriptcase.eu / www.scriptcase.nl

                          Comment


                          • #14
                            No empty tabs, disabled tabs aren't shown at all. I use it all the time.
                            As Reinhard mentioned the gap between visible tabs (if you have disabled tabs in between) is a fraction wider.

                            Comment


                            • #15
                              Originally posted by jsbinca View Post
                              Here is an example as Reinhard suggested!
                              Configure your detail blocks as tab.

                              In the onLoad event of your master.

                              Code:
                              switch([v_group])
                              {
                                  case 'Junior': //or whatever your group-id is
                                      sc_block_display(misc,off);
                                      sc_block_display(compensation,off);
                                      break;
                                  case 'Compensation':
                                  case 'Senior':
                                      sc_block_display(misc,off);
                                      break;
                              //  you can add as many cases as you need/want.
                              }
                              No need for a macro, it's all there.

                              jsb
                              Is there a way to retrieve 'detail' apps which tagged to a master app by passing in master app name?
                              E.g.
                              sc_get_detail_app('PersonMaster')
                              return array
                              [0] - PersonAddress
                              [1] - PersonPhone
                              [2] - PersonOtherTable...

                              Comment

                              Working...
                              X