How to sort (to display the last comment) a comment in a web template

Hi,
I need your help regarding how to display the last comment of a report in a web template, comments managed via the content module com.sap.ip.bi.rig.DocumentContent.
Summary of the customer need :
the customer wants to manage comments for a report. The customer does not want to comment each line of a report but  comments in a report as a whole, we want to display the last comment (among all comments) in the web template.
What I have done so far :
I have implemented the paper "Maintaining and Printing Comment for Each Line in the Report" ( http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a046a839-f000-2d10-67af-b53d73894a75), and I have adjusted it to my needs : now I can enter several comments for a report, I can display them via the context menu.
BW displays only one comment within a web template via Document Content moduleu201D (com.sap.ip.bi.rig.DocumentContent).
The documents are created under KM, and I can saw them (as administrator) in the KM repository, under the folder /bw_document/InfoProviderData ... OK.
What I can't get through :
I want the web template to display the last comment (not the first)  but the web template stills display the first comment. We think it's a sorting issue or a display option (The web template always display the first comment created)
We tried to maintain portal and KM customizing without success (in the portal System Admin -> System Config -> KM -> CM -> UI -> Settings -> Collection Renderer Setting for example). We think we can get through by java script coding in the web template, but we don't know how to do it. Maybe we have not reach the right option in KM customizing ?
have you ideas to resolve this issue ?
Thanks in advance,
Laurent

We have found a work around solution, by managing IP functions in the web template... to force BW to sort the items as we want.

