Cfloginuser - roles of object permission.  Array?

Hello, wonderfully helpful people!
Imagine a project that involves a corporate structure. Some
users can only see themselves, some users can see one (or many)
departments, and maybe an extra user or two. Some users can see
everything. Etc.
Now, expand this to include many corporations, each with
their unique corporate structures, and a single person has access
over (seemingly) arbitrary objects within multiple corporations.
Basically, the user's permission is at the object level;
there's not a *role*. And, to add a little extra fun, I do not know
all the objects involved - it's dynamic -, and those objects do not
have a unique id amongst themselves.
What I would like to put into roles is a list of lists; a
list of each object type, containing the ids for that object that
the user has access to. Perhaps the first value is the object type,
and the rest are the ids. Example:
{1,12,13},{2,12,52},{3,12,42}
I'm currently doing a workaround to make the list like, in
order to be able to use the IsUserInRole and whatnot (though it's a
bit tedious):
1_12,1_13,2_12,2_52,3_12,3_42
So:
1. has anyone else dealt with object-level permissions using
cflogin? How did you do it?
2. what suggestions might you make to improve this?
Thank you in advance! Surely there's a better way to do this.
Best wishes,
Cat

Sorry no good tutorials, I've mostly figured it out by trial
and error.
I find that security schemes tend to be very personally and
vary
wildly from application and organization to another.
The basic concept is a CFC that stores the relevant
information and the
appropriate functions to retrieve this information in the
desired
format. A big question is do you want this cfc to be aware of
the user
information store(s) or to have that factored out into
another layer.
For easy of readability I'll provide the basic skeleton of a
CFC that is
not aware of the data store but the roles are passed in. I
have also
built this such that by just passing in a user ID the
component
generates all the user data.
<cfcomponent name="User Object">
<cfscript>
variables.name = "";
variables.roles = structNew();
</cfscript>
<cffunction name="init" ...>
<cfargument name="name"...>
<cfargument roles="" ...>
<cfscript>
variables.name = arguments.name;
variables.roles = arguments.roles;
</cfscript>
</cffunction>
<cffunction name="getName"...>
<cfreturn variables.name>
</cffunction>
<cffunction name="getRoles"...>
<cfreturn variables.Roles>
</cffunction>
<cffunction name="isUserInRole"...>
<cfargument name="role"...>
<cfreturn
structKeyExists(variables.roles,arguments.role)>
</cffunction>
</cfcomponent>
This is extremely bare bones and will need considerable
fleshed out but
it should give you an idea.
Then you just replace the <cfloginuser.... line with a
createObject()
function or <cfinvoke...> tag to call this CFC init
function passing in
the required arguments. And call thisObj.isUserInRole where
you are
calling isUserInRole().

