How to get page_id in portlet?

Hi.
How do i get the page_id where my portlet is located?
- Toni

In PL/SQL, it's:
wwpro_api_parameters.get_value('_pageid', p_reference_path)The reference_path must be defined in your portlet and passed to the procedure.
Note that this may change in future releases, but it works as of version 9.0.2.6.
Regards,
Jerry
PortalPM

Similar Messages

  • How to get the customize url of an portlet using PLSQL

    How to get the customize url of an portlet using PLSQL.

    Are you trying to call the portlet Customization form directly from the browser?

  • How to get form input in the same portlet using pageflow

    Hi this is premkumar
    i created 2 portlet in a portal how to get form input in the sampe portlet using
    pageflow
    help as early as possible

    Do to the complexity of the program we need to run it with sequences.  This is because we need to aquire data with DAQ until it reaches a certain point and then stop collecting so that it can do its process (only once for all times criteria is met), and then loop around till again collecting after DAQ drops back below certain point looking to once again reach that point.  Another flat sequence is going outside of this where I want to put the prompt and have a user input to affect how many times that that the inner loop is run (No a For Loop instead of the while loop will not work either for other reasons). 
    I just want to know if after the program starts you can have a user input that will change the effect of the rest of the programs action based on the number inputed.

  • How to get the Portal Page name from PLSQL?

    Can anyone tell me how to get the portal page name from my dynamic page using plsql?
    Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
    My code for attempting to get the page id is below.
    <oracle>
    declare
    v_pageid varchar2(30);
    begin
    v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
    htp.print('Page is '|| v_pageid);
    end;
    </oracle>
    Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
    Thanks in advance!
    Sarah

    Few clarifications -
    1. wwpro_api_parameters cannot be used to get default portal
    page parameters such as '_pageid', '_dad', '_schema' etc.,
    2. Page information can be obtained through any components which
    are available in that particular page. For example, in case of
    dynamic page, we need to publish it as a portlet and add it to the
    page. This process creates necessary packages in the DB, but we
    will not have access to the portlet methods.
    So, I would prefer creating a simple DB provider & portlet and access
    page title from its show method as follows -
    //Declare local variable l_page_id, l_page_title as varchar2
    select page_id into l_page_id from wwpob_portlet_instance$ where
    portlet_id = p_portlet_record.portlet_id and
    provider_id = p_portlet_record.provider_id;
    select name into l_page_title from wwpob_page$ where id=l_page_id;
    More information on DB provider can be found at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
    Secondly, usage of wwpro_api_parameters.get_value method is
    incorrect. This method expects two arguments -
    <ul>
    <li><b>p_name : </b> The name of the parameter to be returned.</li>
    <li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
    </ul>
    p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
    The following code fragment fetches all parameters available
    for a portlet.
    Note : Copy this code into 'show' method of your portlet.
    //Declare l_names, l_values as owa.vc_arr
    * Retreive all of the names of parameters for this portlet
    l_names := wwpro_api_parameters.get_names(
    p_reference_path=>p_portlet_record.reference_path);
    * Retreive all of the values of parameters for this portlet
    l_values := wwpro_api_parameters.get_values(p_names=>l_names,
    p_reference_path=>p_portlet_record.reference_path);
    //Loop through these arrays to get parameter information
    htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
    htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
    htp.tableRowClose;
    if l_names.count = 0 then
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.p('<td COLSPAN="2">'
    ||wwui_api_portlet.portlet_text(
    'No portlet parameters were passed on the URL.',1)
    ||'</td>');
    htp.tableRowClose;
    else
    for i in 1..l_names.count loop
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(l_names(i));
    htp.tableData(l_values(i));
    htp.tableRowClose;
    end loop;
    end if;
    htp.p('</table></center>');
    Hope it helps...
    -aMJAD.

  • How to get argument value from portal desktop URL

    hi,guys
    I have a question ,it is how to get argument value.see:
    in one portal desktop,I have a hyperlink like this
    http://localhost:7001/TestPortal/appmanager/testPortal/testDST?eventId=1
    after click,then will be switch another desktop "testDST"
    I tried to get value from request,but failure.
    @RequestMapping
    public String listTestList(RenderRequest request, RenderResponse response,ModelMap model) {
    //HttpServletRequest httpRequest = (HttpServletRequest) ; //request.getAttribute("javax.portlet.portletc.httpServletRequest");
    //log.debug("httprequest eventId>>>" + httpRequest.getParameter("eventId"));
    log.debug("render request eventId>>>" + request.getParameter("eventId"));
    I can't get this value from request,also tried httpServeltRequest,but httpServletRequest can't get,it is null;
    so ,how to get this value,thank you very much.
    regards
    aris

    Hello,
    It is true for JSR168 portlets that you can't just arbitrarily set parameters on a URL and get access to them inside your portlet- you must use the appropriate APIs on the PortletURL class to set parameters that you can retrieve. This is the only portable (standards-compliant) way to implement the functionality you want.
    However, for your particular use-case, you can get the URL parameters from the (non-JSR168) HttpServletRequest object. The only reason you are getting a null object for that is because the attribute name is wrong. This should work:
    HttpServletRequest httpRequest = (HttpServletRequest)(request.getAttribute("javax.servlet.request"));
    String eventId = httpRequest.getParameter("eventId");
    Kevin

  • How to get page URL in a dynamic page in 10.1.4?

    Does anyone know how to get the page URL in a Dynamic Page in 10.1.4 without using javascript.
    I know that you can use a PL/SQL portlet and the portlet_record, but this is specifically for a Dynamic Page.
    Regards
    Jenny

    Hi,
    I am trying the suggested approach in 10.1.4 but unfortunatley I get the following error:
    PLS-00302: component 'SHOW_INTERNAL' must be declared
    In my Dynamic Page I have the following code
    htp.p(cms_context.urlpage);
    In the '... before displaying the page' I have the following
    schema_name.cms_context.urlpage := schema_name.dynamic_page_name.show_internal.p_page_url;
    Can anyone help?
    Cheers
    Chris

  • How to get the Path of the WebDynpro page

    Hi All,
    Can any one say how to get the path of the JSPDynPage ina Portlet in Portal Application.
    Becoz i have to display that Page in another JSPDynPagee
    Thanks in Advance....

    Hi,
    You can call your JSPDynPage component by calling the URL as:
    http://localhost:50000/irj/servlet/prt/portal/prtroot/YourApplicationName.YourComponentName
    Check this:
    Calling portal component
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • How to get the guid of currently opened page programatically

    Hi,
    Can any one of you please let me know how to get the guid of a page at database level which is opened currently?
    The requirement is I need to grab the url of a page which is currently opened by the user.
    Is there any way to get it from accessing the tables like wwv_things or wwpob_page$.
    Please suggest me how to get it.
    Thanks,
    Ravi.

    Hi Ravi,
    You may wanna explore the two API's (wwsbr_all_folders and wwsbr_all_items) and make a bridge to get the name of the portlets that appear on the page.
    something of the following nature should be enough to take you where you want to go. here c.name is the GUID of the item you are looking for.
    SELECT DISTINCT c.display_name,c.name,c.updatedate
    FROM portal.wwsbr_all_folders a, portal.wwsbr_all_items c
    WHERE a.LANGUAGE = 'us'
    AND a.id = c.folder_id
    AND a.caid = c.caid
    AND c.itemtype = 'baseportletinstance'
    AND a.Name LIKE 'MY_PAGE_NAME'
    order by 3 desc
    this will work in the portal but not in the sqlplus or any querying tool. for that purpose, it will work once you establish the context of user.
    hope that helps!
    AMN

  • How to get the groups info for user

    Hi guys i am new to ALUI..
    i am trying to do some enhancement.
    i want to know how to get the information of the users group and the group details using the IDK API?
    Can sombody share some code?

    Hello,
    You are welcome. Here is one way of get what you want:
    1) get all groups id's
    IPortletContext - >IRemoteSession -> IUserManager - > getCurrentUserGroups() -> int []
    2) get details about group
    IRemoteSession.getObjectManager(ObjectClass.UserGroup ) ->
    cycle over int []: {
    IObjectManager -> querySingleObject(comminity id) -> IObjectQueryRow -> getName()
    Because you are going to use PRC and make SOAP calls to portal don't forget setup WS to pass token to portlet (check WS settings)
    Edited by Bryazgin at 05/29/2008 7:48 PM

  • How to get rid of locked file

    I have a file that's locked that I kept in a folder titled junk because five years ago I couldn't figure out how to get rid of it. Just installed a new HD and tried to trash the folder and file. It's not working and now it's in two places because when I moved it it asked for name and password, then copied it into the trash and left it on the desktop. I know there must be a way to get rid of it. Secure Trash in Onyx didn't work. the file is nununu HFS+private data?
    Any suggestions?

    *Trash Problems*
    If trash can't delete because an item is busy, try restarting the computer.
    If trash won't delete because an item is locked, try holding down the option key when emptying the trash.
    Try booting to Safe Mode (hold down the shift key while booting, restart may take a long time but let it go), sometimes just doing that works. Restart normally.
    Reading
    [You can't empty the Trash or move a file to the Trash in Mac OS X|http://docs.info.apple.com/article.html?artnum=106272]
    [Solving Trash Problems|http://www.thexlab.com/faqs/trash.html]
    [How To Fix Stubborn Trash and Why it Won't Delete|http://www.osxfaq.com/Tutorials/LearningCenter/HowTo/Trash/index.ws]
    [rccharles: Discussion on trashing problem files with Terminal commands|http://discussions.apple.com/message.jspa?messageID=9168842#9168842]
    *Utilities for emptying trash*
    [Trash It! v3.6.1|http://www.nonamescriptware.com/?page_id=5]
    [DropNuke|http://www.versiontracker.com/dyn/moreinfo/macosx/12664]
    [Super Empty Trash 2.3|http://www.macupdate.com/info.php/id/16727] - Simple AppleScript applet that will empty the Trash with administrator privileges

  • How to create content based portlet in 10g using JCR Data Control.

    I have created a webecenter Application (portlet,content repository,jsf ) in jdeveloper 10.1.3.4.
    and created a DatacontrolRepository connection for conent server , so inside the data control pallette I get all the methods such as search, AdvancedSearch,getItems.
    Now I am trying to drop the getItems() method return value from JCR data control as a Table inside my JSR 168 standard portlet which i created.
    But I am not able to see any of the content in my portlet.
    If I drag the same method getItems() on to my jspx page ( inside my ViewController) its working as expected.
    Please guide me how can get the content on portlet.

    Hi,
    Thanks for your reply..but i already have this demo and it doesn't contain an example for a pie graph..if u know where i can find any example for a pie graph and how to pass data to it i would be so thankful
    Thanks again.
    Eyad Basheer

  • How to get Avery color? Illustrator CS5

    Can someone please help me get this colours in illustrator CS5? (Avery)
    I already know how to get the panton.
    I could'nt attached it this thread so I use imgur.
    [IMG]http://i.imgur.com/nXUyHsf.jpg?1[/IMG]
    And also How can I get this  Gradiation?
    C= 75
    M= 68
    Y= 67
    K =90

    Try here..........
    http://ap.averygraphics.com/?page=page&page_id=206&category_id=4

  • How to get worksheet IDs

    I want to get the worksheet IDs for a workbook. I know the ID will show up in EUL5_BATCH_SHEETS and EUL5_QPP_STATS, but if a sheet has never been scheduled or "run", it will not be in those 2 tables.
    I am creating a portlet to access workbooks/worksheets and have the workbook and worksheet IDs stored in a separate table. If I could query the eul or some other Disco table, maintenance would be simplified. One thought is that the info I need is stored in EUL5_DOCUMENTS.DOC_DOCUMENT, but I have not had success "decoding" that column.
    Thanks in advance,
    -D-

    My client didn't like the Discoverer Workbook portlet (their biggest complaing was when a worksheet was opened, the list of worksheets normally seen in Viewer was missing), so I created one with a similar look and feel that creates HTML links like:
    http://<server>/discoverer/viewer/?cn=<connection>&wbk=<workbookID>&wsk=<worksheetID>The reports that are being shown are public reports, and use a public connection. I can get the workbook id from EUL5_DOCUMENTS.DOC_DEVELOPER_KEY, but I am not certain where/how to get the worksheet IDs.
    In order to get something into the users hands for evaluation, I created a table that holds the IDs and other information I want. To get the worksheet IDs, I checked the worksheet properties.
    But, now I have a table to maintain. Ideally, I would like to drive the link information from the Disco tables, but have not had luck getting the sheet ID.

  • How to get actionOverride value in the URL in page Flow

    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

    u can try in JSP:
    DesktopPresentationContext dpCtx = DesktopPresentationContext.getDesktopPresentationContext(request);
    BookPresentationContext bpCtx= dpCtx.getBookPresentationContext();
    ArrayList al = bpCtx.getPagePresentationContexts();
    for(int i=o; i<al.size(); i++) {
    PagePresentationContext ppCtx = (PagePresentationContext )al.get(i);
    List windowCtxList = ppCtx.getWindowPresentationContexts();
    for(int j=0; j<windowCtxList.size(); j++) {
    WindowPresentationContext wpCtx = (WindowPresentationContext)windowCtxList.get(j);
    wpCtx.getLabel();
    "Hitesh" <[email protected]> wrote:
    >
    Joe,
    Thx a lot .
    I got the instance ID for the current portlet with API
    com.bea.netuix.servlets.controls.portlet.PortletPresentationContext.getPortletPresentationContext(request).getInstanceLabel();
    But how to get instance label for other Portlet ? any idea..........
    Thanks ,
    Hitesh
    "Joe" <[email protected]> wrote:
    It is a portlet's instance name. You can see it in the .portal screen
    as a property.
    This is added for portlet scoping. The instance name you might get from
    a
    backing (did not find it yet) or soeme fancy request attribute eventually.
    "Hitesh" <[email protected]> wrote:
    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When
    i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see
    in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

  • How to get the values from table SKB1 R/3  to SRM

    Hi Gurus,
    My requirement is to get all the values from the table SKB1 to SRM (i.e. in to an internal table) for doing some validation(G/L account XXXXXX requires an assignment to a CO objectXXXXXX.)
    Like wise I have many tables for doing validation in SRM
    Help me how to get this, suggest me any Function module with sample code.
    OR
    Any Standard FM which will give all the values of the fields in the table SKB1 when I pass the key fields G/L account & company code alone so that I can improve the performance.
    Suggest me.
    Regards
    Paul

    Hi,
    You can use the FM 's META_READ_TABLE Or RFC_READ_TABLE
    Which SRM / Backend system version are you using ?
    Are you taking care of the Importing paramater - DELIMITER in this case.. ??*
    See related links ->
    Re: Retrieving data from R/3 into SRM
    Re: Product Search TIME lag
    Else you can just call the remote enabled  FM "BAPI_GL_ACC_GETDETAIL"  from SRM.
    BR,
    Disha.
    Do reward points for useufl answers.

Maybe you are looking for

  • HT1947 Remote app on iPad no longer rotates after upgrade to iOS 7

    I love Remote, use on both my iPhone and iPad.  However, after upgrading the iPad to iOS 7, the app no longer rotates to horizontal view - in fact, it doesn't rotate at all.  Bad enough no horizontal, but to not rotate at all means that I can't orien

  • Adobe Bridge database problem

    Using Windows XP with 1G RAM and Photoshop Bridge 1.0.4.6 I keep getting the message "There was a problem with the database and (image name) was not updated correctly. This may affect searches." It occurs each time that images are added to the comput

  • Can't find Adobe Creative Suite 5 Master Collection

    I recently was trying to find my OLD adobe login info. I could not locate it, and therefore made a new one. Now I don't want to buy CS5 again, but I cannot locate the installer. I have the programs installed, but it will give me an error message 'Err

  • Extrapolation and Line of Best Fit

    Hello, I'm working on a project and I need to make a line of best fit for a scatter plot graph as well as make an extrapolation on the graph...any possibility someone could help me with these two questions? Thank you, Mike

  • Create combo chart in webi

    Dear experts, Is it possible to have a combo chart in webi? By combo I mean having mixed a bar and line chart.... I would have a primary Y axis used by the bars and a secondary Y axis used for the line. If it's possible could you explain to me how to