Selecting multiple items from an ISelectionList

I'm writing a jsp that iterates through all content items in a folder, extract certain properties from the content items and display them to the user. One of the property is a multi-valued selection list.
Here's a snapshot of the code:
IContentFactory contentFactory = remoteSession.getContentFactory();
IFolderManager folderManager = contentFactory.getFolderManager();
IContentItemManager contentItemManager = contentFactory.getContentItemManager();
IFolder desiredFolder = folderManager.getFolderByPath("/path to folder");
IContentItem [] contentItems = contentItemManager.getContentItems(desiredFolder);
for(int i=0;i<contentItems.length;i++) {
IContentItem contentItem = contentItems;
String multiValuedSelectionList = contentItem.getSelectionListPropertyValue(contentItem.getProperty("multiValuedSelectionList"));
The problem is, the method getSelectionListPropertyValue in IContentItem only returns the first value of the multi-valued selection list.
Is there a way I can retrieve all the values? I can do it quite easily in Publisher's presentation template but there seems to be no obvious way for me to do it via the IDK.
Would appreciate some help from any IDK gurus out there .
Thanks.

Hello,
You are currently experiencing Bug 7804355, where the getSelectionListPropertyValue in IContentItem returns only the first selection, even if the selection list property has multiselect option (and several items selected). No other means using the Publisher PRC API are available to get the needed information about all selections.
A workaround is to directly query the Publisher database for the selections. I can't help you create the database connection code, but I can give you a query that will return the values. As long as your custom application is not overloading the database with queries, this should be harmless.
SELECT *
FROM PCSENUMSELECTED AS es INNER JOIN
PCSDIRECTORY AS dir ON es.ITEMID = dir.DIRECTORYID INNER
JOIN
PCSENUMENTRIES AS ent ON es.ENTRYID = ent.ENTRYID
WHERE (es.PROPERTYID = 24035) AND (es.ITEMID = 42028)
For this example, my property ID is 24035 and the content item is 42028. The selected values of the property are in the ENTRYVALUE column.
You should open up a ticket with support, mention the bug number and let them know that you understand it's a bug and that there is no solution at this time. They can associate your case with the bug and which gives the bug a higher priority for a future fix.

Similar Messages

  • Select multiple items from a list box as values for a parameter of crystal report and Oracle procedure

    -  I have a  Product list box (asp.net) used as multiple selected values for  a parameter. 
    - The Product ID is defined in the Oracle procedure as NUMBER data type. 
    -  In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number.  This is the code in my Record Selection Formula for the report:
    ({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
    -  In C#, this is my code
    List<decimal?> productUnit = new List<decimal?>();
    int counter = 0;
    decimal prod;
    for (int i = 0; i < lstProducts.Items.Count; i++)
                  if (lstProducts.Items[i].Selected)
                                if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
                                    productUnit.Add((decimal?)prod);                              
                                    counter++;
           if (counter == 0)
                       productUnit.Add(-1);                      
    ReportingDAO rDataFactory = new ReportingDAO();
    retVal = rDataFactory.GetProductReport(productUnit);
    public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
              CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
              ReportLogon rptLog = new ReportLogon();
             rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
             retVal.SetParameterValue("p_product_id", productUnit); 
    I keep having the "Value does not fall within the expected range" when I debug.  My question is, is the data type I used for procedure/Crystal report/ and C# correct ?  I always have problem with the data type.  Any help would be
    appreciated
    Thank you

    Hi progGirl,
    Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thank you for your understanding.
    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.

  • How to select multiple items when on safari?  Ex: when I have to choose countries where I have worked from a list.

    Hi Everyone
    Please advise: how do I select multiple items when on Safari? Ex. when I have to select multiple countries where I have worked.

    Hi Carolyn
    I am trying to select multiple items from a list on a particular website. I tried using the 'command' button, but to no avail.
    Grateful for any advice.

  • How do I select multiple items?

    Happy New Year.  I am a new Mac user.  Recently switched from Windows.  How do I select multiple rows?  In windows you can CONTROL+click to select multiple items 1 at a time and SHIFT+click to select multiple items in groups.  I figured out to do COMMAND+click on Mac to select multiples 1 at a time.  I need to delete ALOT of rows.  How do I select multiples in groups? 
    Thanks.

    KarenSelena and BobHarris have given you the direct sequences.
    You can also select multiple disjoint ranges with combinations of ⌘ (command key) click and ⇑ (shift key) click, too.
    As you use OS X, you'll find a large number of ⌘ and ⇑ and ˄ (control key) and ⌥ (option key) clicks and shortcuts available (and some were mentioned earlier), and shortcuts such as ⌘ A (select all), ⌘ Z (undo) and a whole host of other shortcuts available.
    Here is Apple's Mac 101 / Mac Basics site, which has a good (and free) introduction toward learning to use your Mac.

  • With a wired keyboard and a 2014 iMac I cannot select multiple items which are not next to each other

    I have recently changed from Windows 7 desktop to a new iMac running Mavericks.  I have chosen a wired keyboard as I like  the usual Delete key function.
    I cannot find out how to select several items which are not next to each other (e.g. words in Pages).  The well known method in Windows, which is repeated in the the Apple Finder Help screen, does not work.  Would be grateful for advice

    Hi JBowfin,
    If I am understanding your question correctly, I believe that I have an article that will address this question for you:
    Mac OS X 10.0: Use Command Key to Select Multiple Items in List and Column Views
    http://support.apple.com/kb/TA20396
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • How to select multiple items in ListView?

    Is it possible to select multiple items (rows) in ListView? I'm able
    to select only one item at a time.
    I'm running Forte 30F2 on Windows NT 4.0.
    Thanks in advance,
    Ramarao
    Get Your Private, Free Email at http://www.hotmail.com

    Ramarao,
    I talked to Forte support about this recently and they had nothing but
    bad news.
    They said that you cannot select multiple rows in a listview, and that
    this is a
    feature that will be in the next release ( release 4 ).
    I then asked if it was possible for me to highlight a row manually ( and
    do the multiple
    select myself ), and they said that also wasn't possible. This is due
    to the fact that
    there are no displaynode properties that effect display attributes (
    like font or color ).
    They suggested that I try changing the smallicon to show rows that have
    been 'selected'.
    In other words, when you ctrl-click on any particular row, you could put
    an icon at the
    beginning of a row that shows that this row has been clicked on.
    I'm still working on this myself, so I will keep you posted.
    Jeff Pickett
    From: Ramarao P[SMTP:[email protected]]
    Reply To: Ramarao P
    Sent: Tuesday, March 24, 1998 6:22 PM
    To: [email protected]
    Subject: How to select multiple items in ListView?
    Is it possible to select multiple items (rows) in ListView? I'm able
    to select only one item at a time.
    I'm running Forte 30F2 on Windows NT 4.0.
    Thanks in advance,
    Ramarao
    Get Your Private, Free Email at http://www.hotmail.com

  • How do you  select multiple photos from photostream to move to a folder

    how do i select multiple photos from photostream to move to a folder in iphoto

    Hello Tiggertiffany,
    Thanks for using Apple Support Communities.
    If you need to select multiple items on iCloud.com then you can use the common procedure to select multiple items by either holding Command or Shift on your keyboard.
    To select multiple files or folders, hold down the Command (⌘) key, then click the items.
    To select multiple files or folders that are listed together, click the first item you want to select, hold down the Shift key, then click the last item.
    OS X Yosemite: select files or folders
    Have a great weekend,
    Alex H.

  • Selecting multiple items in a listbox

    Is it possible to select multiple items in a listbox and insert them into an array. Currently, to get around not knowing if this is possible, I have two listboxes. One has items available and the other has items you want to use. I can either double click or press an add/remove button to move items between the two listboxes. The problem there is that when I move an item from one to the other it puts it at the end of the list. I want to keep the lists in order by channel. My items structure is as follows: "'channel number' 'Channel name'" ie "1 Date\Time"
    I can sort this list but it sorts by the first character. If I have channels 1-30. It sorts to 1,11,12,13,14,...,3,30. I want 1,2,3,...,30 I would prefer to select multiple items in the listbox but if I can't, how can I do a better sort with my current method of two listboxes.
    Thanks,
    AJL

    Hi together,
    Since there is no multiple selection in Enumlistbox in SUD dialog, i wanted to use a table.
    But i couldnt get the table to show the values from a user variable definition file (dynamic enumeration list). I fail to assign one column of the table to that user variable.
    Below i attach the corresponding files:
    where could be the problem?
    And i was looking through DIAdem help file to look for information, how to define different types of user variables (for example vectors) but i couldnt find enough information. Do you have any document or examples where i can see the defining and usage of different type variables in different controls in SUD dialogs ?
    thanks in advance
    kaan
    Attachments:
    dynamic_enumeration_for_table.zip ‏2 KB

  • Select Multiple Tracks from Library

    When I am Rippinga CD to My Library, I can click on "Edit", right click and click on "Get Info.", and modify the "Genre".
    When I open a CD from the Library, and click on "Edit", I can't "Select All", and "Get Info", I can't seem to change the Database.
    Is there a way to select multiple tracks from the Library, and change the data?

    It should be the same way you select multiple items in just about every application. Select any item. Hold SHIFT and click another item to select that and all between it and the original. Hold CTRL to toggle the selection of individual items, adding or removing them from the selection.
    tt2

  • Restrict selecting multiple items across two ListBoxes

    Hello,
    I'd like to know, how to restrict user from selecting multiple items across two different ListBoxes.
    Reason I need this is I want to pass that selected item forward using only one button.
    Something like
    if Lb_Regular.hasSelected = true then
    passfunction(Lb_Regular.SelectedItem)
    elseif Lb_Patch.hasSelected = true then
    passfunction(Lb_Patch.SelectedItem)
    else
    Debug.WriteLine("Nothing is selected")
    Thanks in advance,
    TheCreepySheep

    Hi,
     You can try it like this.
    Public Class Form1
    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    If ActiveControl Is ListBox1 Then
    ListBox2.SelectedIndex = -1
    End If
    End Sub
    Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
    If ActiveControl Is ListBox2 Then
    ListBox1.SelectedIndex = -1
    End If
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If ListBox1.SelectedIndex > -1 Then
    MessageBox.Show("Listbox1 has item selected - " & ListBox1.SelectedItem.ToString)
    ElseIf ListBox2.SelectedIndex > -1 Then
    MessageBox.Show("Listbox2 has item selected - " & ListBox2.SelectedItem.ToString)
    Else
    MessageBox.Show("No Item Is Selectd")
    End If
    End Sub
    End Class
    If you say it can`t be done then i`ll try it
    Thanks! Just what I wanted!

  • Selecting multiple rows from List-component

    Hi
    Could someone give me an example how to programmatically select multiple rows from List-component?
    I know that this selects one row: lst_example.selectedIndex = 1;
    But how about selectin indexes 1,2 and 4 for example?

    selectedIndices
    A Vector of ints representing the indices of the currently selected item or
    items...
    var si:Vector.<int> = new Vector.<int>;
    si.push(1);
    si.push(2);
    si.push(4);
    list.selectedIndices = si;

  • Selecting multiple items by choosing first and last to include all those in between...

    Hello all.
    I'm familiar with how to select multiple items by using the shift key and the command key to select either individual items, or a batch of items by clicking the first to be included and the last to be included, and having all those inbetween included as well, but for some reason this is not happening when I'm trying to select files in OS Lion. Regardless if I use the shift key or the command key, only a single item is selected, and for a range of items, I must click each individually.
    Is there a setting that I need to alter to select a batch? Am I missing something that they've changed from the previous OS?
    Thank you for your help!

    I can confirm that does still work in Lion as you describe, but at the moment, no fix to offer. I'm not aware of any setting. It just supose to work.
    I did find this article which may help.  But proceed at you own risk in deleting .plist files. It may do the trick, but also cause you to reset certain key functions.
    A simple thing to try first is to repair permissions. .../Applications/Utilities/Disk Utility.  Select your Volume/Repair Permissions

  • Selecting multiple values from a search help

    Hi Experts
    Anyone knows if it is possible to select multiple values from a search help?
    Thanks
    Gaurav

    Hi,
    You cannot select mutiple values from search help as it is linked to inputfield and hence it will accept single value only. But at the same time, you may able to pass row of values to different inputfields.
    Refer http://help.sap.com/saphelp_dm40/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
    Thanks,
    Chandra

  • How to select multiple values from a listbox

    Hi,
    I have a list box on my UI which is not allowing me to select multiple values
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving error
    When i drag & drop the component i am unable to drop it as a multi select list box that option is not coming.
    I am working on Jdev 11.1.1.3 and I am using ADF/BC components
    How to select multiple values from a listbox ?
    Thanks,

    Hi,
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving errorank
    And what is the error ?
    Frank

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

Maybe you are looking for

  • Black horizontal lines on start up and doesn't load GUI

    So here it goes My Late '11 15inch Macbook Pro went bonanas today. When it starts up there all these black horizontal lines running across the screen jiggering jabbering everywhere and I see three apple logos (due to GPU glitch I am guessing) after l

  • Please help: Connection Pooling...

    Hi everybody, I am seeking help from our experienced fellows and senior programmers/developers. I am working with Struts framework, TomCat and JavaBeans and developing a website. I wanna make my own Connection Pooling class to handel all the connecti

  • N95 with more ca[acity memory cards?

    Iam a user of N95-1 which after the new firmware V.20 is better but still has some bugs in the keypad sometimes, but with a good general performance including battery life. I need more space, all of us who experience the satisfaction of having comple

  • JRM Service could be down in LMS 3.2

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Vanlig tabell"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm

  • Why won't Firefox always minimize/resize? Using F11 is a patchy solution that doesn't always work

    Firefox won't always minimize or resize. The upper right hand corner just pulsates. Looking through forums, I found that using f11 can help, but it doesn't always work. Often I have to reboot. == This happened == Not sure how often == A year ago, may