Adding Objects to Vector

Hi,
I have a class that has two private variables:
private String tableName;
private Vector iffields;
The vector is supposed to be filled with objects of
another class called DIFField.
How can I write a method that adds DIFFields to this
iffields Vector in a way that they all don't refer to
the same Object??
e.g.
in my main code I do: DIFField afield = new afield("blabla","blabla");
afield.setCode("111");
afield.setSign("+");
I want to keep using that same afield (in a loop) for adding new
fields to the iffields vector. I could do this if I could set everything
in the constructor, I know that, but that's something that's not possible. (otherwise: iffields.addElement(new DIFField("blabla","blabla");)
Can anybody help me??
Regards,
Sven

How can I write a method that adds DIFFields to this
iffields Vector in a way that they all don't refer to
the same Object??The only way to do that, ie, the normal way, would be to use the new operator and contruct each object within your loop. You can still use the same variable name, no problem there.
I could do this if I
could set everything
in the constructor, I know that, but that's something
that's not possible. (otherwise:
iffields.addElement(new DIFField("blabla","blabla");)What do you mean that is impossible? Have you tried instantiating your DIFField, calling the methods, then adding it to the vector?
for( int i = 0 ; i < 5 ; i++ )
   DIFField df = DIFField( "foo", "bar" ) ;
   df.setCode( "111" ) ;
   df.setSign( "+" ) ;
   iffields.addElement( df ) ;
}

