How can I display the last items of a region from other Oracle Portal page?

I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format these attributes).
Thanks a lot.

create a stored procedure (f.e. in schema myschema create a stored proc named renderAsHTML)
code for the procedure :
PROCEDURE renderAsHTML(p_itemId varchar2,p_pageId varchar2,p_siteId varchar2) IS
    l_displayName  portal.wwsbr_all_items.display_name%type;
    l_name         portal.wwsbr_all_items.name%type;
    l_publishDate  varchar2(10);
    l_url varchar2(250);
BEGIN
     -- Looking for item datas
     select display_name, name,   to_char(publish_date,'dd/mm/yyyy')
     into l_displayName,l_name, l_publishDate
     from portal.wwsbr_all_items
     where id =p_itemId and language=portal.wwctx_api.get_nls_language;
     -- getting the URL og the item
     l_url := portal.wwpob_page_util.get_page_url(p_pageId, p_siteId);
     -- HTML rendering
htp.p('<.a href="'||l_url ||'/'|| l_name ||'">' ||  l_displayName ||'</.a><.br/>');
htp.p('Published on ' || l_publishDate ');
EXCEPTION
    WHEN others THEN
           htp.p('<.div>Somme error occured , code is ' || SQLCODE || '.</.div>');
END renderAsHTML;
please notice that I've added a dot in HTML tags to avoid this forum to interpret them
note : make sure that you granted "execute" for the public user on teh procedure you've just created.
go to item properties (navigator>shared objects>item types>modify the one you want
go to tab3 (procedures)
set the following options :
type : PL/SQL
call proc : myschema.renderAsHTML
link text : render as HTML
icon : keep blank
select the "display proc results with the item" option
pass the following parameters :
attribute1 : item ID as p_itemId
attribute1 : page ID as p_pageId
attribute1 : pagegroup as p_siteId
Now, in your custom search portlet, go to results rendering, remove all attributes and add the "associated function" attribute.
Now, all the HTML generated by the stored proc will be rendered instead of the item.

Similar Messages

  • How can I display de last items of a region from other page in Portal?

    I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format these attributes).
    Thanks a lot.

    How can I display the last items of a region from other Oracle Portal page?

  • How can I stop the last character of my password from being displayed?

    Sorry, I'm sure this would have been asked before, but I couldn't locate it..
    When unlocking my iPad, how can I stop it from displaying the last character of my password to everyone in the vicinity? This has got to be the fastest way to find out someone's password (just look at the screen as they type their 'secure' password!?). Having the iPad display your password letter by letter is really not acceptable when working in a non-secure environment.
    Is there a setting somewhere, or will this be addressed in a new iOS, or just ignored as a 'that's the way it is'?
    Thanks in advance,
    Andy

    AdventureBear wrote:
    Hi,
    This may have been the way it has been on iOS since 2008 (not sure about that though), however I know (based on working in the IT industry for 20 years) that nobody on this planet can successfully argue that it would be 'acceptable security practice', for me to display 'every last letter' as I type of a secure 'root' password on my screen every day when you log in... Nobody would think it acceptable to display even their LAN/Domain password on the screen in this same manner. So why is iOS different?!
    iOS on a phone (it used to be argued) doesn't need to be very secure as it is almost entirely phone numbers and email addresses that are being stored. However in recent years when the applications got better, and tablets came out, security became a much bigger issue as more and more people started using the functions of 'smart' phones to store more 'sensitive' data.
    Kind regards,
    Andy
    Are you suggesting that someone looking over your shoulder can't see the keys that you're tapping with your fingers? In the interest of security, i would never, under any circumstances, enter a password when others are around.

  • How can i get the last delete picture's info from tlf?

    if i delete the picture from the tlf i can't make the tlf undo
    and I want to get the picture'info with I last time delete from tlf 

    Can you let us know what you are doing to delete the picture, and also how you are undoing it? If it is being deleted through the EditManager delete function, the delete should undo correctly. Some example code to illustrate the problem would help.
    Once the picture has been deleted, TLF has no further reference to it. If you want to keep a reference, you will have to get it before it has been deleted. If you don't have control over the delete, you could find out when the image is deleted by listening for FLOW_OPERATION_END events.
    - robin

  • How can I display the 11000+ "items not shown?"

    I have Elements 7 and running Windows 7 64bit. "Show all" only shows a couple of thousand photos and 11000+ "items not shown."  I have never stacked or hidden any photos.  I've tried everything.  The "show hidden" gives me 0 photos.  When I ask to show a tag of some of the missing photos, I again get 0. The photos are not shown in any of the views.  When I try to reimport the photos, it says they are already there. I need help desperately. I've put too much work into this organizer to start from scratch.

    Thanks for the reply and the terrific FAQ source.  I followed the directions suggested, but things actually got worse.  When I tried display all, I got 0 photos - nada - zip.  I kept messing around and finally success.  I tried so many combinations of things that I'm not sure which actually solved the problem, but I believe it was reconnect all.  I had tried this a couple of times before without success, but this time I deleted from the catalog all items elements couldn't find, even though I knew where they were.  Lo and behold all 13000 photos appeared.  BTW many of those are duplicates.

  • How can i get the address with drag and drop from address book into pages?

    I want to creat a letter withe the new pages. Normaly it was possible to put the adress from the adressbook with drag and drop into the letter. So it was possible to create one letter with many different adresses. But now I didn't find this function any more. How to do ist now?
    Withe best regards and I'm sorry for may bad english
    Klaus

    Sounds like you "upgraded" to Pages 5.
    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • 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 get the lasted vision of visual administrator

    HI:
    when i connet j2ee engine,i get the system warning:
    "visual administrator vision is older than the version of j2ee engine kernel: ..."
    how can i get the lasted vision of visual administrator?

    Get your portal administrator to copy the j2ee/admin from the server you're trying to connect to.  You can then install and run it from your local hard drive.

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • How can I get the last updated email address of the customer ??

    Dear All,
    Please let me know, How can I get the last updated email address of the customer ??
    Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
    Please confirm me what value should be passed into OBJECTID field.
    Thank you.
    Anitha

    Hi Anitha,
      Check if this is something that helps you:
    Change documents in BAS
    CDHDR
    address type 1
    objectclass = ADRESSE             
    objectid = addrgroup + addrnumber     (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
                     'BP  000xxxxxx'
    private address (address type 2)
    objectclass = ADRESSE2
    objectid =  'BP  000xxxxxx000yyyyyyy'   
                            persnumber+adrnr private
    address type 3
    objectclass = ADRESSE3
    objectid =  'BP  000xxxxxx000zzzzzzz'
                              persnumber +comp.address
    The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
    Regards,
    Swarna Munukoti

  • How can i show the first item in the list as selected item

    Aslam o Alikum (Hi)
    Dear All
    How can i show the first item in the list as selected item when user click on the list. Right now when user click the list the list shows the last item in the list as selected or highlighted. Furthermore if the list item have large no of value and a scroll bar along with it then the list scroll to last item when user click it with mouse. I want that when user click the list item with mouse list should show the first item as highlighted.
    Take Care
    Allah Hafiz

    Hi!
    You can set list "initial value" using When-Create-Record trigger.
    I.g.
    :<Block_name>.<list_item_name> := Get_List_Element_Value('<Block_name>.<list_item_name>', 1);

  • When reading an EBook, how can I mark the last page I have read?

    When reading a PDF EBook, how can I mark the last page I have read?

    Hi Pickles 77,
    Sorry to hear you are having issues with your iTunes Store purchase.   The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    To report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase, follow these steps:
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Hope this helps ....
    - Judy

  • How can I display the data in table in separate column?

    I have a vi reading data one by one in the same column.
    How can I display the data with separate column?
    like this:
    data 1 | read | read
    data 2 | read | read
    data 3 | read | read
    (would you mind if I will ask for an example
    because it is much easier for me to work
    with an example)
    THANK YOU.

    If you're reading your data in as a 1D array, this is as simple as using the Reshape Array to make a 2D array. I've attached an example in LabVIEW 6.1 format. The example rearranges a single column of data fill several columns horizontally, but you can easily modify this code to fill the columns downward instead.
    Attachments:
    Data_Column_Example.vi ‏18 KB

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I display the range for LastFullMonth in the header of a report

    How can I display the month for LastFullMonth in the header of a report run in the past so that a report that ran sept 1 2009 selecting data for LastFullMonth (august 2009)  displays sept 2009 in the header even if there is no data selected by the report?

    Good,
    Sometimes I answer these questions and completly miss it....
    ( lack of understanding on my part )   

Maybe you are looking for

  • HDMI output not working MACBOOK Pro (Oct 2014)

    I am trying to get another screen connected to my MBP, I have tried numerous screens and cables to achieve this, but I can not get it to work. Is there a on/off or disable HDMI output on the MBP? I have used various screen, which i know work. And a H

  • Error while installing JAVA 2004s trail version

    Hi All, I have successfully install the ABAP 2004's version my system, now I want Install JAVA version, is it possible install in the same system? I am trying to install JAVA version, I am getting following error. ERROR 2007-11-23 15:58:43 FJS-00003 

  • Issues with writing html coding and how safari interprets it

    Hi, I have been having a frustrating 24 hours with my basically brand new iMac. I have just started a course in web design and just doing a basic html unit. When I put the following in Textedit it comes up very strangely. <!DOCTYPE html PUBLIC "-//W3

  • I am getting an error message if I try to sign into or authorize my iTunes account

    The error message I am getting is "We could not complete your iTunes store request. The file or directory is corrupted or unreadable. There was an error in the iTunes store. Please try again later." I don't know what this means or how to fix it. It h

  • How to view List of Customization request in hierarchy.

    Hello Experts Once customization is saved by an user, how to visualize all the lists of customization request saved in hierarchy wise, also provide more clarity on how to transport (Process of migration) these customization requests from one server t