Portal API's to display "page published as a portlet" using pl/sql

I have a custom pl/sql portlet that we have developed. We want to programatically display the contents of another portlet which is a "portal page published as a portlet". I know when you have a provider portlet you can simply call it like this:
portal.provider_name.show();
But how do you display a page published as a portlet using portal API's?

Nobody has a clue?

Similar Messages

  • 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

  • [Solved]Portal 10.1.4 - Request Help to Modify Item Name using PL/SQL API

    I have a region on a page that contains content items. These are PDF files that were uploaded. I want to know how I can programmatically change the description.
    I have been looking at both set_attributes() and modify_item_post_upload() functions in the API. Is this my best option, or is there an alternative.
    I have been leaning towards calling modify_item_post_upload(), but have a question on the parameters.
    I can get p_master_item_id, but what is p_item_id?
    I would like to call the method like this:
    declare
    l_masterid number;
    l_display_name varchar2(100);
    begin
    l_masterid := <some number);
    l_display_name := 'New Name for item';
    modify_item_post_upload(
    p_master_item_id => l_masterid,
    p_display_name => l_display_name
    end;
    So questions are:
    1. What modifications do I need for a simple call to change an items name?
    2. What additional functions/procedures do I need to call so the display gets updated with the new information? Do I have to clear the cache suing wxutils, or can I just call wwpro_api_invalidation.execute_cache_invalidation; ?
    If you want the "rest of the story" - I created a web front end in JDeveloper that allows specific end users to login, upload files, and delete items for a specific portal page containing content items. One of the common mistakes is a misspelling of the display name by the end user. So instead of deleting an item, then re-adding an item, the end user would like to edit the display name for just the item that has the misspelling. I have set this up in JDeveloper with an edit screen that contains just the display name. Now I need a function/procedure that I can call from the application module that will update just the display name for this particular item. I have already coded an ADF model that uses the search_item and converts the results into a result_set, and use that to create a View Object in the ADF for JDeveloper to use. Now to finish this user request, I just need to figure out the PL/SQL API part for modifying a display name. The item still needs to keep it's reference to the uploaded PDF file.
    Thanks, Ken

    Very nice! I like the code example. In looking at needing to change only the title of the item, I created a procedure that calls set_attribute. Here is the code:
    create or replace
    procedure update_newslinearchive_item (p_masterid in number, p_displayname in varchar2) as
    cursor items_cur(p_id IN NUMBER) is
    select * from wwsbr_all_items
    where masterid = p_id
    and caid = <pagegroup>
    and active = 1
    and is_current_version = 1
    and language = wwctx_api.get_nls_language;
    items_rec wwsbr_all_items%rowtype;
    begin
    dbms_output.put_line('masterid = ' || to_char(p_masterid));
    dbms_output.put_line('display_name = ' || p_displayname);
    -- Login to the portal for access to function calls
    wwctx_api.set_context('<username>','<password>');
    -- Verify that the item to be deleted is in the items table
    open items_cur(p_masterid);
    fetch items_cur into items_rec;
    if items_cur%found then
    dbms_output.put_line('record found');
    wwsbr_api.set_attribute(
    p_site_id => items_rec.caid,
    p_thing_id => items_rec.id,
    p_attribute_site_id => wwsbr_api.SHARED_OBJECTS,
    p_attribute_id => wwsbr_api.ATTRIBUTE_TITLE,
    p_attribute_value => p_displayname
    wwpro_api_invalidation.execute_cache_invalidation;
    dbms_output.put_line('Clearing Cache');
    -- Now clear the web-cache
    wxvutil.invalidate_reset;
    wxvutil.invalidate_uri('<server:port/path/to/page>,0,null);
    wxvutil.invalidate_exec('<server>',4001,'<webcache password>');
    else
    dbms_output.put_line('record NOT found');
    end if;
    close items_cur;
    exception
    when others then
    dbms_output.put_line('SQLCODE = ' || SQLCODE);
    dbms_output.put_line('SQLERRM = ' || SUBSTR(SQLERRM,1,200));
    if items_cur%isopen then
    close items_cur;
    end if;
    end update_newslinearchive_item;
    Thank you for the example for modify_item_post_upload!
    Ken

  • Programmatically display edit link to a portlet

    I am using Oracle Portal Version: 10.1.2.0.2 (Build: 139).
    I have successfully added a portlet to a portal page using pl/sql.
    Does anyone know how to display the edit link for a portlet using pl/sql?
    Thanks

    hi,
    could you please post this question in the portlet development forum ?
    http://forums.oracle.com/forums/forum.jspa?forumID=4
    thanks,
    christian

  • How can i display page number in this format in xml publisher report (1-1)

    in this format
    1-1
    1-2
    1-3
    2-1
    2-2
    2-3
    can i display page nos in this format in xml publisher please help me on this

    Hi,
    Use the SET COUNTRY..
    SET COUNTRY 'US'.
    write: / sy-datum.
    SET COUNTRY 'IN'.
    write: / sy-datum.
    Thanks,
    Naren

  • Display a form as a portlet in a page

    Is it possible to display a form as a portlet in a page and pass it parameters?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Ben Segers ([email protected]):
    Is it possible to display a form as a portlet in a page and pass it parameters?<HR></BLOCKQUOTE>
    It's very much possible to publish the Form as a Portlet. Do the following things:
    1) Select the Application in which your Form is residing.
    2)In front of your Form name,in the Actions cloumn, Click the link named "Grant Access".
    3) In the page that is presented to you you will see a title "Portal Access" below which there is a Check Box named "Publish to Portal".
    Check this Box and Click "Apply" and then "Close"
    This will create a Portlet of that Form which you can use in your Page
    Also I am struggling about passing the parameters from one Form to another. I have posted this in the Forum but the things that they advise to try from the FAQ have not yet worked properly for me as yet. Also if you come across any solution pl. let me know

  • Render Portal Style Sheet in New Page

    I created a PL/SQL Portlet that displays a list of users. When you click on a person, a new window pops up and displays information about that user.
    That works find. However, I would like the window to have the same look and feel as the portal page. I need to bring the page style sheet (css) over to the next window. Do you know if a PL/SQL Portal API that can generate the style sheet in the header area of the new page that I opened?
    Should I use a template to display my information in? If so, how do I pass the results to this template?
    Thanks

    OK, I think I got it.
    I created a structure user interface template called My_Template. In the template I set up everything. I set up the look and feel, colors, images, etc.
    Now, in my code, I use the following API.
    PORTAL30.wwv_headings.show_header(
    p_template => 'PUBLIC.MY_TEMPLATE',
    p_heading => 'The Title',
    p_help_link => '');     
    htp.p('</BODY></HTML>');
    Which will translate into the following HTML
    <HTML>
    <TITLE>My Title</TITLE>
    <BODY bgcolor="#B5B591">
    <TABLE width="100%" height="40" cellpadding=0 cellspacing=0 border=0 bgcolor="#B5B591" >
    <TR>
    <TD width="1%" align="LEFT"><IMG SRC="/images/cantrac2.gif" ALT="Return to the CANTRAC MENU(Application Home)" border="0"></TD>
    <TD width="97%" align="LEFT"><FONT STYLE="font-family:Helvetica;color:black;font-size:16pt;"><B><NOBR>My Title</NOBR></B></FONT></TD>
    <!-- frame_link = -->
    <TD width="24" height="24"><IMG SRC="/images/cantrac_menu.gif" valign=top ALT="Application Home" border=" 0"></TD>
    </TR>
    </TABLE>
    </BODY></HTML>
    I still don't get the STYLE sheet but it looks close enough.
    When I create a unstructure UI template and use the #PAGE.STYLE# command, the style is null when I call a new browser window. Need to look into what portal API to use to get this information.

  • URGENT : Display Page To Public Users

    Hi,
    I'm working with PL/SQL PDK on portal 9.0.4.
    For my process, I need to be able to check the 'Display Page To Public Users' checkbox on the Access tab of a page properties. I don't find how it is possible to perform it.
    I see the field ispublic on table wwpob_page$ but I will not modify this directly. I would like to use the API.
    The same could be interesting for the inherit access settings from template.
    Thanks,
    Eddy.

    Hi,
    I want to achieve exactly the same, but I fear using the "wwpob_api_page" API, since I think it's an internal ORACLE API and hence not a good basis for any long term development, due to possible future changes, etc...
    Is there any way to do the same using a public, supported API? For example: "wwsec_api" or "wwsbr_api"?
    Thanks in advance and happy new year!

  • How to include Portal API's

    Hi,
    how can I include the Portal and the PCD GL API.
    Where can I get these .jar files?
    I installed the PDK and tried to get the jar's from there but I got an error by doing that. Also changing the property (as described) in the Visual Administrator did not work.
    Thanks in advance,
    Thomas

    Hi Francisco,
    I have to develop a Web Dynpro Tool, which should be able to create Folders, iViews, Pages ...
    in the Portal Content Directory. (Not with the Portal Admin Studio, but programmatically)
    Therefore I need the two API's (Portal API and PCD GL API)
    Under  <a href="http://help.sap.com/saphelp_nw04/helpdata/de/df/eb5c42da4de92ce10000000a1550b0/frameset.htm">help.sap.com</a>
    I followed the instructions to create an iView, but I wasn't able to include all the needed classes, because I can not find the .jar files (for these API's) to include into the DevStudio.
    I searched in the Filesystem and tried to get these files from the PDK, but I have not found it till now.
    Where can I find these files?
    com.sap.portal.ivs.api_iview_api.jar
    com.sap.portal.ivs.api_landscape_api.jar
    Thanks in advance,
    Thomas

  • Portal 10.1.4 seeded Page link Item type - Getting it to open in new window

    I've been working on creating a new portal and am having some difficulty with Page Links. I am using version 10.1.4 out of the box. When I create a page link to another page and click on it, the page always takes over the current window.
    Under normal items, you can select the option to display item in new browser window. I do not see this option when using a Page Link.
    My questions are :
    Is this option to display somewhere else vs. Page Properties?
    Has anyone created a custom item type to achieve this function?
    Thanks in advance.

    Hi,
    Something you could try is changing the way the item is displayed using a HTML Content Layout, this is a great feature of portal 10.1.4 and allows you to customise the region where the items are displayed.
    Try this:
    1) Create a new HTML Template
    2) Select HTML Content Layout from the list
    3) insert this code:
    <oracle>
    if '#ITEM.TYPE#' in ('baseportletinstance', 'portlet_instance') then
    htp.p('#ITEM.PORTLETCONTENT#');
    else
    htp.p('#ITEM.TITLE#');
    end if;
    </oracle>
    4) go to your page and edit your region properties
    5) On the attributes tab chose the Html template you created.
    the items should be displayed now as links that open in a new browser window.
    Hope this helps..
    Regards,
    Juan

  • Cannot display page header from layout builder

    Hi:
    I am somewhat new to BI Publisher.
    I am using BI Publisher 10.1.3.4.1.
    I have changed the config file and set the parameter for the Online Template Builder to "true". The layout builder does display properly.
    If I add a Page Header or a Text item, neith will appear in the Preview nor when I save the template and view the report. Data does appear in a data table.
    Can someonw help me sort out why the page header will not display?
    Regards,
    Bruce

    Thats a bug :)
    Oracle missed to preserving the MSword format page numbers, which they should ...
    log an SR :)

  • User selecting default display page from detailed navigation

    Hello all,
    Can individual users select a default display page from the detailed navigation section? For instance, say I have a list of pages in the detailed navigation each showing a BW report;
    Detailed Navigation
    Report 1
    Report 2
    Report 3
    Report 4
    So when the users navigate from the top level to here then 'Report 1' is automatically displayed. Say that towards the end of the quarter userX will be looking at 'Report 3' mostly while userY will wish to concentrate on 'Report 2', can the users themselves set their default? Or must this be done by the portal admin, rearranging the order of these pages in the assigned role or changing the display priority of them? But then it wouldn't be per user, if they shared the role.
    If the users cannot do this themselves is there a way to do it in Java perhaps?
    Thanks for you time,
    Patrick.

    Hi Detlev,
    We decided on an easy way through.
    Each page has to display a BW report, very simple. So we're going to give the users an iView where they get a list of all BW reports that they have access to (read from a text file). From there they select what they wish to be their default report (written to another text file).
    The default page (first on detailed navigation) reads the text file and displays the BW report found there in an IsolatedHtmlContainer. Not precisely what was wanted at the start but pretty much offers the same functionality.
    Thanks for your help, I'll read the doc. It's always good to know these things.
    Patrick.

  • Java Portal API to determine the proxy?

    Hello,
    I am writing a JSP-based portlet, using the Apache SOAP 2.2 implementation to access a web service, and I need it to be flexible enough to access that service through a firewall. So I need to be able to pass a proxy host and port to the SOAP HTTP connect object. Rather than hard code the proxy address or create a customization page for the portlet where the proxy has to be manually set, is there a Portal API to determine the proxy server that's been set through the main admin screens?
    Thanks in advance,
    Mike

    I don't think there is a public API for this.
    Instead of hard-coding the proxy, make it a parameter of your servlet. The proxy is not something that will change very often (if at all) so it is a fairly safe bet.
    Using a servlet parameter also means that the proxy can be easiy changed if the installation is moved or the network is reconfigured

  • Portlet for displaying pages/content areas link for a user

    Does anybody have a JPDK portlet to display
    pages available to a user?
    The navigator looks too technical/complex for a regular portal user.
    Thanks for your time.

    Lookup column is the attribute of file. Attribute can not be upload! . Did you try to use the content type of link to document? If yes, you can understand my question. I want to change uploaded.aspx ( link of document) and add lookup column to this form.
    Standart scenario: User create link to docunent. 1. Prees button start. 2. Input text link to upload.aspx form 3. Set attributes new. Aspx I want: 1. Press button. 2. User press dropdawn menu and choise neddeng link. 3. Set attributes Plese read my question
    again. Sorry for my not good english

  • Can't us Oracle API on the simple JSP pages added to the portlet........

    Hi,
    I added a jsp page in the portlet which is not a standard page like the default show mode pages. I have added some code which actually access a resource inside the porltet.
    " img src="<%= UrlUtils.constructResourceURL (pReq, HttpPortletRendererUtil .absoluteLink(request, "icon.png")) %> "
    For that you have to add the following two imports in the code
    mport="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"
    import="oracle.portal.provider.v2.url.UrlUtils"
    This library is available with the JDeveloper and I dont get any error while compiling and even deploying the portlet war file on the applcation server. Strangely the same piece of code shows the image perfectly for the default show page of the portlet but it generates 500 Internal server error for the other simple jsp page I added, which suggests that the server is unable to find the function:
    500 Internal Server Error
    java.lang.NullPointerException
         at oracle.portal.provider.v2.url.UrlUtils.constructResourceURL(Unknown Source)
         at _htdocs._elogbooksubsystems._DAQ._jspService(_DAQ.java:54)
         [SRC:/htdocs/elogbooksubsystems/DAQ.jsp:15]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Can anybody help? Is this possible to use oracle api in the pages which are though added to the portlet but not the standard show modes pages?
    Thanking you in anticipation
    Regards,
    Omer Alvi
    Message was edited by:
    user574208
    Message was edited by:
    user574208

    Thanks Nrintala. I tried to work with multipage portlet example provided in the jpdk. In fact I created another portlet with two pages and copied the code of the two pages of the multipage portlet. (Off course I took care of the names and stuff). Later I modified the provider.xml by defining "next_page" parameter. When I viewed my portlet, first page appeared fine but when I click on the link which should show the second page, I got an error which says.
    Error:      Error occurred while rendering portlet - see provider log file for details.
    Do you think I have missed something? I am depoying my war file on the stand alone OC4J and some how I have not been able to find the application.log file in my application inside the application_deployments of the J2EE_HOME. I have pasted the provider.xml file and I would be grateful if you can help.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>false</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>mulitpage</name>
    <title>testing multi page</title>
    <description>My Portlet Description</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <showPage>/htdocs/mulitpage/first.jsp</showPage>
    <pageParameterName>next_page</pageParameterName>
    </renderer>
    </portlet>
    </provider>
    Best regards,
    Omer
    Message was edited by:
    user574208
    Message was edited by:
    user574208