Similar Messages

  • Adding objects to Vectors

    I am currently working for the first time with Vectors and don't seem to be able to get my head around something:
    I want to store an undefined amount of "Line" objects in my vector. So what I tried is this:
    Vector vecLines = new Vector();
    vecLines.add(new Line(myLine,lineNum,vecTokens));
    But I get a runtime error message with a "NoClassDefFoundError: Line" for that code.
    If the syntax above is not correct, can somebody tell me where I went wrong in my thinking?
    Thanks!

    Yeah, I wrote it myself. Can't see an error in the class. It also compiles correct.
    This is the code for the file called "Line.java":
    import java.util.*;
    import java.io.*;
    public class Line
    String myWords;
    int myNum;
    Vector allWords;
    public Line(String thisLine, int lineNum, Vector wordVector)
    myWords = thisLine;          
    myNum = lineNum;          
    allWords = wordVector;
    }

  • I created a vector and added objects, but the vector is empty

    I created an object called a facility, it accepts 2 strings in the creator but stores the data as a string and a float. as you can see from the code below, i have tried to create a vector object to contain facilitys and named it entries. when i add objects to this vector, the vectors size does not change, and i cannot access elements of it via their index. but when i print the vector out i can see the elements? what is going on here. i am very confused. ps, if it helps i havent worked with vectors much before.
    FacilitysTest.java
    import java.util.*;
    public class FacilitysTest {
         public static void main (String [] args) {
         Facilitys entries = new Facilitys();
         entries.add("Stage","3.56");
         entries.add("kitchen","5.00");
         entries.add("heating","2");
    //     System.out.println(entries.firstElement() );
         System.out.println("printing out entries");
         System.out.println(entries);
         System.out.println();
         System.out.println("There are "+entries.size()+" entries");
         System.out.println();
         System.out.println("modifying entry 2");
         entries.setElementAt(new Facility("lighting","1.34"), 2);
         System.out.println(entries);
         System.out.println();
         System.out.println("deleting entry 1");
         entries.remove(1);
         System.out.println(entries);
    }the following is what happens when i run this code.
    the number (0,1,2) is taken from a unique number assigned to the facility and is not anything to do with the facilitys position in the vector.
    printing out entries
    Facility number: 0, Name: Stage , Cost/Hour: 3.56
    Facility number: 1, Name: kitchen , Cost/Hour: 5.0
    Facility number: 2, Name: heating , Cost/Hour: 2.0
    There are 0 entries
    modifying entry 2
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 >= 0
    at java.util.Vector.setElementAt(Vector.java:489)
    at FacilitysTest.main(FacilitysTest.java:17)
    Press any key to continue . . .
    Facilitys.java
    import java.util.*;
    public class Facilitys extends Vector {
         private Vector entries;
         public Facilitys( ) {
                 entries = new Vector();
        public void add( String name, String price ) {
             entries.add((new Facility( name, price) ));
        public Facility get(int index) {
              return ((Facility)entries.get(index));
         public float total() {
              float total = 0;
              for (int i = 0; i<entries.size();i++) {
                   total = total + ( (Facility)entries.get(i) ).getPricePerHour();
              return total;
        public String toString( ) {
            StringBuffer temp = new StringBuffer();
            for (int i = 0; i < entries.size(); ++i) {
                temp.append( entries.get(i).toString() + "\n" );
            return temp.toString();
    }

    are you reffering to where i have public class
    Facilitys extends Vector {
         private Vector entries;
         public Facilitys( ) {
                 entries = new Vector();
    That's correct. That's your problem.
    i added the extends Vector, because without it i got
    the following errors
    C:\Documents and Settings\george\My
    Documents\University\JavaCode\CM0112\FacilitysTest.jav
    a:14: cannot find symbol
    symbol : method size()
    location: class Facilitys
    System.out.println("There are "+entries.size()+"
    " entries");That's because you haven't implemented a size method in your class.
    ^
    C:\Documents and Settings\george\My
    Documents\University\JavaCode\CM0112\FacilitysTest.jav
    a:17: cannot find symbol
    symbol : method setElementAt(Facility,int)
    location: class Facilitys
    entries.setElementAt(new
    w Facility("lighting","1.34"), 2);That's because you haven't implemented setElementAt in your class.
    C:\Documents and Settings\george\My
    Documents\University\JavaCode\CM0112\FacilitysTest.jav
    a:21: cannot find symbol
    symbol : method remove(int)
    location: class Facilitys
         entries.remove(1);
    ^That's because you haven't implemented remove in your class.
    /Kaj

  • Urgent please. How to make objects to vector? CS6

    Hi please urgent, the printing press for signboard is looking for an vector of my design there are waiting for me right now. I send them the .eps format. I use pen tool for making different curves and shapes. How can I make it to a vector?
    Here is the .eps file
    http://www.solidfiles.com/d/5164de41a2/

    It's not clear what kind of production workflow will happen.
    Exactly. (At last!)
    Hi please urgent...
    Given the "urgentcy" I'll first ask you to forgive my being a little rough. None of this is meant to offend. It's meant to teach with some appropriate pointedness, hopefully to the benefit of all who come here having got themselves into similar jams. So be a little thick-skinned in reading this, but take it seriously. It's sound advice. It's good advice. It's given freely and represents considerable time, and so I consider myself at liberty to phrase it the way I see fit.
    This is how you (and many others) get into trouble. Failure to read instructions. Failure to become familiarized with the basic principles and mechanics of a reproduction method before charging customers for designing for those methods. Then relying upon user forums for answers to get you out of a jam, when there is no guarantee that others on a user forum know any more than you do. Wrong or incomplete "answers" here are at least as common as correct answers.
    Your situation is no more "urgent" than most who come here with questions.
    I send them the .eps format.
    EPS is Encapsulated PostScript. EPS (like PostScript) can contain any combination of raster, vector, or text objects. Think of EPS as just a "container." Just because a file is EPS does not necessarily mean its content is entirely vector paths.
    I use pen tool for making different curves and shapes.
    You used the Pen tool for drawing a few simple closed paths. You combined some of those simple paths into compound paths. You converted some text to paths. Those objects are vector paths which can be translated to HPGL instructions which a typical vinyl cutter can use to direct its cutting blade.
    But then you filled some of those objects with graduated fills. Grad fills are common constructs and can be thought of as "vector in nature" (resolution independent) in that they are mathematically-described printing instructions. But that is not something that can be reproduced by cutting pieces our of solid-colored vinyl sheet material.
    Then you applied raster-based effects (the fuzzy drop-shadows) to some of those vector-based paths.
    Plus, the compound paths in the EPS file contain raster images used as transparency masks for the shading. Like grad fills, raster images cannot be rendered by cutting a shape out of solid-colored vinyl. And Draw X4 isn't going to know what to do with that construct.
    So you are not delivering just vector-based paths in this file, no matter what file format in which you save it.
    Whenever you deliver a file for sign cutting/printing:
    Know the limitations of the sign shop you are using and its kind of equipment. Some sign shops only cut solid-colored vinyl on an HPGL-driven cutter. Other sign shops have more expensive equipment which can print raster images or grad tones onto vinyl first, and then cut the printed vinyl to shape after. Some sign shops use separate equipment for those two operations. Just as in print, you can't know how to properly prepare something for a particular output workflow unless you have at least a basic understanding of the operations involved.
    Ask the sign shop what software and version it is using. Ask what formats and versions their software can open/import.
    Best practice: Have your own copy of the software the sign shop will be using. (CorelDraw can be had by any Illustrator user at a modest competitive side-grade price, and you receive alot of other useful stuff in the deal. Any designer frequently delivering files to sign shops should make this investment.) That way, you can see what they will actually be dealing with before you send it.
    Failing that, at the very least re-open the file that you export from Illustrator in Illustrator before sending it so you can see what kind of objects you are actually sending. If you Open your EPS in Illustrator and tear it apart, you'll see the objects that I described above.
    "Dumb down" your content to the "lowest common denominator" constructs. When it comes down to it, almost everything in graphics boils down to simple vector paths, compound vector paths, vector paths used as clipping paths, raster images, and text objects. Avoid proprietary software-specific constructs like meshes and effects. Figure out the most basic and fewest kinds of objects required to build the graphic.
    Make sure you do not use compression on the file that you export.
    How can I make it to a vector?
    First, do not say "a vector." A vector-based graphics file is not "a vector." "A vector" is a direction, usually associated with a force. A vector-based graphics file is a collection of vector-based paths. "Vector path" or "vector drawing" or "vector file" are shorthand terms using the word "vector" as an adjective (modifying the path, drawing, or file), not a noun. This is not just a pet peeve of mine. It's one of those dead giveaways of beginners who usually don't really understand what they're dealing with.
    I sent them the .pdf format...
    A PDF file is like an EPS file in that it is also a "container" which may contain any combination of any number of vector paths, raster images, or text objects (as well as many other constructs, such as data fields).
    ...but they are still asking for the .esp....he will do it using CorelDraw X4...
    Just as there are designers selling services they don't understand, there are sign shops using software they don't understand. Smart designers working with such shops learn to watch for the "tell tale" signs of amateurism in the output houses they use.
    CorelDraw X4 can indeed "open" (i.e.; translate into its native constructs) PDF, EPS, and AI, so long as:
    The files are not newer versions which the particular version of CorelDraw predates.
    The files do not include Illustrator-native constructs which CorelDraw does not understand.
    (This is not because Illustrator is in any way "superior"; the same general principles apply when exchanging files in the other direction. Each software has its own proprietary constructs for which the others don't have a directly corresponding native construct.)
    CorelDraw dominates in the sign business (and for good reason). But sign shops are notorious for not keeping their Corel software up-to-date. Current version of Draw is X6, and a new version is no doubt just around the corner. You are using Illustrator CS6. You just need to save your Illustrator files back to an earlier format and CorelDraw X4 can open them. In fact, I just:
    Opened your EPS file in Illustrator CS3.
    Saved as Illustrator 8.
    Saved as PDF 1.3 (Acrobat 4)
    Opened both the PDF and the AI file in CorelDraw X3, with nothing missing.
    Why did this work? Because in saving back to earlier versions, the content was automatically "dumbed down" (deconstructed) to the more basic building blocks of graphics: Separate vector paths and raster images.
    Understand, this is still not ideal, because leaving that deconstruction to automated routines still results in needlessly messy and fragmented content. For example, when opened in CorelDraw, the AI 8 file contains 36 vector paths and 53 individual raster images. (This is not Draw's fault. It's what was exported from AI to the legacy format.)
    ...after I send the vector .eps format he said "which you send eps it open but not it vector it has more part" What he mean by it has more part?
    He meant there are objects in the design which are missing in the file you sent him after opening in Draw. That's because you did not save back to an earlier format which would deconstruct the file to more basic elements.
    He said "I have to cut acrylic & then the sticker printing...
    I'm assuming that he means cutting from vinyl adhesive film (although it's quite possible he does indeed mean acrylic plastic sheeting for a fabricated sign.) This implies (although it's still not certain from the poor wording) that the sign shop is not limited to just cutting sign vinyl, but also has the ability to print onto sign vinyl (to accommodate the grads and raster-based shading). Based on those assumptions, you still have some qestions to answer. Think of the basic operations. Think like the device(s) that have to build the physical sign:
    The solid-filled vector paths can be cut from sheets of solid-filled colored vinyl. The cut vinyl can then be applied to the (assumed) white sign board. That part is simple.
    The grad filled objects can be printed on white vinyl and then cut to shape. But there are three problems:
    Registration of print to cut. What if the printing and cutting are done in separate operations? Just as in offset printing traps and/or bleeds are typically included to allow for slight mis-registration of abutting colors, a similar trap or bleed may be required to allow for slight mis-registration between the printed grad fills and the paths which will then cut around them.
    How do you intend the drop shadows to be handled? They are graduated, so they will have to be printed. But then what? How do you cut to shape a soft fuzzy edged image from a solid piece of material? Where will the cut be made? Obviously, it has to be cut beyond the edges of the fuzzy printed image. But where? Will the whole graphic that involves the graduated fills and transparency masks (the circles, three curves, and drop shadows) be simply printed onto a piece of white vinyl and then that white vinly be cut to a single circular or rectangular shape? Or will it be cut to an offset contour running parallel to the outer edges of the whole graphic? If so, can you live with the visibility of that cut edge which is not actually part of the design? What about when that cut edge becomes more visible (as it will in the real world, especially if deployed outdoors)? Either way, you have not provided a cut path for the drop shadow portion at all.
    Or do you want the entire design to be rendered on a single sheet of vinly so as to avoid that problem of a cut edge outside the bounds of the drop shadows? If so, you don't need any vector content at all. The whole thing could just be one big raster image.
    Crosscuts: Back to the assumption that you do intend for the smaller graphic to be cut out of individual shapes, you have two dark blue vector paths overlapping. If the cutter blade follows those two paths, then they will be cut up into five separate pieces. Those paths should have been unioned into one path. A similar overlap situation exists between two green paths. unnecessary crosscuts are a bad thing in sign vinyl. Climate changes can cause slivers or peeling to appear between the unecessary cuts.
    Overlaps: Overlapping vinyl pieces can also be problematic in built-up multi-layer vinyl signs. The vinyl is usually glossy and lighting can cause the bumps at overlaps to become distractingly visible. Where that is considered a possible issue, path operations should be used to "punch" different-colored paths from each other, and then appropriate offsets added to accommodate registration, much like building traps in offset printing.
    (The above considerations are among the reasons why proper logo designs are intentionally designed as line art to avoid dependency upon graduated effects. If essential to the design, graduated effects are not just problematic for signage, but also for low-res printing like flexography, engraving on plaques or writing pens, single-color printing, screen printing, and other common needs.)
    So to do this right, you have some decisions to make:
    If this design is to be rendered from individual cut vinyl pieces adhered to a white substrate, especially for outdoor use, I would:
    Convert to solid-colored line art. Ditch the drop shadows and grad fills altogether.
    Union the two overlapping dark blue paths.
    Union the two overlapping green paths.
    Punch the green and light blue paths from the dark blue paths.
    Create offset paths of the green and light blue paths. Intersect these with the dark blue paths. Union the intersections with the green and light blue paths.
    Assemble in this order: Light blue, green, dark blue. This would provide a slight "trap" of the two ligher colors underneath the dark blue where they "kiss."
    The above treatment would be the simplest and most outdoor-durable since no printing is involved.
    If this design is to be rendered from individual cut vinyl pieces adhered to a white substrate, but I insisted on the grad fills and drop shadows, I would:
    Provide one raster image consisting of the small graphic.
    Provide one vector cut path for that image.
    Povide solid-filled cut paths for everything else.
    JET

  • Error Adding object to collection

    Hi all... I'm using Toplink + ADF Faces...
    We have the following problem: There are 2 tables involved, table A and table B
    Table B has a FK to table A, therefore a one-to-one mapping from B to A and a one to many mapping (collection) from A to B.
    What I want to do is to add an object of type B to the collection of an A object. I'm showing an input form for the constructor of type B, a submit button, and a read only table bellow to show the items of the collection. I have done this several times and worked fine, now I have NO clue why this is not working.
    What I used to do to achieve this is to call the method of the type A "addB(B)" (to add the object) and then the "Execute" operation (to refresh the table shown) of the collection in which the addB method is adding objects.
    What I get is just:
    2006-11-17 13:53:30.421 WARNING JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    2006-11-17 13:53:30.421 WARNING java.lang.NullPointerException
    and no more details.... :-S
    Does anyone know why this could be happening???
    or
    Is there some other way of adding objects to a collection using ADF and toplink?? Any suggestion is more than welcome!! I've been trying for too long to solve this... :-(
    Thanks in advance

    Here is another symptom:
    a few days ago, I developed a search page of objects of type "C". This type, has a collection of objects of type "B". This page is working fine, now... I do exactly the same steps to create a new page with the same search functionallity, and I get the same NullPointerException described above (with no extra information).
    Since the development of that working page until now, I manually added the mapping of table "A", which was not mapped by the time we developed the working search page. So I guess something is wrong with this new mapping.
    Here are the steps i did to map the new table "A" and define the relationship with table B (through a foreing key defined in DB):
    - created Java objects from tables for table "A".
    - added a FK from "B"->"A" in table "B" in the Offline Database Sources (just like the FK in the real DB)
    - added a ValueHolder attribute to class "B" (with the appropiate get and set, and initializing it in the constructor of class "B")
    - added a List attribute in class "A" of objects of type "B" (with the appropiates add, remove, get and set methods), and initializing the List as a new ArrayList in the constructor.
    - in the toplink map, mapped the new attributes:
    one-to-one for the Valueholder in class "B" (using the appropiate FK)
    one-to-many for the List attributes in class "A" (using the appropiate FK)
    - refreshed all possible datacontrol
    And thats it... am I doing something wrong or missing something??
    Is there any other way to map a new table into an existing toplink mapping? I'm using Jdev 10.1.3 Integrated workbench...
    I will really appreciate any suggestion or comment, I really have no clue why this is happening.... Thanks in advance

  • Adding objects to list

    Hi,
    I am new java. I have a probelm adding objects to list. This is the following code.
    class Test{
    List <>dataList = new ArrayList<>();
    public List<A> getAList(){
    dataList.add(new A());
    return dataList ;
    public List<B> getBList(){
    dataList.add(new B());
    return dataList;
    }In the above code what I will pass<parameterized data> to the dataList decalred as member variable?

    bhanu wrote:
    nothing common for A and B. Both A and B are different pojos. but we can tell A and B extends from Object.I tried like that
    way. But it is not working. <? extends from Object>.Both two methods have to be in the same classYou do in that case have a bad design. Why is the same list used for both. It can't be type safe so you need to cast and the user of the list might get classcast exceptions during iteration.
    Kaj

  • Enlarged Smart Objects with vectors inside them appear as resized bitmaps

    In Photoshop CC for Mac I have...
    Created layers of vector art
    Combined them into a smart object
    Enlarged the smart object (both via "Transform" and "Image Size")
    Upon enlarging, the vector objects look the way an enlarged bitmap would (i.e. fuzzy, pixelated, terrible) instead of crisp and clean as a vector should look. I've double- and triple-checked to make sure all layers have remained vector after resizing and they have.
    This is a terrible inconvenience for anyone that works heavily with vector smart objects and resizes them. I use this workflow on a daily basis to make adapting interface elements for various screen resolutions easier, without it I am beyond screwed.
    If anyone knows a workaround (or if this requires a setting that I haven't found to be changed) please let me know.
    Screenshot proof below:

    Read this thread -link http://forums.adobe.com/message/3498406#3498406
    you may want to read it from the beginning.
    Basically while a smart object layer embedded object may contain  vector graphics.  Photoshop renders a composite for the embedded object and uses the resulting rendered pixels for the smart object layers pixels.  When you transform a smart object layer your transforming those pixels like raster layer using your Photoshop preference interpolation preference..  If you want to resize the vector graphics contained in the embedded object you must open the embedded object into the approbate application and resize the embedded object using vector tools. After you commit the resize. Photoshop will update the embedded object and the layers pixel will be the composite rendered for the updated resized embedded object.

  • Cannot recolor artwork for all objects in Vector?

    Hello All,
    I used Live Trace to create a Vector. On some of the objects in Vector I can recolor artwork, but others there is no options to recolor. Does anyone know why and is it possible to see recolor options for all objects?

    Recolor artwork is a great tool for recoloring specific colors in the artwork without having to select specific objects and and change the swatch used for that object. If you select all, and enter the recolor function you should see all the swatches for all the selected art, and change a swatch color throughout the artwork. There is much more to this function, but for what you're doing this is a quick easy way to effect color changes to all objects colored with a specific swatch. Check the on line help, Help>Illustrator Help for more on recoloring.
    Here is a Tutorial if you're intrested too.
    http://rwillustrator.blogspot.com/2009/01/tutorial-recoloring-artwork.html

  • AIP-18510:  Error adding objects to configuration ... for business process.

    Hello,
    We are encountering this error few days after applying latest MLR patch.
    None of our agreements can be deployed, even those that were not changed in any way after the patch was applied.
    This is part of our ui.log:
    2009.02.02 at 08:49:10:409: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:10:409: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:10:409: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Rendering Page::pages/deployment/deploy_progress
    2009.02.02 at 08:49:10:421: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) In getVersionOnly()
    2009.02.02 at 08:49:10:965: Thread-24: IP - (ERROR) Error -: AIP-18510: Error adding objects to configuration CONFIG for business process cm_all_agreements
         at oracle.tip.configuration.B2BConfigurationBuilder.run(B2BConfigurationBuilder.java:452)
         at java.lang.Thread.run(Thread.java:534)
    2009.02.02 at 08:49:20:651: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Found Non Validation Errors
    2009.02.02 at 08:49:20:651: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:20:651: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:20:662: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Rendering Page::pages/deployment/deploy_error
    2009.02.02 at 08:49:20:673: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) In getVersionOnly()
    2009.02.02 at 08:49:27:961: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Rendering Page::pages/deployment/config_list
    2009.02.02 at 08:49:27:971: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Executing Query::SELECT DISTINCT C.ID, C.CLASSTYPE, C.name, C.LifeCycleState, CA.aud_modified FROM TIP_Configuration_t C, TIP_Configuration_t_AUD CA WHERE C.ID = CA.ID AND C.LifeCycleState IN ('Active','Validated','Quiescing','Quiesced') AND CA.aud_modified IN ( SELECT MAX(aud_modified) FROM TIP_Configuration_t_AUD WHERE ID = C.ID GROUP BY ID) ORDER BY CA.aud_modified DESC
    2009.02.02 at 08:49:27:978: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) In getVersionOnly()
    Please help as this renders our server useless.
    Best regards,
    Kamil

    Hi Kamil,
    I'm guessing you are talking about encountering these issues post MLR# 7 patch.
    Here are some of the things ypu could start off with:
    1. Check your LS Inventory to see if your patch was applied successfully
    2. Ensure that all the post installation steps were performed (in the readme file)
    3. You could rollback this patch and check if you are still getting the same error.
    4. After rollback, if your config works fine, rerapply the patch again and observe the effects.
    Thanks & Regards,
    Suhas.

  • Adding Object Mannully Vs. Adding Object in SU24 for Tranaction

    All,
    What is the diff. between Adding a missing Object Mannully in PFCG  Vs. Adding Object in SU24 for Tranaction ?
    What is the diff. between chaning Vaule for a missing Object Mannully in PFCG  Vs. Changing a value in SU24 for a Auth Ojbect ?
    Please let me know.
    From
    PT.

    Hi PT,
    There is no direct link between transactions and the auth objects assigned to them via PFCG.  Things like config and the way transaction are used have an impact on how the auths are evaluated for a given transaction.
    As you know, we use SU24 to update the SAP delivered values to meet the auth checks in our particular implementations or as per our requirements.  What this enables us to do is to ensure that when we enter a transaction, all the relevant auth objects and where appropriate fixed values are pulled through (so if you know that different usages of that tx requires different values then add the object in SU24 but leave the relevant field blank).  If you remove that transaction from the role, the auths that are also required are removed from the role too, as long as the role is not in Manual or Changed status.
    If you manually add the auth object then you have no link with the transaction/s that are required to run the object.  You can remove the transaction and the auth object value will remain in the role.  If not properly managed, you can end up with excess auths still present in roles, particularly with the S_* objects and in areas like FI where it is very easy to skip between transactions through menu options where there is no S_TCODE check, with the auth object check being the only controlling one.
    Manually entered objects definitely have their uses as long as they are properly documented and managed when maintaining roles.

  • Adding new object to vector in existing session

    Hi,
    I'm currently developing a website. In it, the user can click a button(name=option,value=item) and an item gets added to a list. At the end, the list is outputted. I am having difficulties though with my session.
    My session("Item") holds a collection,basically a vector. Every time the button is pressed, I want to add a new object (Item) to this vector(ItemCollection) but when I do it simply overrides it so the list is only ever outputting one item. Here is the code. I have traced through it with 'System.out.print' and it only gets to 'System.out.println("session");
    The getItem(), gets the item from the database and returns a object of type Item.
    This may seem like only a basic thing but I just cant see where it is going wrong.
    Thanks
    else if(option.equals("item")){
                       System.out.println("ItemPressed");
                       String itemIdStr=request.getParameter("id");
                   int itemId=Integer.parseInt(itemIdStr);
                      ItemCollection list=new ItemCollection();
                       list=(ItemCollection)session.getAttribute("Item");
                       Item item=new Item();
                       Item itS=new Item();
                       System.out.println("getItem()");
                       itS=item.getItem(itemId);
                       System.out.println(itS.getItemName());
                       System.out.println("session");
                       list.addItem(itS);
                       session.setAttribute("Item",list);     
                    System.out.println("addedToSession");
                  }

    else if(option.equals("item")){
                    System.out.println("ItemPressed");
                    String itemIdStr=request.getParameter("id");
                   int itemId=Integer.parseInt(itemIdStr);
                   ItemCollection list=new ItemCollection();
                    list=(ItemCollection)session.getAttribute("Item");
                    Item item=new Item();
                    Item itS=new Item();
                    System.out.println("getItem()");
                    itS=item.getItem(itemId);
                    System.out.println(itS.getItemName());
                    System.out.println("session");
                    list.addItem(itS);
                    session.setAttribute("Item",list);     
                    System.out.println("addedToSession");
               }Maybe it's too early in the morning here, but it looks to me like you have all of your variables declared in your execution path....
    ... if that is the case, then uh... ya, they are going to be reinitalized each pass and only have at most the last item in them from your work.

  • Adding the same Vector object into a JTable acts weird

    I'm using a JTable with a DefaultTableModel as the model. When I try to add rows in a loop using the same Vector object (clearing it out beforehand), the result is that every row in the table is identical to the last one. Is that because the DefaultTableModel stores a reference to my Vector object for each row? And by clearing and changing the vector this effectively changes very row in the table? That's the only rationale I can come up with...
    Here's the loop...
    Iterator itr = directorySet.iterator();
    Vector rowVector = new Vector(getColumnCount());
    while (itr.hasNext()) {
    File file = (File) itr.next();
    rowVector.clear()
    rowVector.add(file.getName());
    rowVector.add("<Directory>");
    rowVector.add("");
    addRow(rowVector);
    Any comments appreciated. Thanks,
    -nick

    By having a single vector object and making your all your rows refer to that would only populate all the rows with the latest data the vector has. This is the right behaviour, since all you rows effectively have a reference to your single vector object. To avoid this, do something like this....
    Iterator itr = directorySet.iterator();
    Vector rowVector = new Vector(getColumnCount());
    while (itr.hasNext()) {
    File file = (File) itr.next();
    //Instead of clearing your rowVector here, allocate a new vector object to your rowVector reference.
    //This would solve your problem effectively.
    rowVector = new Vector(getColumnCount());
    //rowVector.clear()
    rowVector.add(file.getName());
    rowVector.add("<Directory>");
    rowVector.add("");
    addRow(rowVector);
    }

  • Is it possible to export Vector Smart Objects as vector SVG files from Photoshop CC 2014?

    I have Vector Smart Objects copied from Illustrator and pasted into Photoshop. I would like to export them as vector SVG files (using Generator or Extract Assets). I can add the .svg extension to the layer and actually export an SVG just fine. The problem is any SVG I have exported have all been raster images. It defeats the purpose of having that as an option as far as I'm concerned.
    I remember watching and listening to keynotes and other speakers at Adobe MAX 2014 who said it was so powerful and amazing to create SVG files from Photoshop. If we're still exporting raster SVG files from Photoshop...that's not very impressive or exciting--especially since this era of modern web development benefits greatly from using vector SVG files.
    I understand that Shape Layers can be exported as vector SVG files but that seems very limiting. I also realize that users can create some impressive vectors in Photoshop, but that is not optimal. Illustrator is a better tool for creating vectors and I normally use Photoshop and Illustrator side-by-side. I know that vector SVG files can be exported from Illustrator but that isn't as user friendly and convenient as utilizing Photoshop > Generator > Reflow.
    My idea was to create my assets in Illustrator, paste them into Photoshop as Vector Smart Objects, set up my layout, and then use the Generator/Reflow method or Extract Assets to get a new web design started.
    Maybe I misunderstood what the speakers at Adobe MAX had said. Perhaps it's just user error and I'm just missing something simple (it happens).
    Photoshop CC 2014 notes the following under Help > System Info:
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Any help or suggestions would be greatly appreciated! Thank you in advance for your time.

    Not quite the same, but have a look at the new Libraries feature that came with 2014.2.2  I just tried it, and dragging a vector object into a library I created in Photoshop, was there in Illustrator.  This happens without having to close and reopen Illustrator.  Just use the drop down at the top of the Libraries panel (in Illustrator) to find your custom, or job specific library.

  • Adding objects to the stage & acceessing stage properties - I'm a bit confused..

    Hi,
    I'm a little confused on two fronts regarding display
    programming:
    A. What the best way to add objects to the stage?
    B. How to access stage properties.
    I can do both of these when the project is an 'Action Script
    Project', but I'm having trouble when it is a 'Flex Project' (e.g.
    an MXML file). See the two attached files with questions included
    in the comment to see exactly what I mean.
    A. What the best way to add objects to the stage?
    =====================================
    In an action script project that extends Sprite I can just
    call addChild()
    In an MXML project I can add objects to the stage by first
    adding them to a UIComponent, then adding that to the stage.
    1. Is that the best way to do it?
    In this doc:
    http://livedocs.adobe.com/flex/3/html/help.html?content=05_Display_Programming_02.html
    it says that
    quote:
    Each SWF file has an associated ActionScript class, known as
    the main class of the SWF file. When Flash Player opens a SWF file
    in an HTML page, Flash Player calls the constructor function for
    that class and the instance that is created (which is always a type
    of display object) is added as a child of the Stage object. The
    main class of a SWF file always extends the Sprite class
    2. why cant I just add a sprite object direct to the stage
    without the UIComponent?
    3. What is the 'main class', and how can i get access to it?
    B. How to access stage properties.
    =========================
    In an action script project that extends Sprite I can just
    call trace(stage.framerate)
    But in an MXML file I cannot figure out how to access the
    stage properties.
    See the attached code for the things that I tried, but which
    didnt work.
    In the page:
    http://www.actionscript.org/forums/showthread.php3?t=140655
    It says
    quote:
    For stage access you have a couple of rules:
    * natively, only display objects have inherent access to
    stage
    * display objects only have a valid reference to stage if
    they're within the stage's display list (on the screen, after added
    to it with addChild)
    * The only display objects which immediately have access to
    the stage before the use of addChild (in their constructor) are the
    document/application class instance (root) and any instance from
    the library placed on the timeline (not created with AS).
    * Non-display object classes have to be passed or assigned a
    reference to the stage from another object which already has access
    to it - they cannot access it otherwise.
    4. How do I access the stage properties in the MXML project?
    5. I suspect this is related to the "main class", which I
    dont yet understand - is it?
    Sorry for the long post.
    cheers
    tom

    "tom saffell" <[email protected]> wrote in
    message
    news:gd7cm9$d1v$[email protected]..
    > Thanks Luigi - that helps a lot.
    > I hadnt seen the Flex 3 Developer Guide before - it's
    very useful.
    >
    > I now see that I can access properties of the
    application object directly
    > with
    > this.<property>.
    > However, the framerate property cannot be set by
    actionscript, only in
    > MXML (I
    > can set it in the <mx:application> tag). But I
    need to be able to set it
    > programatically, dependent on user input.
    >
    > 5. Is there a way around this?
    > 6. Can I set the stage's framerate to achieve the same
    outcome?
    >
    > I still dont understand why I cannot access the stage
    object. When I call
    > either
    this.stage or
    uic.stage * then I get
    quote:
    Cannot access
    > a
    > property or method of a null object reference.
    My understanding is
    > that I
    > can access the stage object via any display object on
    the display list.
    > I'm
    > confused about this bit..
    >
    > * - uic is a UIComponent that has been added to the
    display list (i think)
    > by
    > calling addChild(uic) from the AS3 within the
    application
    >
    > 7. How do I access stage properties in AS3 in an MXML
    project?
    http://www.adobe.com/livedocs/flex/3/html/help.html?content=05_Display_Programming_10.html
    It seems like possibly your real problem is that you're
    having trouble
    searching the Help effectively:
    http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html

  • Adding objects into query Panel and no display report

    Hi Folks,
    I had an issue with WEBI .
    Iam running the report with few objects at first time , all objects are displayed in the  table format of report.
    I saved and closed the report .
    Later  i opened the report and edited the report by adding new objects into query panel and runing it.
    but this time  i did not find the new objects in display table in report as like DeskI.
    If we find the solution for this , it will be great help to me.
    Thanks
    Mahesh

    The objects will be in the data tab. Objects are not automatically added to your report in Webi, they are made available in the data panel, and you can choose which objects to add.

Maybe you are looking for

  • ITunes Music Folder Organization Inproperly

    After I imported music of the album "Wings Of Song", by James Galway, from my removable hard disk to "iTunes Music Folder" and had iTunes organized it, I discovered something that's a little bit wierd. All the music I just imported is put under the f

  • Trouble Importing MOV files in adobe premiere pro cs3

    Hi, I just bought a Canon 60D camera and I am using adobe premiere pro cs3 for the first time. I tried to import MOV file footages made by my Canon 60D, but it says that my files are not supported. I don't know what to do! Can someone help me? Thank

  • BPC 7.0 NW Load_Infoprovider sample package

    Hi Gurus, It is possible to load data with Load_Infoprovider sample package from a multicube? Thanks a lot, Raffi

  • Dynamic variable as a path problem.

    Hi, I've established that I needed a path /flashcontent/screens.swf to use with loadmovie like so, loadMovie("/flashcontent/screens.swf",_root.Empty_MC); and this works. What I wanted to do was use a variable in my path like this- varpath = "/flashco

  • My Sony Bravia Tv/blue ray combo no longer regonizes or plays any sort of disk.

    No longer wants to play any disk. It does not detect one when inserted. Yesterday it didnt even want to eject the disk but after powering it off and back on it finally ejected it. Still will not detect or play a disk