Similar Messages

  • Run or display the output in Oracle developer form runtime web

    Hi guys,
    I have installed oracle forms10g in windows 7. im using firefox v.2. when i run the form, the Oracle developer form runtime web is not opening. the output is display in the mozilla firefox itself.
    but how to run or display the output in Oracle developer form runtime web?
    Thanks in advance

    What's the problem? What do you mean with the form, the Oracle developer form runtime web is not opening and the output is display in the mozilla firefox itself?
    Is the Form open or not? If you see you form, where ever, then the "runtime" is running!
    Is it displays within the browser window? But you expected it in an own window?
    If that's the case you have to set separateFrame = TRUE in fomsweb.cfg.

  • The calendar sync is recently not working correctly, not display "All events" but it only displays the last six months for my individual entries. My repeating entires do go back further, though. How do I fix?

    I have an iPad 5.1.1. The calendar sync has started to not work correctly. I have it checked "All events," but it only displays the last two months for my individual entries. My repeating entires do go back further, though. How do I fix?

    HI Jason269. Thanks for your reply, however I wrote that I already have "All events" checked. If All Events is checked and it doesn't diaplay all events, how do I fix? It seems this is a common issue, as I have read many others on here state the same problem.
    I believe my problem occurred when I synced my iMac calendar to my iPad calendar using yahoo. Yesterday, I unsynced them on my iMac controls. When I checked my iPad calendar, all of my old entries reappeared - but only for five seconds and disappeared again. So, the data is saved and still there but cannot be displayed, even when I have All events checked. In fact, it only shows my individual entries for the last two months, but does show all my recurring entries. If I switched to last six months, I will see everything for the last six months. If I switch back to all events, it is only for the last two months.
    As I mentioned, others on here have expressed exactly the same issue, including the two month example and having used yahoo.
    For legal purposes, I need to be able to use the information from my indidual calendar entries in an upcoming court case. So I really need to fix this ASAP!

  • How to display the last value of a field in a group in the group header

    I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record).  I can not use the group footer, which would be the natural place to find the last value.  It must be in the group header because there will be a subsequent group within the unit group.  In other words, the grouping is as follows:
    Unit Group Header (Display last quiz score in unit)
    SubUnit Group Header (Display other detail summaries)
    Detail Record (including quiz score)
    SubUnit Group Footer
    Unit Group Footer
    While there is a minimum/maximum summary function, there is not a first/last function.
    Fuskie
    Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...

    Hi Fuskie,
    One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
    Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the  values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
    Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
    Patrick

  • Display the last item in Content Query web part

    Edited my post
    I was trying to create a CQWP that will display 5 blog posts in the following format:
    Name of the blog                | Previous blog posts:    |
     Post 5                               |  Post 4                     
    |
     Description                        |  Post 3                     
    |
                                             |  Post
    2                      |
                                             |  Post
    1                      |
    --------------------------------------------------------- |
    This was my first time using CQWP and XSLT. So the guys in this forum helped me with the code that finds the last item and splits it from the rest of the posts.
    But when I try to create a format like the table above, is not possible, because <xsl:Template keeps repeating the layout. It seems that CQWP is not made for fanncy layouts. I think it functions in a top-to-bottom fashion.
    If anyone knows how to create the format above, I will be very greatful.
    First post in this threat:
    Can anyone tell me how can I display the last item added using CQWP and XSLT?
    The code below displays all titles. I don't know how can I get the last item. The xslt template below works like a repeater control.
    Any help will be very much appreciated.
         <xsl:template name="abc" match="Row[@Style='abc']" mode="itemstyle">
             <xsl:value-of select="@title"/>
         </xsl:template>
    thank you.

    Try this (you'll need to modify the widths according to your requirements, and sort you're list so that most recent items is returned first)
    <xsl:template name="TestCount" match="Row[@Style='TestCount']" mode="itemstyle">
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="ItemNumber">
    <xsl:number></xsl:number>
    </xsl:variable>
    <xsl:choose>
    <xsl:when test="$ItemNumber = '1'">
    <div style="float:left;width:100px;margin:5px;display:block;">First Item: <xsl:value-of select="$ItemNumber"/> (<xsl:value-of select="$DisplayTitle"/>)</div>
    </xsl:when>
    <xsl:when test="$ItemNumber = '2'">
    <div style="float:left;width:100px;margin:5px;display:block;">Last Item: <xsl:value-of select="$ItemNumber"/> (<xsl:value-of select="$DisplayTitle"/>)</div>
    </xsl:when>
    <xsl:when test="$ItemNumber = $ItemCount">
    <div style="clear:both;float:left;width:100px;margin:5px;left:105px;display:block;">Last Item: <xsl:value-of select="$ItemNumber"/> (<xsl:value-of select="$DisplayTitle"/>)</div>
    </xsl:when>
    <xsl:otherwise>
    <div style="clear:both;float:left;width:100px;margin:5px;left:105px;display:block;">Item Number: <xsl:value-of select="$ItemNumber"/> (<xsl:value-of select="$DisplayTitle"/>)</div>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Regards, Matthew
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • How can I just display the selected value of a listbox in a report without the reverse display and selection buttons?

    I am using a table which contains a text field with a lookup. I want to use the selected value of this field in a form which is acting as a selection form. No editing of the field's value is permitted. How do I just display the value of the field (which
    is considered a listbox on the form) without the reverse display and the up and down selection buttons. 
    I can provide an illustration of the condition I am trying to overcome, but this system doesn't accept it.
    Thank you for any suggestions or clarification you can provide.
    Marj Weir

    Thank you.  I'll try that approach. 
    I found, after much experimentation, on a similar problem involving a multiselect lookup field,  that if I make the field invisible, and add a  textbox that displays the fieldname plus .column(0), it displays all the selected entries. 
    E.g.: staff.Column(0)
    Staff is the field containing the last names of selected staff members. 
    staff.Value only shows the first name in the lookup list whether it is checked or not, so this is useless.
    staff.column(0), however, (inexplicably) shows all the selected names, e.g. Jones, Smith, Wiggins.
    Marj Weir
     

  • How to set focus on the last row of JTextPane

    how to set focus on the last row of JTextPane?
    import javax.swing.*;
    import javax.swing.text.html.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MyGUITest extends JPanel implements ActionListener
    {   public static void main(String[] args)
        {   SwingUtilities.invokeLater(new Runnable()
             {   public void run()
              {    JFrame f = new JFrame("My GUI");
                  MyGUITest GUI = new MyGUITest();
                  GUI.setOpaque(true);
                  f.setContentPane(GUI);
                  f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  f.pack();
                  f.setLocationRelativeTo(null);
                  f.setVisible(true);
        JTextPane txtP;
        JButton add;
        HTMLEditorKit hek;
        HTMLDocument hd;
        String txt;
        MyGUITest()
        {     this.setLayout(new BorderLayout());
         this.setPreferredSize(new Dimension(400,200));
         txtP = new JTextPane();
         txtP.setEditable(false);
         txtP.setContentType("text/html");
         txtP.setText("");
         hek = new HTMLEditorKit();
         txtP.setEditorKit(hek);
         hd = new HTMLDocument();
         txtP.setDocument(hd);
         JScrollPane sTxtA = new JScrollPane(txtP);
         add = new JButton("add");
         add.addActionListener(this);
         sTxtA.setBorder(BorderFactory.createTitledBorder(""));
         this.add(sTxtA, BorderLayout.CENTER);
         add(add, BorderLayout.SOUTH);
         new Thread(new Runnable()
         {   public void run()
             {   while(true)
              {   try
                  {     Thread.sleep(100);
                  }catch(InterruptedException ex)
                  {     ex.printStackTrace();
                  appendText("This is <b>HTML</b> text");
                  //add.doClick();
         }).start();
        public void actionPerformed(ActionEvent e)
        {     txt = "<b>asd</b>";
         try
         {   hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
         }catch(Exception ex){   ex.printStackTrace();   }
        public void appendText(String txt)
        {     try
         {   hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
         }catch(Exception ex){   ex.printStackTrace();   }
    }thanks~

    anIdiot wrote:
    im not sure what is the caret location...So don't youthink you should have looked for it in the API?
    anyway, i want the scroll bar to scrolled down automatically when the output is displayed.
    normally, the scroll bar is scrolled down automatically when a new text is inserted, but it doesnt work on this timeGo through camockr's http://tips4java.wordpress.com/2008/10/22/text-area-scrolling/
    db

  • Chrome browser always comes up displaying the last web page I looked at.

    Just got a Samsung Galaxy S5. Tried out the Chrome browser, and then when I went back to it later it displayed the last website I was on. How can I make it come up with a blank screen (just an empty search box displaying). Thanks.

    Make sure that you either
    1: back out of chrome (not just hit the home button)
    2: close the chrome app in the task manager.
    That way your "home" page will open every time you open chrome, not just the last page you visited.

  • Auto display the last data in array

    How can I auto display the new data in array without the scroll bar?

    If i understand you, you want show last data of array.
    You have use property node: IndexVals. You write there indexes of array frome there you want show the data.

  • How to see Report for the last 12 months using saved filters

    Hi
    I need to display the last 12 months report using Saved filters
    When i tried to didplay the report it is showing like SQL error
    Can anyone help me how to diplay the report of last 12 months using Saved filter.
    Thanks & regards
    Manu

    Hi Refere the below thread,
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    Curtesy by Shiva.
    Thanks,
    Balaa...

  • HT2500 How do I not display the preview pane in mail until I open it with a double click? Some mail I do not wish to open-just delete it.

    How do I not display the preview pane in mail until I open it with a double click? Some mail I do not wish to open-just delete it. New macbook pro with LION OS

    Just drag the divider line between the preview pane and the message list all the way to the edge so the preview is completely closed. Selected messages will open in a new window with a double-click or the return key.

  • How can I re-install the last version of iPhoto, I hate this new version.

    How can I re-install the last version of iPhoto. I hate this new version "Photos 1.0" which installed yesterday on my iMac. Please help. My operating system is OS X YOSEMITE 10.10.3. THANKS.

    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • How do I only sync the last 18 months of emails to my mac mail on the macbook?

    How do I only sync the last 18 months of emails to my mac mail on the macbook? It is currently retrieving all emails from the four accounts I am syncing to and filling up space on my macbook.  I can't work out how to set a limit.
    Any help appreciated!

    Imap is designed to synchronize your mail client with the mail server, this the normal result.
    Switch to POP access if you want it to work asynchronously

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • How can i find out the last 5 numbers dialed without having the phone

    how can i find out the last 5 numbers dialed without having the phone

    log into your myverizon account,go to detail useage

Maybe you are looking for

  • I cannot get my iPhone 4 to connect to iTunes

    When I plug my iPhone 4 into my computer it wont show up in iTunes at all. The first few times it said there was an unrecognized error and it couldnt connect to the iphone but now it just does nothing. Ive tried my old iphone too and it wont connect

  • How many softwares are there to create a setup file for java programs

    Hi, i am new to java I want to know how many softwares are there to create a setup file for java programs. I know one software i.e java launcher to create a setup file. I want to know about any other softwares are available to create a setup file for

  • Will Logic Express and Logic Pro X co-exist on my Mac?

    I use Logic Express. If I buy Logic Pro X can I have both versions on my Mac? I assume I'll eventually move to the new version, but just incase I have issues? thanks.

  • Aperture 3 failed installation help!

    Hey, I'm trying install the aperture 3 trial to test it out as an alternative to lightroom but it just wont install correctly. All I get is a warning "Installation failed" and no other further information. Below is the crash report when I try to open

  • Frustrated with installation of CS6

    I have successfully downloaded CS6- please tell me the next step to actually install the programs- I have unzipped the files and tried to install the Windows installer packages it gives me a message "Please install PDF Settings CS6 using Setup.exe";