Content Items Sorting based on picklist property fails

Content Server 6.0
We have developed a custom presentation template to display a list of all the work items. While displaying the work items, I would like to sort them based on a property and then filter them based on another property. I have a template code similar to below:
<pcs:foreach var="item" expr="filter(sort(sort(index.folder, 'item.pcs_id', true), 'item.application', true), '(filtered.workflow_status != "Completed")')">
The content item has two properties: application - a picklist, and workflow_status - a picklist.
The above code template does not return any results. However if I change the expression so that I am sorting by a text property, then it displays the results correctly.
For e.g,
<pcs:foreach var="item" expr="filter(sort(sort(index.folder, 'item.pcs_id', true), 'item.name', true), '(filtered.workflow_status != "Completed")')">
(name is a text property of the content item).
Is there another way of accesing a picklist property in sort function to retrieve the desired results? Can somebody point out what am I doing wrong?
Thanks for your help in advance.
Thanks
Jignesh.

Not currently. We're considering this for a future release.
Regards,
Jerry
null

Similar Messages

  • How to search a content item based on content id?

    I'm having a requirement to search a document based on an Id. (something similar to KB search based on KB id)
    I'm aware that a document uploaded to publisher has two Id's that get generated
    1) UUID 2) ITEMID (DA_*****)
    I'm planning to develop a portlet to search documents based on it's Id's
    I have the following queries.
    1) Can i make use of the itemid (DA_****) to search? But i dont find any IDK API to do that. am i missing some thing here?
    2) I found that by making use of pcs database we can get UUID from the ITEMID, is that a right approach to get hold of a content item?
    3) Is there any other better approach?
    Guide me
    Thanks,
    Bharat

    You can use InDesign for this.

  • No Property Sets exist of type "Content Item"

    Hi,
    During the process of creating a new placeholder, there is pop-up of
    info saying that 'No Property Sets exist of type "Content Item"'.
    Unable to create a new placeholder due to this.
    Hope any of u gurus can help me out with this.
    Thanx and Rgds,
    Elan

    Elan,
    Content Item property sets define the metadata attributes on the documents
    managed by your content management system. You can read more about them
    here:
    http://e-docs.bea.com/wlp/docs40/ebcc/propset.htm#1041528
    http://edocs.bea.com/wlcs/docs35/p13ndev/content.htm
    http://edocs.bea.com/wlp/docs40/p13ndev/cs4cbe.htm
    Sincerely,
    Daniel Selman
    "Elan E" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    During the process of creating a new placeholder, there is pop-up of
    info saying that 'No Property Sets exist of type "Content Item"'.
    Unable to create a new placeholder due to this.
    Hope any of u gurus can help me out with this.
    Thanx and Rgds,
    Elan

  • Sorting based on attributes

    In a content area folder is there a way to
    sort items based on regular/custom attributes?
    I know that we can sort based on title and size
    Thanks

    Not currently. We're considering this for a future release.
    Regards,
    Jerry
    null

  • BEA's Publisher - Display Published Content Items

    I'm using BEA's Publisher product with ALUI. I want to have a simple portlet that just displays Content Items that I've published, but after playing with it for a couple of hours, I find myself stuck.
    I have a Data Entry template that just takes a name and a file, and a presentation template associated with that. But I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template.
    I tried using the Tag Helper and I saw that the file properties were available, e.g. name, location, length, however I can't get the template to actually display the information.
    Also, since I can't publish said presentation template (you aren't allowed to publish a presentation template associated with a data entry template), I have to make ANOTHER presentation template, and include the first one, and then make a new portlet that displays that second template. Is this how it's supposed to work? It seems awfully complicated for such a simple task.
    I would greatly appreciate any input anyone can give. Thanks!
    Edited by: user10704201 on Dec 12, 2008 12:32 PM

    " I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template. "
    While I believe that this is a correct statement, you can't use pcs:foreach to get all items associated with a DET, I think that what you really want is to display all the content items in a folder or in a list. The 2 ways I most commonly do it are:
    use a list
    1) create a DET for the main portlet item (for example, news stories) with a property of type list
    2) create a DET for the type of item that goes into the list (for example, news article)
    3) create a Content Item based on your main portlet item DET
    4) add items to the list
    5) iterate through the list in your presentation template (pcs:foreach expr="item.myList" var="mylistvar"...)
    You can also tell each news article to automatically add itself to the news stories list. (Look in the DET for this setting)
    use a folder
    you can also just create your list items in a folder and then loop through the folder (pcs:foreach expr="folderByPath(item.folder,"folderName")"...

  • How to publish a File Content Item via EDK?

    I'm trying to publish a "File Content Item" via the EDK.
    CS EXPLORER
    Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
    EDK
    However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
    The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
    In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
    Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
    thanks,
    Michael

    Hey there,
    Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
    Sarah

  • Best practice for implementing META tags for content items?

    Hello,
    The portal site I'm responsible for managing our content (www.sers.state.pa.us) runs on the following WebCenter products:
    WebCenter Interaction 10.3.0.1
    WebCenter Publisher 6.5
    WebCenter Studio 2.2 MP1
    Content Service 10gR3
    The agency I work for is one of many for the commonwealth of PA, which use this product suite, and I'm encountering some confusion on how to apply META tags to the content items for our site, so we can have effective search results. According to the [W3C site's explanation on META tag standards|http://www.w3schools.com/tags/tag_meta.asp], the tags for description, keywords, etc, should be within the head region of the HTML document. However, with how the WebCenter suite's configuration is set up, the head section of the HTML is closed off by the end of the template code for a common header portlet. I was advised to add fields to our presentation and data entry templates for content, to add these meta fields, however, since they are then placed within the body section of the HTML as a result, these tags fail to have any positive impact on the search results. Instead, many of our content items, when searched for, the description in the search results only shows text that is displayed in the header and left navigation of our template, which come early in the body section of the HTML.
    Please advise as to possible method(s) that would be best to implement usage of META tags so we can get our pages containing content to come up in search results with this relevant data.
    Thanks in advance,
    Brian

    if i remember right the index server will capture meta tags even if they are not in the <head> section. it is not well formed html but I think i remember that we created meta tags down in the body section and the index server still picked them up. you might try this and see if it still works. i believe it worked in 10gR3. Let me know your results.

  • Customer statement line item sorting

    Hello SAP Gurus,
    We use a customer statement which has SAP delivered program and 'z'type form, but our requirement is to sort the line items inside the statement.
    I tried using o7s6 - Line item Corresponding sort variant (SPRO>F/A>F/A Global Settings-->Correspondence)in that how would I create a sorting variant that will sort line items based on due date.
    And also I believe some configuration need to be done in variant for program i.e., SE38--> give the program name and execute (F8) --> in side this there are options to sorting by due date but I was not able to achieve what I want.
    Can anyone please help me with this.
    Thanks
    Kishore
    Message was edited by:
            kishore

    Hello
    follow the link and you could get more info
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/01/a9c1cb455711d182b40000e829fbfe/frameset.htm
    Editing Line Items
    You can edit line items for a payment or an exception list at a second list level. You can use the following functions to help you edit line items:
    Sort
    Search
    Change line layout
    To edit line items of a payment, double-click the desired payment line.
    The system then displays the open items of this payment on another screen.
    Sorting Line Items
    To sort open items, choose Edit ® Sort. This brings up an additional window where you can sort the line items according to four criteria and define a sequence (see "Sorting Payments" in Editing Payments).
    Searching for Line Items
    To search for particular open items, choose Edit ® Find. Select a search criterion and enter the desired values or value ranges (see "Searching for Payments" in Editing Payments).
    Changing the Line Layout
    To change the line layout, choose Settings ® Line Layout, and select the required line layout variant. There are four variants delivered with the standard system.
    The standard setting for the sort, find, change line layout, and display totals functions depends on your system configuration. You can change it in Customizing.

  • Checking in a revision to an existing content item

    Using Site Stuido I’m using following code to build a custom screen
    <!--$dDocName="D_027263"-->     
    <!--$executeService("DOC_INFO_BY_NAME")-->
    <h1>WorkTrack - Reports </h1>
    <form action="/idc/idcplg" method=GET>
    <input type="hidden" id="IdcService"     name="IdcService" value="CHECKIN_SEL">
    <input type="hidden" id="dSecurityGroup" name="dSecurityGroup" value="<!--$DOC_INFO.dSecurityGroup-->">          
    <input type="hidden" id="dID" name="dID" value="<!--$DOC_INFO.dID-->">     
    <input type="hidden" id="dDocAccount" name="dDocAccount" value="<!--$DOC_INFO.dDocAccount-->">          
    <input type="hidden" id="dDocAuthor" name="dDocAuthor" value="<!--$DOC_INFO.dDocAuthor-->">     
    <input type="hidden" id="dDocName"           name="dDocName" value="<!--$DOC_INFO.dDocName-->">
    <input type="hidden" id="dDocTitle"      name="dDocTitle" value="<!--$DOC_INFO.dDocTitle-->">
    <!-- <input type="hidden" name="dRevLabel" id="dRevLabel" value="5">
                   <input type="hidden" name="doFileCopy" id="doFileCopy" value="1">-->
    <input type="file" id="primaryFile" name="primaryFile" maxlength="250">
                   <input type=submit name=submit value="Check In">
                   </form>
    <!--$dDocName="D_027263"-->     
    <!--$executeService("CHECKOUT")-->
    And when I browse and attach a file and submit Check In, following error is received.
    Content Server Request Failed
    Content item 'D_027263' was not successfully checked in. The content item must have a primary file.
    Can some one please let me know what is the reason for this error.
    Thanks,
    Srinivas.

    shouldn't the method be a POST not a GET? I don't think that will end up being the "whole" problem, but I think it might be contributing to issues...

  • How to know precisely when the revision of a content item is released?

    Hi,
    I have written a filter to handle delete event of content item revisions. Whenever a revision of a data file (WCM data file) is deleted my filter gets triggered and and checks for some criteria on our meta data. When the criteria is met it has to compare the contents of the revision that is deleted with the new revision. Since the revision will be deleted when my filter is exited, I copied the contents of the revision that is deleted and invoked a java thread with required document information.
    In that thread I am checking for when the revision is successfully deleted so that I can read the contents of new revision and compare them with old revision.
    For that I calling DOC_INFO_BY_NAME service from my thread and am checking until the following values for below meta data are in effect
    dStatus=RELEASED
    dReleaseState=Y
    Unfortunately this is not working properly. I am still seeing the data file content of deleted revision only. For testing purpose I put a sleep of 10 seconds in my code instead of reading the meta data values which is making the code work as expected. I am to get the contents on new revisions after the sleep time. But I don't want to work this way as this is not a guaranteed mechanism.
    How to know for sure when the revision is released?
    Regards,
    Pratap

    Hope as you mentioned I would be able to use link manager. That would make my work much simpler. But just want to ensure that we both are on the same page relating to my requirements. I still feel there is some gap in what I have tried to explain and what you understood. May be I couldn't put it in simple words.
    I will try my best to explain the requirements again in a simpler manner. This is only to ensure that I wouldn't end up spending lot of time in understanding new stuff but only to relaize at later time it may not work for me. I haven't used Link Manager before. That is why I am speculating a bit. I will start looking into the documentation of the Link Manager and Related Content to checkout if they work for me.
    First thing is that the links are not just present in static lists. They can also be in content generated using WYSIWYG editors and Image elements.
    Second when I talked about HTMLs they are not true content items. We are generating these HTMLs based on the structure of the site studio data file that is checked-in. I think it would be more clear if I add more details here.
    The data files that I have been referring so far are bit complex. Our site studio contibution site allows creation of parent content items like detailed page, news articles etc and child items like RelatedSections, FAQ Items etc. The child items are referenced in the parent content items for organizing the parent content item's structure. All these site studio content items are XML files and each of them can internally contain links to other items. In fact the child items can have references to parents items or other childd items as static list (with link selector elements) and WYSIWYG editors are used while creating these content types (parent and child items).
    Finally we generate the HTML only for parent items and display them on our portal. Child references are used only for defining parent item structure and the generated HTML for the parent item contains the details of child items. Our differentiation of parent and child is in the context. HTMLs that I have been talking so far are these ones only. They are not real content items.
    The HTML will be generated when ever the parent item is updated and approved in the last step in our workflow. Now since parent item's HTML is dependent on child items, whenever a child item is updated and approved in the last step of workflow we should look up for all the parent items that are referring to this child and regenerate the HTML for those parent items using updated contents of this child.
    Similar logic of HTML regeneration should be applied in the delete events.
    Finally the revision related issues that I listed for data files apply for images as well. Since the images are also managed content items with multiple revisions they are maintained in site studio content items with their dDocName instead of its file file path and extension. Lets say an image is being referred in one of the parent content items and the image extension at the time it was initially used in the parent item is gif. The HTML contents for this parent that get generated will have gif extension for this image item. Now after some time if the user checks-in a new revision for this image item and lets say the extension now is png. But the HTML generated for the parent item is still having .gif in the img src attribute. Which means we need to re-generate the HTML in this case by checking where all this image item is referred.
    If link manager can be helpful in meeting the above requirements it would be great. It shouldn't matter if there is bit of customization work involved.
    Regards,
    Pratap

  • Item Type Based on PL/SQL stored proc causing errors

    I am getting the following error when I add this item type based on a pl/sql stored proc that generates html based on the stored proc... the stored proc returns find but the other porlets get Error Message in there headers and in the porlet content I get:
    Error: The listener returned the following Message: 503 Service Unavailable....
    I also get the same error if I click on a link that is generated from my stored proc for the entire page I get the error:
    Error: The listener returned the following Message: 503 Service Unavailable
    and get nothing else returned...

    Greetings
    I suggest you take a look at the following page and have a look on how to create portlets. Since the PL/SQL PDK allows you to create your own portlets inside the Oracle Database there should be no problem for creating the content inside a portlet the way you want it.
    http://www.oracle.com/technology/products/ias/portal/pdk.html
    Best regards
    Johan

  • Content presenter: datasource based on CMIS query with URL parameters

    Hi all,
    I am trying to create a page containing a content presenter taskflow that is based on a CMIS query containing URL parameters. In my component properties I define the following query for my datasource:
    +SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='${param.qblSubGroep}'+
    I have a URL parameter qblSubGroep containing the value "Nieuws".
    Somehow my page does not show any content. It looks like the parameter value is not passed to the data source query. When I change my query to
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='Nieuws'
    so, I hardcode the value of my URL parameter in my query, the expected content items are shown.
    Also, I have another page containing a content presenter taskflow for a single item, based on the data source:
    +${'WebCenterSpaces-UCM#dDocName:'}${param.dDocName}+
    In this case, URL parameter values for dDocName are passed correctly and content presenter is showing the document with dDocName as entered in the URL.
    Does anybody have any idea on how to solve this probem?
    regards,
    Harold

    hi all
    when i try using cmis query with Arabic characters it display no results .
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE AND ora:p:xAgrPressMag LIKE'جريدة الرياض'
    this is the query i am using and the value inside ora:p:xAgrPressMag is correct and i try search this value inside content presenter normal search and it display results i am afraid that cmis query doesnt accept arabic characters
    any suggestion please its top urgent
    best regards
    Edited by: 975169 on Feb 26, 2013 12:59 AM

  • Publishing Content Items through API

    Hello,
    I am currently using EDK 5.3 for publishing content items. I have been sucessful in editing an existing content item using APIS. However It looks like APIS doesn't have a way to schedule to publish content items for a future date.
    I tried to do some reverse engineering and found out that this information is stored in pcsscheduledcontent and pcsscheduleitems tables. I was able to figure out how to change the dates as this are stored in pcsscheduleitems table,however can't find out where are the values are being stored for time.
    Say, I want to publish the content item for 08/28/2008 4:00 pm using the APIS, I am able to get to the date from the above 2 tables but really can't find out where the time is stored. I have tested from the User interface that the time is also retained based on the options we pick.
    And also I have seen that the Loadid keeps on increasing for every change I make.
    Can someone please help me/ guide me in the right direction?
    Thanks.

    pcsscheduledContent table. schedule something to be published in the future and then do a select on that table with an order by clause of :
    ORDER BY ITEMBEGINDATE DESC
    The itembegindate column contains the date AND time of the publishing schedule. you may just not be converting the value correctly.
    hth,
    Robert

  • Moving Content Item Using API

    Hi Everyone,
    I'm try to create winform application with control tree that enable the users to move item from source folder to destination folder.
    I tried to use the CopyContentItem Method and then delete the source item but I found that this mothod creates the item in the same folder.
    Does anyone have experience with such task and does it mean that I need to create new content item in the target folder and getAllProperties from the source item and set for each property his value manually???? It's insane....
    Guy

    Hi,
    To create your own custom scheduler task, check this:
    https://forums.sdn.sap.com/thread.jspa?threadID=28955
    So in your code you should perform a copy/replace operation of your xml with KM Api.
    Check this for an example:
    https://forums.sdn.sap.com/thread.jspa?threadID=100695
    Greetings,
    Praveen Gudapati

  • Error when doing checkin of content item programatically

    Hi,
    I am using CHECKIN_NEW and CHECKIN_SEL services for creating or updating a content item programatically.
    Called these services via executeServiceSimple("CHECKIN_NEW") or executeServiceSimple("CHECKIN_SEL") api calls from my service, based on whether the content to be checked in is new or to be updated. I have set all the metadata values of the content file in the m_binder local data of the service object.
    When I executed them I am getting the below error
    ============================================
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
    Caused by: intradoc.data.DataException: !csCheckinFileKeyNotSpecified,primaryFile
    at intradoc.server.DocServiceHandler.addFile(DocServiceHandler.java:3251)
    at intradoc.server.DocServiceHandler.addFiles(DocServiceHandler.java:410)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sitestudio.SSClassHelper.invokeRaw(Unknown Source)
    ======================================================
    I have printed out all the local data in the m_binder object. The primaryFile value is pointing to the right file path. The file is also been created in the correct location.
    The dID, dDocName, dOriginalFile, dRevLabel values are all set properly. But still I am getting this error. I am not able to figure out the cause of this. Please help. Is this approach incorrect?
    -Pratap

    I'd use CHECKIN_UNIVERSAL & add primaryFile:path to the binder.
    See the services reference guide for full service details.
    Thanks,
    -ryan
    Ryan Sullivan | ECMconsultant
    http://www.ecmconsultant.net/

Maybe you are looking for