Maybe you are looking for

  • CL_GUI_TEXTEDIT - Text Editor is having old text..

    Hello Experts, I have created a text editor using the standard class CL_GUI_TEXTEDIT and invoking the same in two different places. In-order to use the text editor screen it in two places i have used FREE <obj> foor clearing the object. My problem is

  • Assignment of different Dicument Type in Automatic Payment Program

    Hi SAP Gurus, Presently the payments are being handled centrally at Corp Office in a State. The payment method is C and the clearing doc type is KZ. Now the Company is also starting to use APP at another office in another state. The payment method is

  • Error: Could not get markup. The cookie or session is invalid or ...

    When I run the portlet getting the below error: Error: Could not get markup. The cookie or session is invalid or there is a runtime exception. I have gone through the log, it's processing the request. Any help on this ...

  • How to add an extra dynamic columns in workflow inbox?

    Hi Every Expert, Transaction SWL1 only provides Six columns as dynamic columns for workflow inbox. But we need to use 7 to 8 dynamic columns. How to add these two extra columns into workflow inbox? Thanks, Shirley

  • CUCM pim is active with some warnings

    Hi ,      In sprawler the CUCM pim is showing as ACTIVE with 21 config warnings. It sowing as Bad Device type (check log)  on status bar. Here im attaching logs. Please solve this issue. Thanks&Regards, MB Reddy.