Similar Messages

  • There is no iView available for system "SAP_SRM": object "Permission".

    Hi All,
    We have portal ( SAP 7.01 SP3 patch level 3) as the front end for SRM 7.0 ,We have integrated SRM with portal through the system alias SAP_SRM.
    When RFx Approver click on u201Cpermissionu201D button in u201CPurchasingu201D -> u201CSourcingu201D-> u201CRFx Numberu201D-> u201CDisplay RFxu201D he is able to see the permission iView where he can assign technical evaluators. But when same Approver click on u201CPermissionu201D button in  u201CStrategic Purchasingu201D ->u201DWork Overviewu201D in Alert tab or Task tab( Display RFx page )  is throwing the following error:
    "There is no iView available for system "SAP_SRM": object "Permission". For more information, contact your administrator."
    I searched in SDN forum and got few solutions and did as they suggested but my problem not yet solved.
    those are:
    1.     Assign Target iView (Permission iView) in  u201CNavigationu201D folder of respective Role (Strategic Purchase)
    2.     Make sure system Alias name as SRM_SRM.
    3.     Make sure user mapping status should be ok in System Alias Editor.
    4.     Should add u201CEveryoneu201D group in permission editor of System Object and make sure select u201CEnduseru201D check box and u201Cadministratoru201D as Read or full control(I selected Full control).
    5.     Add u201CEveryoneu201D group in permission editor of u201Ccoreu201D folder of SRM7.0 folder.
    6.     Add u201CEveryoneu201D group in permission editor of u201CPermissionu201D business object.
    7.     Check the target iViews in respective Business Object (in my case u201CPermissionu201D).
    8.     I updated latest patches (patch level 9) as said in SAP note: 0001386141
    Anybody knows solution for this problem please let me know. Encourage point will be given to useful postingu2026
    Thanks and Regards
    siva

    Hi Deepti,
    Thank you very much for u r quick reply.
    I didnu2019t create any custom roles for RFx in Portal side and SRM side also; we are using standard roles provided by SAP. I checked all the iViews which are needed for the Role (in this case u201CStrategic Purchaseu201D role) those are existed in u201CNavigationu201D folder. Should I create custom role and have to assign required iViews to that to rectify this problem?
    Thanks and Regards
    siva

  • Roles and Object queries tab not visible in MBO attribute properties

    Hi,
    We have installed the SUP Personal developer edition 2.0 on a windows 2008 server. I am trying to create a sample application for getting the list of sales orders by using the SAP BAPI. Once I have the MBO in place, I see that I cannot view the 'Roles' and 'Object Queries' tabs in the 'Attributes' section of the MBO properties.
    Does anyone know why this happens? Is it due to configuration issues? Do help me out as we're trying to get a demo working.
    Thanks & Regards,
    Vaishnavi

    Hi Vaishnavi,
    Check whether you have selected "Advanced" mode . You should be able to see it.
    Regards,
    Viju

  • Configure security-role and method permission for EJB 3.0 using Jdev 11g

    The EJB 3.0 session bean created by Jdev 11g EJB wizard does not have ejb-jar.xml. Where and how can security-role and method permission for the EJB be configured?
    For example,
    <assembly-descriptor>
    <security-role>
    <role-name>managers</role-name>
    </security-role>
    <method-permission>
    <role-name>managers</role-name>
    <method>
    <ejb-name>Employees</ejb-name>
    <method-name>setSalary</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </method>
    </method-permission>
    </assembly-descriptor>

    user516954,
    By default annotations are used. However, you can create a new descriptor and that will take presidence over any declared annotation.
    --Ric                                                                                                                                                                                                                                                                                                                               

  • Table for maintaining roles & their  objects

    Hi,
    My requirement is to display the roles and object which are under the roles based on the username. Please tell me the table names where these roles are stored and their objects , activity and description .
    Regards,
    Ramprasad

    Hi,
    You can find the detials in the table
    " USAGR-AGR_NAME"
    or
    "AGR_USERT"
    "AGR_SELECT
    AGR_TCDTXT
    AGR_TCODE3
    AGR_TCODES
    AGR_USERS
    AGR_USERT
    AGR_1250
    Hope it helps you out
    Thanks & Regards

  • About Class Object  as Array

    Hello.. I'm beginner in Java Programming
    Now i learn about Array.. i'm not understand about use class object become array. for example i'm create class object Card.
    Then i call Card object to CardTest as main object and Card object called as array.
    can you tell me about how to work Card object as array in CardTest ?
    Edited by: 994075 on Mar 14, 2013 11:55 PM

    994075 wrote:
    yup..thanks guru :DI'm no guru, I just bought a decent Java book 10 years ago and here I am.
    so i guess Object Class can be array :).I don't get that statement. You can store objects in an array, if that's what you mean. An array itself is also an object.
    but i'm not understrand if static method in Card object can be called automatically when Card initialized in CardTest?a) research constructors
    b) you usually don't need static methods, its just something that people new to the language tend to overuse because then you don't have to create object instances. Forget about static methods, try to make it work using regular non-static methods.
    And you really should read and study more, you're coming to the forum way too soon. First get a solid knowledge base, the only thing you're doing now is asking questions that you could have answered for yourself by studying more.

  • Please help with geometric objects in ARRAY...........

    I am facing a programming issue here;
    I am supposed to create an array of circle objects of random dimensions.
    Next, I am supposed to check each circle and make sure it does not intersect with any other circle in the array. If it does, I am expected to remove the circles that intersect with it from the array. I have found this technique more feasible, but in the question, it is suggested to check for intersection before the circle is added to the array. To quote "Check that the new circle does not intersect a previous one. You will need to iterate through the array list and verify that the current circle does not intersect with a circle in the array list. Add the circle to the array list if it does not intersect with another one." For some reason, I think my approach is more feasible. But feel free to differ.
    Then, I am supposed to draw the circles.
    The program compiles but when it is run, only one circle is drawn.
    Any advice would be appreciated, and as before thank you in advance.
    import java.util.Random;
    import java.awt.geom.Ellipse2D;
    import javax.swing.JComponent;
    import java.util.ArrayList;
    import java.awt.Graphics2D;
    import java.awt.Graphics;
    public class CirclesComponent extends JComponent
    public CirclesComponent(int numberCircles)
          NCIRCLES = numberCircles;
          circles = new ArrayList<Ellipse2D.Double>();
          final int XRANGE = 292;
          final int YRANGE = 392;
          final int RRANGE = 20;
             generator = new Random();
             double x = generator.nextInt(XRANGE) + 1;
             double y = generator.nextInt(YRANGE) + 1;
             double r = generator.nextInt(RRANGE) + 1;
             double w = 2 * r;
             double h = 2 * r;
             for (int i = 1; i <= NCIRCLES; i++)
             Ellipse2D anEllipse = new Ellipse2D.Double(x, y, w, h);
             circles.add(anEllipse);
          Test if two circles intersect.
          (distance between centers is less than sum of radii)
    public void circlesIntersect()
              Ellipse2D zeroEllipse = (Ellipse2D)circles.get(0);
               for (int v = 1; v <= circles.size(); v++)
                   Ellipse2D anotherEllipse = (Ellipse2D)circles.get(v);
                         double radius1 = zeroEllipse.getWidth() / 2;
                         double radius2 = anotherEllipse.getWidth() / 2;
                         double dx = zeroEllipse.getX() + radius1 - anotherEllipse.getX() - radius2;
                         double dy = zeroEllipse.getY() + radius1 - anotherEllipse.getY() - radius2;
                         double distance = Math.sqrt(dx * dx + dy * dy);
                         if (distance < radius1 + radius2)
                         circles.remove(v);
       public void paintComponent(Graphics g)
          Graphics2D g2 = (Graphics2D) g;
          for (int z = 0; z < circles.size(); z++) // iterate through every circle in the list
          g2.draw((Ellipse2D)circles.get(z)); // draw the circle
       public void getRejection()
           System.out.println("The percentage of rejected circles is " + ((circles.size() / NCIRCLES ) * 100));
           System.out.println("The size of the array is " + (circles.size()));
       private int NCIRCLES; 
       private ArrayList circles;
       private Random generator;
    import java.util.Scanner;
    import java.awt.Graphics2D;
    import java.awt.Graphics;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    public class CirclesTester
    public static void main(String[] args)
          Scanner thescanner = new Scanner(System.in);
          System.out.print("How many circles do you want? ");
          int totalCircles = thescanner.nextInt();
          CirclesComponent theCircle = new CirclesComponent(totalCircles);
          theCircle.getRejection();
          JFrame frame = new JFrame();
          frame.setSize(300, 400);
          frame.setTitle("Non-Intersecting Circles");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.add(theCircle);
          frame.setVisible(true);
    }

    homebrewed wrote:
    I am supposed to create an array of circle objects of random dimensions.
    Next, I am supposed to check each circle and make sure it does not intersect with any other circle in the array. If it does, I am expected to remove the circles that intersect with it from the array. I have found this technique more feasible, but in the question, it is suggested to check for intersection before the circle is added to the array. To quote "Check that the new circle does not intersect a previous one. You will need to iterate through the array list and verify that the current circle does not intersect with a circle in the array list. Add the circle to the array list if it does not intersect with another one." For some reason, I think my approach is more feasible. But feel free to differ.Gladly. It is much simpler to iterate over a List and check if the new circle is valid than to iterate over a List and remove those circles that make the new circle invalid. Note that the code you have now will skip items in the list when a circle is removed.
    Then, I am supposed to draw the circles.
    The program compiles but when it is run, only one circle is drawn. And why is that? Is it only drawing one of the circles? Is it drawing all the circles but they're all the same circle? Does your list only contain one circle?
    You need to run your program in a debugger or add println() statements to output your program state at important points along the execution path.
    Once you figure out why you're only getting one circle, it becomes much simpler to figure out how it happened.

  • Finding objects in arrays, adding to a temp array and replace old with temp

    hi, I am currently modifying a hand analyser for a poker game. imagine a hand of a set of cards that can be from 5 up to whatever the game instructs, the analyser then has to match the hand to the rankings of best hands. so it has to map the hand to these possible besthands..
    Royal Flush (A,K,Q,J,10 of same suit)
    Straight flush(a running rank of same suit)
    4 of a kind(er... 4 of the same rank)
    full house(3 of a kind and a pair)
    flush(all same suit)
    straight(a running rank, A,2,3,4,5...,K)
    2 pair(a pair and a pair)
    1 pair(a pair)
    and a high Card(the highest card in a hand)
    the hand is sorted in ranks and suits to check for straights and flushes, and i have used a for loop to find any pairs, trips and quads for a hand. the problem i am having is the checking of two pairs. here is the loop i am using
    Hand temp = new Hand();//creates a temporary hand to place the matching cards into. hand is an array of cards.
          for (int i = 1; i < cards.size() - 1; i++) {//cards is the hand passed to be checked for two pairs
            if (cards.getCard(i).getRank() == cards.getCard(i + 1).getRank()) {
             /*checks if the card in i is the same as the next card, if true,
                then adds it to the temp hand.*/
              temp.addCard(cards.getCard(i));
              /*once the cards are passed to the temp hand,
                 it is removed from the cards hand.*/
              cards.removeCard(i);     
              temp.addCard(cards.getCard(i));
              cards.removeCard(i);
              System.out.println(temp + "check twopair");
              /*just a check to see if they are passed and removed from those hands
                 -- these work the first time around*/
              System.out.println(cards + "check remaining best hand");
            else if (temp.size() == 4) {
                /*if the temp hand as 4 cards, it means there are 2 pairs found,
                   it adds the next card in the cards hand as the kicker. since cards
                   is ranked by value, it will choose the highest card*/
              temp.addCard(cards.getCard(i));
    //a check to see if the card has been added to the hand
              System.out.println("adds the kicker to the 2 pair");
            if (temp.size() == 5) {
    //once the best cards have been dealt into temp, it is passed back to the hand, cards.
              kicker = (Card)temp.getCard(4);
              cards = temp;
              return true;
           /*if the check finds that there is no 2 pairs in the hands, the cards are set
              back to the original cards, and sorted by rank and passes over to the
              next test, which should be the check one pair*/
          cards = new Hand(originalCards);
          sortbyRank();
          return false;the loop finds the first pair alright, but coming around the second time, it doesnt seem to pick up on the second pair.
    in an example, consider a 7 card hand being passed to this analyser..
    3d, 7h, Ac, 3h, 6h, 7s, Kd. this gets sorted into ranks and become Ac, Kd, 7s, 7h, 6h, 3d, 3h. the first check would be the royal flush - lets ignore the way it works, and it fails anyway because the hand doesnt hold a royal flush, similarly, all the other tests will fail, from straight flush, 4 of a kind, full house, flush, straight, 3 of a kind and then we get to 2 pairs. in the first instance the loop will check Ac == K, it fails, and checks if the temp hand has 4, it fails and goes to i =2. it will check K to 7, fail and go to i = 3, 7h matches 7s, so puts that to temp, temp now equal 2, but not 4, so loops. this is where i messes up. it doesnt pick up the two pairs of 3s. any suggestions?

    I've never played poker so I had to look carefully at your question. This resulted in the following table. This suggests to me that any attempt at simplification will not be easy so I think I would have an analyser object with nine methods returning a boolean as to whether each test had been met. This seems a cleaner approach although it may be less efficient than your own.
                                                  Same   Same   Rank
                                                  Suit   Rank   Seq
    Royal Flush (A,K,Q,J,10 of same suit)           Y             Y
    Straight flush(a running rank of same suit)     Y             Y
    4 of a kind(er... 4 of the same rank)                  Y
    full house(3 of a kind and a pair)             0.5    0.5
    flush(all same suit)                            Y
    straight(a running rank, A,2,3,4,5...,K)                      Y
    2 pair(a pair and a pair)                              Y
    1 pair(a pair)                                         Y
    and a high Card(the highest card in a hand)

  • Objects in Array / ArrayCollection with FlowLayout

    I am pretty baffled by what is happening here:
    I am attempting to create an array of visual elements/containers (s:Group, to be precise), and each Group will contain a set of Labels as elements.
    I've tried using both Array and ArrayCollection but am having a problem.
    It seems to work okay if I simply use groupsArray:Array and do something like:
    for (var i:int=0; i<totalGroups;i++) {
         (for var labelNum=0;labelNum<maxLabels;labelNum++) labelGroup.addElement(someLabel);
         groupsArray[i] = labelGroup;
    When I add groupsArray[1] as a Panel element, the labels show up... the problem is, they are all stacked right on top of each other.
    So what I need to do is be able to set Group.x, Group.y, Group.width, Group.layout, etc.
    But when I try to do this, nothing shows up in the group.  What's more baffling is that something WILL show up okay for the final group in the queue, but not any of the others... only the last index in the array; I'm trying to set the properties using:
    groupsArray[i].width = 300;
    I thought maybe I could fix it by using an ArrayCollection, creating each group (with properties), and then using groupsArray.addElement(myGroup) and groupsArray.getItemAt(index)... but none of this seems to work...
    The thing that confuses me the most is: (1) i'm getting no compile or runtime errors; and (2) the correct group and its label children show up fine (with x, y, width, and layout correct) for the very last item in the array, but none of the others...

    here's a basic example:
    var groupArray:ArrayCollection = new ArrayCollection();
    var groupLayout:HorizontalLayout = new HorizontalLayout();
    for (var i:int=0;i < 10;i++) {
    var pageGroup:Group = new Group();
    pageGroup.x = 60;
    pageGroup.y = 60;
    pageGroup.width = 300;
    pageGroup.layout = groupLayout;
    // parse through XML file for the page and for each word, insert it as a clickable text object
    for (var x:int=0;x < 20; x++) {
         var wordLabel:Label = new Label();
         wordLabel.text = "word"+x.toString();
         pageGroup.addElement(wordLabel);
    groupArray.addItem(pageGroup);
    // tests:
    groupPanel.addElement(groupArray[1]); // shows nothing inside Panel
    groupPanel.addElement(groupArray[9]); // displays the Group (ie. all children labels) correctly inside Panel, with HorizontalLayout working
    // I have also tried: groupPanel.addElement(groupArray.getItemAt(1));
    // which gives compile error 1118: Implicit coercion of a value with static type Object to a possibly unrelated type mx.core:IVisualElement.
    <s:Panel id="groupPanel" />

  • Object in array list

    Is it possible that object can be store in array list.
    package{
    // Importing object from flash libary
        import flash.text.TextField;
        import flash.display.Sprite;
    // Creating class
         public class Show extends Sprite {
         //Attribute
        private var txt:Array = new Array();
         // Constructor 
           function Show()
                   txt[0]:TextField =  new TextField();
                     addChild(txt[0]);
                     txt[0].width=320;
                     txt[0].height=25;
                     txt[0].x=0;
                     txt[0].y=0;
                     txt[0].border=true;
                   txt[0].text="nepalikto";
    Error
    Description : Label must be a simple identifier
    Location : Above orange textcolor line

    Not sure if this all is 100% technically correct but:
    You only use datatyping if you actually create a variable. Like:
    var myArray:Array = new Array();
    if you do not declare the var with the var keyword, you can't use datatyping either.
    // this is wrong
    myArray:Array = new Array()
    It is good practice to use datatyping whenever possible since it can help you debug an application:
    Flash finds the possible errors in code where one variable contains different datatypes at different times which can be confusing
    Flash helps with the codecompletion feature once a variable is typed so there's less chance of typos.
    The items in the array, unlike CS4's new Vector datatype aren't typed. Probably has some memory usage reason in the onderlying C++ code but I'm not sure. If you have CS4 you could possibly use:
    var txt:Vector.<TextField> = new Vector.<TextField>();
    To tell you the truth I haven't used the CS4 Vector Datatype so I'm not sure if aside from faster code execution there's errorcheckings on it's contents like mentioned above.
    Hope this helps some

  • Objects within arrays

    I have a problem.
    I created a class called Fuzzy and within that class there is a method called setName.
    I want to store objects of Fuzzy in an array so I used the following code (in a new class)
    Fuzzy[] names = new Fuzzy();
    int num = 0;
    String n = "Hello";
    names[num].setName(n);
    When I do this, it compiles correctly but at runtime I get a nullpointer exception. If I just do e.g. names.setName(n) then it works without a problem.
    Can someone help? Many thanks.

    What you have posted here could not possibly have compiled.
    First of all, you declared a reference to array of Fuzzies, and then you assigned the reference a Fuzzy. This is illegal. You have to use the right syntax, as well as tell it how many Fuzzies you want in the array.
    If you want to create an array that can hold 2 Fuzzies, you could do:
    Fuzzy [] arrayOfFuzzies = new Fuzzy[2];Now, even at this point, you have an array that could hold 2 Fuzzies, but right now it holds 2 null references. In other words:
       arrayOfFuzzies[0] == null
               and
       arrayOfFuzzies[1] == null
    */If you want to use a Fuzzy that's in the array, you have to put the Fuzzy in the array in the first place:
    arrayOfFuzzies[0] = new Fuzzy();
    arrayOfFuzzies[1] = new Fuzzy();Now you can work with the Fuzzies in the array (as long as you stay within the bounds of the array):
    arrayOfFuzzies[0].setName( "Wuzzy" );
    arrayOfFuzzies[1].setName( "Bear" );If you want to create the 2 Fuzzies and the array at the same time, you can do the following:
    Fuzzy [] arrayOfFuzzies = { new Fuzzy(), new Fuzzy() };

  • Audit tool which generates Users, Roles, Auth objects, and Values

    Hi,
    I have a list regarding authorization provided by auditors.
    Here I want to know how the auditors generated the list.
    Do you know the transaction code or the program ID.....?
    Probably the data in the list was extracted from our system, and some data were manually processed or added.
    Hard to write down but fields and examples appear in the list;
    -FIELDS-
    User
    Group
    Full Name
    Rule
    Side
    Operator
    Role
    Authorization
    Attribute
    Attribute Value
    Associated Role
    Associated Authorization
    Associated Attribute
    Associated Attribute Value
    -EXAMPLES-
    testuser01
    group001
    user01 test
    Create Maintain Sales Order vs Create Maintain Customer Master Records
    LHS
    Any
    Z_ROLETEST_001
    Authorization=T-D524126500, Object=S_TCODE
    TCD
    FB01
    Z_ROLETEST_002
    Authorization=T-D524126600, Object=F_BKPF_BUK
    ACTVT
    1
    Thank you in advance.
    /Y.Shirako

    > Install ABAP on your system which provides files for them to crunch in an SQL (or similar) database.
    > Tool extracts data via RFC calls into your system that is then processed externally.
    Yes, the interfaces of those tools are often a hazard in themselves...
    I typically recommend customers to delete them completely. Sometimes this comment also exists in the code itself, but who reads code now-a-days in GRC projects, and why should they have to? ;-(
    This looks very much like one of those tools (where the SQL statements are built externally).
    Cheers,
    Julius

  • Passing object reference array to a method

    Hi everyone,
    I'm new to the java programming language. I want to create create a array of 50 objects and pass them in to a method in other class.
    Can anyone help me on this problem........................
    Chathu.

    Object[] objectArray = new Object[50];
    objectArray[0] = "Hello World";
    objectArray[1] = new Integer(42);
    myClass.myMethod(objectArray);

  • VBA: problems in creating and storing objects in array with loop

    I created a Class named Issue. Then I created a function that creates Issue objects, set their properties with data from a worksheet and store them into a variant array through a loop. the problem is that everytime that the loops runs it overwrites the properties
    of the same object instead of creating a new object, setting its properties. Would anyone know how to solve that? The loop code goes below:
     'Stores all the Issues objects in an Array
    Function StoreAllIssues() As Variant
    Dim IssuesSheet As Worksheet
    Set IssuesSheet = Sheet1
    Dim intLastRow As Integer
    intLastRow = Uteis_Jorge.LastRowFunc(IssuesSheet, 1)
    Dim IssuesArray() As New Issue: ReDim IssuesArray(0)
    For i = 2 To intLastRow
        Dim MyIssue As New Issue
        MyIssue.IssueName = IssuesSheet.Cells(i, 1)
        MyIssue.Suggestion = IssuesSheet.Cells(i, 2)
        MyIssue.Priority = IssuesSheet.Cells(i, 3)
        MyIssue.Resolution = IssuesSheet.Cells(i, 4)
        MyIssue.JobStatus = IssuesSheet.Cells(i, 5)
        MyIssue.AssignedTo = IssuesSheet.Cells(i, 6)
        Set IssuesArray(i - 2) = MyIssue
        ReDim Preserve IssuesArray(i - 1)
    Next i
    ReDim Preserve IssuesArray(i - 3)
    StoreAllIssues = IssuesArray
    End Function
    Jorge Barbi Martins ([email protected])

    Hi Jorge,
    You can set the MyIssue to Nothing every time you don't use the MyIssue object, in this way, the array will properly store the new MyIssue object:
    For i = 2 To intLastRow
    Dim MyIssue As New Issue
    MyIssue.IssueName=IssuesSheet.Cells(i,1)
    Set IssuesArray(i - 2) = MyIssue
    ReDim Preserve IssuesArray(i - 1)
    Set MyIssue = Nothing
    Next i
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Org Level Roles / Authorization Object Roles

    Hi board,
    I have heard of the concept to use roles with "Organizational Values" only and no other authorization values contained. Similar the idea to exclude special authorization objects from common roles and combine them in dedicated special ones to prevent accidential "double usage".
    The first may help to control the overall number of roles coming up after deriving single/composite roles for many levels.
    My questions are:
    - Is it technically feasible (for a large-scale company)?
    - What is your experience?
    - Drawbacks?
    Kind regards and many thanks for your help,
    Richard

    Richard Hösl wrote:
    > Hi there,
    >
    > that was fast, amazing. Thanks a lot and my appologies for not finding the other thread from the beginning. I can see drawbacks, nevertheless it is still temptating due to the fact that derivation for over 30 countries will produce a huge number of roles. Not from the system performance point of view, just to handle this amount will be painful. 
    >
    > Given the assumtion that it is not a good idea to use "Org Value Roles", are you deriving on on composite or on single level?
    >
    > Kind regards,
    >
    > Richard
    Hi Richard,
    It is a very tempting approach, but completely wrecks the standard auth concept and unless you are 100% tight on controlling it, can get very messy.
    A good way of looking at it is that you have 2 roles - one contains transactions & the other one a big bucket of authorisations which support those transactions.  That bucket invariably contains more authorisations than the transactions require.  Given that it is at the authorisation object level that the important security is provided, this method has it's drawbacks........
    If you have organisational complexity then you should look elsewhere to simplify. 
    By consolidating your roles (e.g. if we take a risk based design approach, typically around 80% of an accountants role will be the same anywhere in the business) and building at a higher level, you need to create fewer variants (which you might be able to use derived roles for).
    Put the effort in the design stage and it will pay dividends later on down the line. 
    Building at a higher level than task also forces the business to look at roles and responsibilities and to standardise as much as possible.
    Cheers
    Alex

Maybe you are looking for

  • Some notifications don't appear in Notification Center

    I've been wondering about this for some time. I pressed the home button on my iPhone to wake it up and saw a quick glimpse of a number of notifications, including some from Twitter, Facebook, etc. This got my curiosity up. However, Touch ID kicked in

  • Read-Only Problem during Boot

    Hi, I tried to update my system today, like every week, with the standard command pacman -Syu. After installing all updates, my window manager (gnome3) crashed and i tried to restart my System. After the grub window appeared and I choosed my kernel t

  • Process Flow of Events in ABAP Report

    Hi every one,                       Could some body explain about each and every event how and when it trigerrs. I am always confusing with these events. Plz tell me abt all the Driver events, User Events, Program events how they are Trigerred . Expl

  • JFrame background color

    I have a JFrame and I'm setting the background color in the constructor: frame.setBackground(Color.green); The frame opens up, and the background color flashes green for an instant, then it goes back to grey. What am I missing? Do I have to set the b

  • HT204022 How do you reset photo stream?

    The default setting in iphoto has pushed my entire photo library to the could. Or atleast attempted to. I stopped it before all 30k pictures were uploaded. The problem now is when I turn photo stream back on in icloud it is trying to download 4,300 p