Dynamically Updating Content Server Portlets

[urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
ArticleName Author Title Date mystory author1 title1 04/05/01
story2 author2 title2 06/07/04
story author3 title3 01/02/03
So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
First Problem: Passing Information
I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
Second Problem: Dynamically Updating PCS Tags
Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
Thanks a lot,
Jason Grauel

You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
return true;
Randy

Similar Messages

  • Searching multiple Content Server Portlets

    I am able to search single Content Server Portlet and get results using following lines of code.
    IPTSession ptSession = new InProcSession();
    ptSession.Connect(AppSettings.PTUserName(), AppSettings.PTPassword(), null);
    IPTSearchRequest ptSearchRequest = ptSession.GetSearchRequest();
    ptSearchRequest.SetSettings(PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_CONTENT);
    ptSearchRequest.SetSettings(PT_SEARCH_SETTING.PT_SEARCHSETTING_ASSOC_PORTLET_ID, 10468);
    IPTSearchQuery ptSearchQuery = ptSearchRequest.CreateBasicQuery(query, null);
    IPTSearchResponse ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);
    return ptSearchResponse;
    However Type Cast exception comes at run time when we pass array containing multiple Portlets ID although code gets compiled
    IPTSession ptSession = new InProcSession();
    ptSession.Connect(AppSettings.PTUserName(), AppSettings.PTPassword(), null);
    IPTSearchRequest ptSearchRequest = ptSession.GetSearchRequest();
    ptSearchRequest.SetSettings(PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_CONTENT);
    int[][] ar = new int[2][];
    int[] int1 = new int[]{ 0, 10468 };
    int[] int2 =new int[]{ 0, 23757 };
    ar[0] = int1;
    ar[1] = int2;
    ptSearchRequest.SetSettings(PT_SEARCH_SETTING.PT_SEARCHSETTING_ASSOC_PORTLET_ID, ar);
    IPTSearchQuery ptSearchQuery = ptSearchRequest.CreateBasicQuery(query, null);
    IPTSearchResponse ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);
    return ptSearchResponse;
    It will be quite useful if anyone of you can help us if Plumtree API support this. Or else we need to build another layer to search each Portlet and merge results.
    Platform Details:
    Plumtree Portal 5.0.4
    Content Server 6.1
    Regards
    Kishore GVK

    Hi Praveen,
    I have not done portal configuration for SAP DMS. But as per the link below, you can assign multiple SAP DMS repository managers which can refer to separate content servers.
    http://help.sap.com/saphelp_dimp50/helpdata/EN/32/2a840d132af04fa2f0b31ebf3e8a78/content.htm
    Wait for other expert comments if they can answer your query.
    Regards
    Amit

  • Content Server Portlet Template Searching

    I am trying to use the Community Directory Portlet Template. I basically used it as it came (no editting of templates). I created a couple of folders and added & published content items in those folders.
    The problem is that the Search within the portlet is not returning anything (even searching for '*') returns nothing.
    Is there some setting I missed or something? I've tried publishing the whole folder from Content Server Explorer and still no luck. Searching for text in the published items from the Content Server Explorer does work, but searching from the portlet does not.
    Thanks.

    Hi Raj ,
    ORA-01013: user requested cancel of current operation error comes up usually in 2 cases :
    1. When CS is losing DB connection intermittently
    2. DB is timing out with the queries being fired from the UCM
    Add the config variable DatabaseConnectionKeepAliveInterval=300 (for SCS to send Keep Alive Packet to the network so that the connectio drop is avoided)
    The value provided is ins secs.
    Secondly drop / rebuild the indexes for the following tables :
    DOCMETA , COUNTERS, DCOUMENTS , REVISIONS
    Then execute the statistics procedure on the DB so that all the indexes are updated with the latest db stats.
    Test to see if the issue still persists.
    Hope this helps
    Thanks
    Srinath

  • JavaScript and Content Server Portlets

    Header, footer, news, custom, doesnt matter. Can you use javascript in them and if so, to what extent? For mouseovers, animation, div tag management and manipulation, etc...

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Content Server Portlets Not Displaying

    Help!
    We're running Portal v5.04, Java under Windows, Content Server v6.0, Tomcat v4.1.31. Multi-machine installation...
    After logging into the portal as Administrator (or some user with admin privileges), we get an error where the Content Server Administration portlet is placed saying "Content Administration cannot be displayed due to an unknown error.". Get the same thing with any other Content Portlet...
    This installation was fine beginning of last week, but started showing this problem late in the week. All of the diags I know of for testing Content, Collab, and Studio (all installed on the same server) show all greens. Tried looking at logs - nothing. Tried PTSpy during login (portlet is on "My Home" page - should display automatically) - nothing remarkable.
    We have multiple admins, and it's possible that something was changed (unbeknownst to me). Frustrated and not sure even where to start looking for a solution to this. Any Ideas?
    Thanks!
    Mike Sanders, LLUMC

    The fact that bouncing EBS fixes the issue temporarily indicates that the problem is most likely on the EBS end, but we haven't encountered that specific issue. What OS are you using to host EBS? Are you purging the J2EE cache when you bounce the services?
    Feel free to reach out to Anne or myself if you'd like to dive into this. We could test with an alternate content server to see if that helps isolate the problem.
    Best,
    John Hobart

  • Content Server News Portlet major design flaw ?!

    I ran into a Content Server 6.1 issue which is really frustrating me. I am wondering if I am doing something wrong or if it is a design flaw: 1. I created a content server news portlet "out of the box" and added it to my MyPage.2. I created and published 2 news articles.3. I edited the 1st article and just saved it. I did NOT PUBLISH it.4. I edited the 2nd article and PUBLISHED it. The news index is re-published automatically to reflect the changes of the 2nd article which has been published. But the index now displays the changes of BOTH articles, even the unpublished! Furthermore the 1st article can't be opened from the index anymore if the name property has been changed. As the published file name changes with each version and especially when the name is updated, the news index links to the new published file name - but it has never been created as I didn't publish the 1st article! I understand why this is happening: The index content item holds a list of all article content items and is published whenever an article is published / deleted / expired. But until now I thought that content server is holding the last published version and includes this into the list until a new version is published. That's not the case! Imagine this on a production environment with workflow activated: one article was approved and published while the other still needs to be reviewed, but it's (unreviewed) index data like headline etc. is already displayed in the index?! And in worst case the article can't even be opened. You just get the server error "page not found". Many of my content items for a current big project follow the idea of the news template, e.g. HR Staff Overview (persons = articles, overview = index), so I am kind of stressed by what I found out. Has anybody made similar a experience and found a workaround for this? Perhaps one of the support people could explain how the news portlet is intended to be used with this severe behaviour? Am I expecting too much? Is updating an already published article not possible? But why are version mechanisms included for content items then? I appreciate your comments. Thanks.

    Thanks for the quick reply.
    We are using Content Server 6.1 with all Hotfixes installed and we are not planning to upgrade to G6 at the moment.
    As far as I understood the 'filtered.published' property contains the date the content item was published the last time. So it will always be 'true' if the item has been published in the past, no matter if it's currently published or not.
    The index template with the code snippet you sent will display the currently not published (but changed) item properties whenever another item was published. Have you changed the design in 6.2 so that properties of an item in a list property of another item are just copied and not linked?
    As a workaround I now compare the 'modified' property with the 'published' property and if it is greater or equal I don't display it in the index. But that's not the way Content Server was designed to behave, is it? With this solution I can suppress the item in the list if it has been modified after the last publishing, but of course I rather want to have the data of the last published version.
    Isn't that possible? Is it possible in 6.2? Is there any way to update Content Server to 6.2 without acquiring G6?
    RegardsStefan

  • Weird Error from Content Server

    We are using Apache-Tomcat, I have built some content server portlets that display images, if I use .jpg's I get these strange errors, I have seen them when using bitstreaming on other Non-content server portlets, my solution was to use png's. Creating PNG's for this particular content server portlet is not an option, anyone seen this error: Plumxoac1f

    CH,
    Not I do not have a colition to this, but it has not happened to me in a while.
    Good Luck with this and hope someone chimes in to help you.

  • Content Server not working after 5.0.2 upgrade

    We upgraded the plumtree to 5.0.2. After upgrade, content server portlets not working properly. When I publish my portlet, Interface says it is published, HTML file generated at the published location, but log says
    com.plumtree.search.UnknownTypeException: IndexManager.enqueue() : Could not find PTDocMaker for key PTCONTENT
    Portlet displays
    Error: No Url is available for this portlet. It may not have been published.
    Any Idea ?

    Hi Ravi, from the Release Notes for Content Server 5.0.2, there's this note "Publish Dialog does not show any error when search index fails but an error "com.plumtree.search.UnknownTypeException: IndexManager.enqueue() : Could not find PTDocMaker for key PTCONTENTTEMPLATE" is recorded in pcs.log. (Issue #27541) "
    So you should make sure that the search server is running (just by doing a banner search). Assuming that's fine (it probably is), the likely culprit is an installation problem. Check the Content Server pcs.log file (located in PT_HOME\ptcs\5.0\settings\logs) for any error messages related to search api initialization. This cryptic error you're observing occurs when the search api initialization fails for some reason, the error is not gracefully caught and surfaced to the user. The pcs.log file may give a clue.

  • Error on update of document stored in content server

    Error on update of document stored in content server
    On a regular basis (but not reproducible) we find that after updating a document, it is deleted from content server (or at least it cannot be retrieved).  These problems have only been experienced since we switched to using content server as our storage repository, as opposed to R/3.
    We create and maintain documents through a bespoke transaction, which calls standard SAP functions BDS_BUSINESSDOCUMENT_CREA_TAB and cl_bds_document_set=>update_with_table.
    Whilst the errored documents are listed in the BDS via transaction OAOR (business document navigator), an error is received when you try to display it (in our case an MS-Word error indicating file/pathname invalid). 
    We are satisfied that file/pathname are valid and find that this occurs occasionally when a document has been updated.  It appears that the document has been deleted. 
    This bespoke transaction has been running successfully for almost two years, and these problems have only been experienced after switching to content server as a storage repository (as opposed to R3 previously).  Has anyone else experienced these problems? 
    We are running :
    R/3 Enterprise 620,
    SAP HTTP Content Server Version 6.30 Patch 13
    SAPDB version 7.3.0.54

    Hi Sonny,
    To check the connectivity between your content server and Workstation and SAP Server.
    Pls goto the command prompt of your workstation
    give the command like this example.
    C:\>Ping 117.123.45.201
    you will get the reply from the server. here 117.123.45.201 is your content server IP.
    If you are getting the reply then it means that your contentserver and workstation are connected propely.
    Like that pls check the connectivity between your systems.
    Pls check the hosts file of your systems also.
    If the hosts file entry is not maintained, you can check-out file from content server but you cannot check-in the original.
    Pls let me know what kind of error Message you are getting?
    From where you are trying to check-in the Original? From the DIR screen or from CAD Desktop screen?
    Regards,
    MRK
    (reward points if useful)

  • Content server and Dynamic image in PDF

    Hi all,
    I am trying to make up a PDF through SFP transaction in ABAP that has a photograph included in it. This photograph is saved in the content server. The photograph that is inserted depends on a certain number of data and the URL of the picture is dynamically set using function : ARCHIVOBJECT_GET_URI.
    The URL is ok but when I bind this to image object in PDF, the picture does not appear !
    Has anyone dealt with a simlilar problem ????
    Nicolas

    up

  • Error Displaying Portlet Preview created from Content Server templates

    I created portlet from content server announcement portlet template.Whet put on the page this portlet shows the following error message:
    Error Displaying Portlet Preview.Error Getting Content from Portlet.
    Same error with portlet created from the news template.

    If the link exists in TOA01, why is the dosumnet not visible ? When i use the Function Module ARCHIVOBJECT_DISPLAY, i get the error -
    Error when opening document with HTML control:DP_ERROR_GENERAL
    Can someone please let me know what are we doing wrong ??

  • Problem using content from content server in portlet.

    Hi all,
    I create a JSR286 portlet project, add a content server connection then drag content from those connection to jspx by selected create > document - content presenter.
    Problem occur when i deploy the project to portlet managed server.
    I'm not sure any mds they required because while deploying the Deploymeny Configuration was poped up to prompt me select mds repository.
    I don't know what mds repository they required.
    Please help.
    Regards.

    Hi ngsankar,
    Thanks for your reply.
    I have no idea about any schema ;(
    on the integrated weblogic server i can't deploy too.
    Is it possible to use any content from content server in portlet like on portal?
    Regards.

  • Fetch XML from Content server to Portlet and display as HTML

    Hi,
    I want to fetch the XML from the content server and display that XML in the Weblogic Portlet as HTML.
    The main reason is that data will be contributed by the users in UCM and then I had to get that data from content server and display in portlet
    Please Help........
    Thanks,
    Vinod

    Vinod:
    Probably what you're looking for is to bring the content over using the UCM SPI adapter for WLP's VCR:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/intro.html]
    And then to display the content using a custom template using Content Presenter:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/displaytemplatesCM.html]
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/development.html]
    When you say you want to fetch xml, is that because it's a contributor data file? You can either read the property values directly from the VCR, or use the info you get from the node (such as dDocName) to then use a UCM/WCM web service to retrieve formatted content and put it in an iframe. There are a lot of ways to go in formatting the data.
    You can even add edit capabilities to your Presenter template by calling the 'edit data file' web service of WCM.

  • Displaying content item -(IContentItem) in portlet using Content Server API

    Hi,
    I am using the latest Content server API in my remote server to get the published content items. I have to display the content item in the JSP portlet.
    So how to display the content item in the portlet, if you have the IContentItem Object retrieved from the content server ? Is there any mechanism to get the HTML code/JSP code that corresponds to the IContentItem object?(All the content item will be an html or jsp )
    Currently we are extracting the publish url and opening an http connection to retrieve the html, which is not a good solution if you have mutiple portlets in the same page. So please suggest how can I display the content item (IContentItem Object) in the portlet.?

    Hi Anand,
    I am facing the same problem on IBM WebSphere Portal 5.1.
    Did you find a solution to your problem ?
    Thanks
    Ganesh

  • Yesterday's Updates to Dynamic Link Media Server

    I woke to find four updates to CS6 (Au, Ae, Ps, and Pr) yesterday, which the Updater called "Dynamic Link Media Server CS6 1.0.1 Update."
    I updated, and I updated my CUDA about the same time.
    Pr started working slower.  So, I reverted back, using my clone.
    Not sure if this was a coincicence, or which update to blame. 
    I'm back to the performance from both that I was used to.
    The CUDA update was for bugs I wasn't experiencing and for compatibility to 10.8, which I'm not running.
    Was I too hasty?  Do these Dynamic Link updates do anything?  Improve anything?
    MacPro3,1 - CS6 - Quadro 4000 - 10.7.4

    I don't doubt your engineer for a second.  I'm convinced now that the nVidia or most likely the CUDA driver is behind all my Serious Errors.  I was getting them right after opening a project and trying to do anything at all today.  I turned CUDA off, and was able to finish the project.  When that was out the door, I reinstalled the CUDA and nVidia drivers, rebooted, opened my project, enabled CUDA, and Pr has been working without the errors.
    Thank you, Todd!

Maybe you are looking for