Collection List

How do I filter out data using ArrayList given this example? When I try to add the few lines below, it came out ArrayOutOfBoundsException with index=12, size=11.
public ActionForward linkToDetail(ActionMapping mapping, ActionForm form,
               HttpServletRequest request, HttpServletResponse response)
               throws Exception {
          UserGroupEnqForm userForm = (UserGroupEnqForm) form;
          Long userSeqId = userForm.getUserSeqId();
          List groupList = userForm.getGroupList();
UserGroupService service = (UserGroupService) ServiceUtil.getService(UserGroupService.class);
          if (groupList != null) {
               int groupSize = groupList.size();
               for (int i = 0; i < groupSize; i++) {
                    GroupHeader gp = (GroupHeader) groupList.get(i);
                    if (userSeqId != null) {
                         List result = service.getUserGroupsByUserGroup(userSeqId,
                                   gp.getSeqId());
                         if (result != null && result.size() > 0) {
                              gp.setAccessRight(new Boolean(true));
                         } else {
                              gp.setAccessRight(new Boolean(false));
                    } else {
                         gp.setAccessRight(new Boolean(false));
if(!gp.getAccessRight()) {
                         groupList.remove(gp);
          return mapping.findForward(Token.DETAIL);
          }

Hi There,
Has anyone managed to get a text abstract or description of a resource to be displayed over more than one row using the diplayed properties of a collection renderer?   My attempts to date have been restricted to one row and many columns.
Paul
Have found the solution in another thread, the link to this thread is - Show long property value for a document
Message was edited by: Paul Chambers

Similar Messages

  • Displayed Properties in Collection List Renderer are not displayed

    Hello All,
    I have created one custom property and entered the value for a resource which had that property.
    Now, when I am trying to display the custom property in any layout, its not coming, even though I have added the property name in the Displayed Property of the collection list renderer.
    To check the view is taking the correct layout or not, i changed some other settings of the collection list renderer and the changes are immediately getting reflected. What could be the problem here?
    Any help, deeply appreciated
    Regards
    BP

    Hello Bobu,
    Are you using a different Namespace Alias other than 'Default' in your property definition? If so then you need to specify the property in the 'Displayed Properties' parameter of the collection renderer as <NamespaceAlias>:<propetrty ID>, e.g. rnd:displayname.
    Other than that you should check the 'Folder Validity Patterns' and 'Document Validity Patterns' to make sure they are valid for the content on which you are trying to display this property, you may have already checked this.
    Regards,
    Lorcan.

  • IE02 services for object- How to collective list attachment by many equip?

    Hi all,
    IE01/IE02  i create attachment by services for object for equipment.
    But I want to collective  list attachment by equipment, not by individual  equip to display.
    How to do that?  or which table can i find the info?
    thanks a lot

    derek,
    I don't think there are any [Generic Object Services|http://help.sap.com/erp2005_ehp_04/helpdata/EN/be/3fe63659241157e10000009b38f889/frameset.htm] (GOS) transactions to mass update objects...
    I suspect you would need to develop a custom BDC program for this purpose.
    PeteA

  • Using collection list in subquery to restrict rows

    How can I use a collection list in a subquery?
    Something like this:
    TYPE listOfIDs_t IS TABLE OF NUMBER;
    v_listOfIDs_arr listOfIDs_t;
    CURSOR c1 IS
    SELECT *
    FROM tbl
    WHERE id IN (SELECT column_value
    FROM TABLE ( CAST(v_listOfIDs_arr AS listOfIDs_t ))
    When I try something like this, I get "invalid datatype" on the collection type, listOfIDs_t. Any suggestions? Basically, I want to use the list of values in my collection to restrict my cursor/query without having to loop through my collection and execute the cursor/query each time.

    PL/SQL is two languages. PL is a programming language based on ADA. It is a formal procedural declarative language. It is "Turing complete". SQL is neither - not procedural and not Turing complete.
    PL/SQL mashes these two in a single integrated coding environment - you can write and mix PL and SQL code and the PL engine will figure out where it needs to make calls to the SQL engine, what PL variables it need to pass to the SQL engine (using SQL bind variables) and so on.
    Now you define a structure in the PL engine. The structure resides in the PL engine memory area (the process global area or PGA).
    You now want to pass that structure to the SQL engine and run SQL on it. The SQL engine cannot reference that local PL variable directly. PL has to copy it into the SQL engine.. as what?
    The SQL engine only supports SQL data types. The SQL engine does not know of the PL engine's existence. Just like it does not know about Java, C/C++, Delphi, C#, Visual Basic etc. Nor does the SQL engine support data types of these languages.
    All these languages, including PL, supports the SQL engine in some form or another. Via ODBC, BDE, OCI, JDBC, etc.
    Okay, now how does PL pass that local PL structure to the SQL engine? It cannot. That is a custom PL structure. It can contain (and often does) have features that are not supported by the SQL engine. Like boolean fields.
    What PL can do and does support is SQL data types. Including user defined data types. And these it can use itself natively inside PL (as you also can as objects in Delphi, Java etc).
    And these it can also pass back to the SQL engine for processing.
    That all said - the best place for data is inside the SQL engine (i.e. in tables). It is not the best of ideas to create data structures in PL and then continually pass (copy) these to the SQL engine to run SQLs against. It is slow. It does not scale.
    So make sure that you have sound technical reasons when actually doing this - creating a PL variable of a SQL table type, stuffing data into it, and then running SQLs on it.

  • Portal Collection List Renderer - problem with alignment

    Dear All,
    I'm having an issue with alignment of columns when changing a Layoutset.
    This modification is all done with SAP standard components, so I decided to try my luck here first at SDN before writing an OSS message.
    Here's what is happening:
    I want to have the KM files listed like this:
    (as I can't put a printscreen, I will put it on text for you to have an idea)
    FILENAME..................MODIFIED...........................MODIFIEDBY
    ...file1..........................xx/xx/xxxx..........................aaaaaaaa
    Description of file1 here....
    file2.............................xx/xx/xxxx..........................aaaaaaaa
    Description of file2 here....
    file3.............................xx/xx/xxxx..........................aaaaaaaa
    Description of file3 here....
    To obtain this I'm changing the standard object AdminCollectionListRenderer
    I do this by going to KM configuration and change this SAP standar object on
      Collection List Renderer Settings > AdminCollectionListRenderer
        Flavor:
          From: List
          To: Not Set
        Displayed Properties:
          From: rnd:icon,rnd:displayname(contentLink)+rnd:action,contentlength,rnd:lock,modified,modifiedby
          To: rnd:displayname(contentLink),rnd:lock,modified,modifiedby,rnd:description(\[2;1-1\]/noTitle/maxChars=300)
    The result is ok, but there's a very small detail that doesn't disappear no matter what I do.
    If you go to the txt above, the "file1" is ALWAYS one blank space to the right. It's not aligned with the
    other items on the list.
    Has anyone experienced this ?
    Is there any solution ?
    Kindest Regards
    /Ricardo Quintas

    Check in your type preferences. Apply leading to entire paragraphs will fix this. It's likely that the return at the end of your last line has a larger point size assigned to it, and it's throwing your leading off.

  • Class not found com/sun/java/util/collections/list

    hi
              i am trying to execute the following:
              java weblogic.jspc -d c:\weblogic\classes -keepgenerated
              printAllParameters
              and get the follwoing message:
              class not found com/sun/java/util/collections/list
              any suggestions?
              thanx
              

    Try it like this:
              java weblogic.jspc -d c:\weblogic\classes;c:\weblogic\lib\weblogicaux.jar ...
              Melrose Public Library <[email protected]> wrote:
              > hi
              > i am trying to execute the following:
              > java weblogic.jspc -d c:\weblogic\classes -keepgenerated
              > printAllParameters
              > and get the follwoing message:
              > class not found com/sun/java/util/collections/list
              > any suggestions?
              > thanx
              Dimitri
              

  • Editing image collection list in "System Pref Desktop"

    Under Apple menu > System Preferences > Desktop & Screen Saver > Desktop, a collection of images are available from the list on the left, however, some of the folders previously created by the "choose Folder" method do not contain any pictures anymore. How do I delete or edit the image collection list on the left?

    Ahhhh....sounds like a corrupt preferences file then. Try trashing this preference file, log out and log back in.
    User > Library > Preferences > com.apple.desktop.plist
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    iTunes: MacOSG Podcast
     An Apple User Group 

  • Properties, Casting, and Collections.list

    How do I make the following code work properly, without warnings?
    import java.util.Properties;
    import java.util.Collections;
    import java.util.Collection;
    class Test {
        public static void main(String [] argv){
            Properties p=new Properties();
            for (String s : Collections.list(p.propertyNames())){
                System.out.println(s);
    }I have tried casting the ArrayList result, and the passed in Enumeration.
    Christopher
    P.S. What does the first <T> mean in the declaration of Collections.list?
    public static <T> ArrayList<T> list(Enumeration<T> e)

    I'm pretty sure you can't. Let's gradually expand your code, filling in local variables so you can see why:
    for (String s : Collections.list(p.propertyNames()))becomes
    List<String> list = Collections.list(p.propertyNames()); // not typesafe
    for (String s : list)So why isn't that list typesafe? Well, let's keep going.
    Enumeration<String> enumeration = p.propertyNames(); // not typesafe
    List<String> list = Collections.list(enumeration);
    for (String s : list)The problem is that the method p.propertyNames() does not return an Enumeration<String>; it returns an Enumeration<?>. That's where your type safety problem shows up.
    You will notice that the Properties object extends Hashtable<Object,Object>. This means that it's entirely possible that the Properties object contains a non-String key.
    An ugly solution might be something like this:
    List<String> propertyNames = new ArrayList<String>();
    for (Object o : p.propertyNames()) propertyNames.add(o.toString());
    for (String s : propertyNames) ...Obviously, this won't work the same way if the Properties object contains a non-String key... but if you're willing to assume it doesn't, that solution should be fine.
    Cheers!

  • Empty Sets/Collections list in new flickr Publish setup in LR4

    A member of my family has just bought a new iMac 27" with 10.8 and I have set it up from scratch rather than copying over the old system. Lightroom has always worked well and never any issues.
    However, in setting up this new machine and adding in a new flickr service - it connects and authenticates without an issue and we can upload and add new sets etc but no matter what I do, it will not show the sets and collections from flickr on the local machne - it just shows "Photostream" and 0.
    We have about 12,000 images on flickr so we use it quite heavily and all the set and collections have always shown up without an issue. I cannot see any reason for it not working and have checked what I could but I am sure I haven't missed anything.
    Has anyone seen this issues before - thanks for any help you can offer.
    Jason

    Not all of the listed email recipients on my contact form are receiving the inquiries.    Muse allows me to add several email addresses separated by a semi-colon (see below from Corey Wrote) but only one of the three addresses are receiving the contact form inquiries.
    Corey@Adobe wrote:
    Forms
    We've added a new Form widget to the widget library.
    You can easily configure the form to send the form submissions to multiple email addresses, and optionally redirect users to another page after submitting the form.
    You can add and remove fields, and style the form as you would other Adobe Muse elements. You can independently style the various states of the form, and form fields to provide a compelling user experience, with visual cues for error states, empty states, and more.
    Because Form processing requires server-side support, Adobe Muse forms are configured to work when published to Adobe Business Catalyst. If you make changes to your form and publish again, Adobe Muse will make the appropriate changes to your Adobe Business Catalyst forms.
    Adobe Muse will safeguard data when redesigning your Adobe Business Catalyst forms                
    If a field with no data submitted is removed, it will be deleted from the database.
    If a field that has submitted data is removed, it will be preserved in the database, but can be deleted from the Adobe Business Catalyst admin console if desired.         

  • Font Book - Collection List

    I was playing around with Font Book and happened to messed up the default fonts under each default collection. Anybody know what fonts are listed under the "PDF" and "Modern" collection?
    Thanks!

    Classic:
    Baskerville
    Big Caslon
    Copperplate
    Didot
    Fixed Width:
    Andale Mono
    Courier
    Courier New
    Monaco
    -mj
    [email protected]

  • How to pass the JCO Table and Structure in a collection List to frontEnd

    hi,
    I have a BAPI which is returns me a Table and a structure. As i have used JCO I will receive it in JCO Table and JCO Structure. Now the question is that how I should pass both these of these using a collection to the frontend for displaying the data from it.
    Thanks' & Regards,
    Samir

    Hi Samir,
    As you are trying to pass the Table and the Structure in the form of collection to the JSP page, you can create a javabean with the structure similar to that of the table/Structure.
    Lets assume you have a table called Employee with Emp_Name, Emp_Age, Emp_Sal as three columns, create a java class by name Employee which implements Serializable and attributes as Emp_Name, Emp_Age and Emp_Sal. Generate the setters and getters for the same. In your EJB code, create an instance of this Employee class and set the attributes and save it in a HashMap in the form of key value pair, Value being your Employee class instance and key be your Employee Name. Return the HashMap in your EJB code.
    Use the HashMap in your JSP. Get the Iterator for the HashMap and Loop through the keys to get the values.
    Hope this helps.
    Regards,
    Rekha Malavathu

  • How do I change the order of my collections list?

    At the moment,  I have 12 different collections in my iBooks with more to come. How do I move around the collections - alphabetized, organize, etc - the collects with out having to remove all the books, delete and start again?

    Unfortunately, the iPad user guide only covers this lightly and still doesn't answer the question "how do you organize/alphabetized the collections feature of iBook?". Thank you though. It did answer another question I had that I just had not gotten around to asking here.  ;)
    Really, I just want to move around the collections - with the books/stories still in them - without having to shift everything to an empty folder and start again.  But it looks like that may be my only option.  Very time consuming and doesn't allow for the possibilities that I want to add new collections later.  And giving that iBooks does not provide an easy way to find out what something is without opening it or writing your own intro - very frustrating. 
    Again, I thank you for trying.

  • Query about oldest entry in a Collection/List

    Hi,
    I need to access the oldest entry from a List. something on the lines of removeEldestEntry from LinkedHashMap ... but I need to work with the entry before deleting it. any hints or pointers will be greatly appreciated

    A list is not nessasarly in the order that you put them in (see List.add( int, E ). If however you list is, see List.remove(int), and use element 0.

  • Add single computer to multiple collections listed in a file

    Good afternoon,
    I am trying to figure out how to add a single computer to multiple collections based on the contents of a file. Basically, I have a frontend hta for deployments. On that hta are checkboxes for various bits of software that should be installed, for example
    MS Office. When the hta is submitted, if a software checkbox is checked it writes to a text file on the server indicating it was checked. Once the deployment is completed a script is run via a status filter rule. The intent is for that script to read the file
    on the server and add the computer that was just imaged to the collections identified by the checked boxes.
    Obviously I am not having much luck which is why I am here looking for a bit of help.
    Here is the code that I am working with..both the while and foreach version
    $file = New-Object System.IO.StreamReader -Arg $path
    while ($line = $file.ReadLine()) {
    Add-CMDeviceCollectionDirectMembershipRule -CollectionName $line -Resourceid $ClientName
    $file.close()
    foreach ($line in (Get-Content $path)) {
    Add-CMDeviceCollectionDirectMembershipRule -CollectionName $line -Resourceid $ClientName
    I have found that if I manually assign a value to $line everything works as expected, but if I try to read from the file and use either a while or foreach loop it fails.
    I can enter a quick write-host and see that the value of each line is being returned as I would expect it but the system just returns the following error for each one:
    Add-CMDeviceCollectionDirectMembershipRule : No object corresponds to the specified parameters.
    I am sure that there are better ways to do this and I am sure there are cleaner ways to code it, but I am not a Powershell guru so please be kind. ;)

    "-Resourceid $ClientName" is not correct because ResourceID != Clientname. See
    http://technet.microsoft.com/en-us/library/jj850102(v=sc.20).aspx There is no parameter that accepts the name of the client.
    Torsten Meringer | http://www.mssccmfaq.de
    Thank you for the suggestion, but that is not the issue. As mentioned in the first post, if I manually assign the collection variable value it works without issue. This is to include *without* changing the $Clientname.
    Previously in the script, which was not shown is the following:
    $Clientname = (Get-CMDevice -Name $Clientname).ResourceID
    If I do a Write-Host $Clientname after that line of code I am returned the correct numeric value. That said, part of my troubleshooting *before* I posted here was to hardcode the numeric resource ID of the client which did not change anything unless the
    value of the collection variable was manually set or the variable replaced with the collection name.
    So, any ideas as to why it is not able to read and process collection names from a text file?

  • ME51N services for object- How to collective list attachment by Requisition

    Hello!!
    When create ME51N or Change ME52N a puechase requisition, the users use the Service for Object to attach some word, excel, pictures files as attachements.
    There is away to see in a table or in a report what documents have an attachemnt and what not have it?

    Hi
    There is no standard report for attachment list. But for a particular document you can view attachment by selecting services for object and view attachement lists.
    Regards
    M P D Kamath

Maybe you are looking for

  • Color management for flash player with hardware acceleration

    I have tested the color management for flash player 10.2 with and without hardware acceleration (GPU) on different PCs with different video cards. Videos that are played via flash without hardware acceleration on PC have proper color as designed in A

  • Native resolution of MacBook White (2008) to hook up a monitor

    I have a 2008 early Macbook white. I want to hook up a monitor with it. I am looking for something from 25-28 inches. I see that with a 26 inch 1920X1080, there is some fuzziness and it is not as crisp as it looks on the macbook screen. The icons are

  • How do I do to get my Security questions if I forgot them?

    It also got blocked because i tried a lot

  • Passing parameters in browser

    Hi, I have 2 RDF files in 10g developer.I want when i user give input A report 1 will be executed and when give input B report 2 will be executed. Is it possible in web browser to pass parameters? Regards

  • Dreamweaver CS3 vc Golive

    Another question: I used to make my images with changing text-same background in Image Ready. In Golive I could use the same file from Image Ready and than just change the text. If I change the Image Ready file like another background or fontsize all