Display current page name using API ?

I want to display the current page name using a PL/SQL API. I can get it using smart text - current page item, but I need to get it programmatically using a procedure. Which one? What variable? If I need to pass values in, where do I get them?
Thanks,
John

You can use wwpro_api_parameters.get_value('_pageid','a') in a pl/sql item or UI template to get the value of the current page id. You can then use the page id to look up page attributes in the WWSBR_ALL_FOLDERS view. In a portlet, you have to use the reference_path instead of the 'a' as the second parameter.
Please note that is is an undocumented use of this API and is not guaranteed to work in future releases. However, it does work in 9.0.2 and 9.0.2.6. WWSBR_ALL_FOLDERS is not officially supported until the 9.0.2.6 version.
Regards,
Jerry
PortalPM

Similar Messages

  • How To Display Current Page Name in Text Box Titles?

    <BR>I have a report which uses a page dimension. When I print out the report, it does display the page dimension member in plain text, near the beginning of the report. But I would like to incorporate the current page value in the formatted report title, a text box.<BR><BR>The "MemberAlias" command, for example, looks like this:<BR><BR>(( MemberAlias("GridName", Row/Col/Page, "DimName") ) )<BR><BR>(substituting the less-than, greater-than symbols for parentheisis just for this web forum)<BR><BR>If I put a number in as the second element in the function, that hard-codes the report to print the page 1 value on each page of the printout. Unfortunately, Reports doesn't allow the "current" value in a text box. Is there a way to do this?

    hi,
    is there any generic fix for this. if we want to display then we need to change the each page CO . is it a possible solution. or any generic solution. Please provide
    Thanks
    Smarak

  • Sap script current page name

    HI experts,
    can any body tell me how can i get the current page name in sap script.
    In case of smartform we can get it by using sfsy-pagename. is there any way like this.
    rgds,
    bharat.

    Hi Bharath,
    Follow this procedure...
    Got to
    Insert (MENU)-> Symbols->System symbols-> TTXSY SAPscript system symbol
                                              (select it )
                                              Click Choose button
                                - from here select PAGE.
    Insert (MENU)-> Symbols->System symbols-> SAPSCRIPT      SAPscript system fields
                                              (select it )
                                              Click Choose button
                                - from here select -> FORMPAGES  Total number of pages
    In editor it appears as &PAGE& &SAPSCRIPT-FORMPAGES&
    just type Of between them as below
    &PAGE& Of &SAPSCRIPT-FORMPAGES&
    So that it will be in readable format for user.
    Regards,
    Basheer.

  • How to find out current PAGE NAME (not Page No) in SAPSCRiPT

    Hi,
    Is there anyway i can find the current page name in sapscripts which i can check in IF condition and accordingly perform some task. I searched and found out ITCTG-TDPAGE structure but its giving me error when i try to print in text element editor.
    Regards
    Amber

    Hi Amber,
    the otf[]-Table is located in a function group...
    Sry, forgot to add this.. that's the thing without a system available
    To solve your problem, I would work with the otf-data. I just can give you suggestion because the solution might be a bit bigger.
    Set yourself a unique string into the line you want to draw a box (perhaps @BOX1). Afterwards you can replace this variable with things you want to do. There is a lot possible with having the otf-data itself.
    Important is, that you do this before calling CLOSE_FORM
    Regards
    Florian
    BTW: OP are the first two unique chars in the line
    Here is a example-coding
    FIELD-SYMBOLS: <gt_otf> TYPE ssftotf,
       <ls_otf> TYPE itcoo.
    ASSIGN ('(SAPLSTXC)OTF[]') TO <gt_otf>.
       IF sy-subrc = 0 AND <gt_otf> IS ASSIGNED.
    LOOP AT <gt_otf> ASSIGNING <ls_otf>
         WHERE tdprintcom = 'ST'
         AND tdprintpar+7 = '@UL1'.
    ENDLOOP.
       ENDIF.

  • How to display Contribution Folder Name using Idoc Script

    Hi, could ypu please tell me how can we display Contribution Folder name using Idoc script by passing dCollectionID. Appreciate your help on this. Thank you
    Regards,
    Ashok

    You should be able to get it directly as dCollectionName, but might have to execute a query to fill in the result set first: select dCollectionName from COLLECTIONS where DCOLLECTIONID = ?

  • Find current host name using Java

    I am running currently on Oracle 9i app server in a clustered environment. My application has business logic that needs current host name. How can I find out the host name without externalising(like properties file) the information. Is there a java api like
    .getHostName()
    Rama

    try this:
    import java.net.InetAddress;
    public class Foo {
        public static String getLocalhostName() {
            String hostName = "";
         try {
             InetAddress address =
              InetAddress.getLocalHost();
                hostName = address.getHostName();
            } catch (Exception e) {
                // error handle any which way you like
                e.printStackTrace (System.err);
            return hostName;
    }cheers,
    Georg.

  • Firefox not displaying current page URL in address book.

    Firefox is now showing the URL data for the most recently opened tab in every address bar rather than the actual data for the page opened within that tab. For example, tab 1 is opened to wsj.com and tab two is the opened for foxnews.com, suddenly the address bar for tab 1 is now showing foxnews.com in the address bar AND it is now impossible to go 'back' because the back button is greyed out. Additionally, if a link is clicked from within the current tab, the URL in the address bar does not change but remains 'fixed' on the address opened in the most recently opened tab.
    == This happened ==
    Every time Firefox opened
    == 20 June 2010

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Firefox not displaying current page!

    Hi all.
    I normally use Firefox on my iMac.
    I recently went to one of my bookmarked sites on my iPad, using its version of Safari.  The page that it displays is slightly different than the one that is displayed if I open the same page with Firefox on the iMac.
    Based on the content of the page, I suspect that Firefox is not accessing the latest version of the page but rather that it is displaying a "cached" page.
    This is very troublesome as the information that was added to the page is time-sensitive (a schedule) and I would have missed it entirely if I had not happened to open it using the iPad.
    What can I do about this problem???
    (I would prefer not to use Safari on the iMac).
    Thanks!

    You might do better in a Mozilla/Firefox forum.

  • Unable to display Popup page while using JSF Tiles

    Hi All,
    I am using JSF Tiles. In the body page i am trying to open a pop up page through java script. bt i got the 500 internal server error. The popup open properly when there is no html or core jsf tags. can anyone help me abt this problem.
    Thanks.

    For future JSP/Servlet related questions please use the JSP/JSTL forum or the Servlet forum. There are more experts.
    As to your problem: did you read a basic JSP/Servlet book/tutorial? Did you read the [Tomcat documentation|http://tomcat.apache.org/tomcat-6.0-doc/index.html]? Your problem more sounds like you missed something trivial.

  • Getting to know current page name

    How to realize the subject?

    Well, f.i. page location is http://127.0.0.1/test/index.jsp
    and i should to get `index.jsp`, if location is
    http://127.0.0.1/test/blabla.jsp
    than `blabla.jsp`.

  • How to get Current Page(region)  Name/ID   in OA 11i

    We need to get the name or id of the current page, and based on the pagename, we retrieve configuration to launch specific web service.
    pageContext.getPageLayoutBean().getPageFunctionName() is no sufficient. Since one page function sometimes contain multiple pages (eg, each individual page maps to one train node, all the train nods maps to one page function).
    are there OA apis that I can use to get the Current Page name in controller?
    I tried pageContext.getParameter("CurrrentPage") , it works great for iExpense application. However, in iRrecuiment, the parameter "CurrentPage" was not set at all.
    Please advise.

    First let me explain what I want to achieve:
    I am writing one region (choice list displays the webservices based on the container region) along with the controller, and that region will be embed inside any OA application pages via OA personalization. On the runtime, I need to detect the current page (container region) name. Then, based on the configuration stored in my table, I need to query out the web services endpoint to call.
    Now let me answer your question:
    For example, OIEMAINPAGE.xml (OIEMainPageContainer) contains OIEReview, OIEDetail, OIEGeneral, etc, each inner region will be rendered as a page when you click the train node or link of other page. (from end user perspective)
    If I call pageContext.getPageLayoutBean().getPageFunctionName() on those inner regions, it will return OIEMAINPAGE, so I can not figure out which region are rendered (displayed) on runtime. (My region are embed inside OIEMAINPAGE pagelayout region )
    If I call pageContext.getParameter("CurrrentPage"), it will return (OIERview, OIEDetail etc), which are exactly what I want.
    However, I have to make sure my code works for other OA application, and I already noticed that some application does not set parameter CurrentPage, instead they may set parameter Page. So, I want to know if there is API provided by OA or fnd team to return current container region (page), very similar to Form Block name.
    In form, One Form function could have multiple Blocks, and they are not displayed at same time.
    In OA, one function could have multiple inner container region, and they are not displayed at same time.
    In form, One Form function could have mutlple Blocks, and they are not displayed at same time.
    In OA, one funciton could have mulple container region, and they are not displayed at same time.

  • Reg: Dashboard page Name not getting displayed.

    Hi
    I have created a dashboard Dashboard1 and it has 5 different pages
    pg1 thru pg5. I have 5 users USER1,USER2.USER3,USER4 and USER5.
    I have assigned each page to a user and all the users have access to Dashboard1
    i.e
    USER1 pg1 of Dashboard1
    USER2 pg2 of Dashboard1
    USER3 pg3 of Dashboard1
    USER4 pg4 of Dashboard1
    USER5 pg5 of Dashboard1
    The problem is name of the pages is not displayed once the dashboard is accessed after log on..The report attached to that page is displaying data, but page name on the tab is blank...
    Could anybody help me with this information pls..
    Thanks in Advance...

    Hi,
    When a single page is placed on the Dashboard it will not show the page name as it won't show any tab on the Dashboard. This is happening by default.
    This case applies to your scenario as you restricting those pages among the users.
    To just check, give the permissions to the user1 to view 2 dashboard pages instead of 1. Then you can able to see the page names on the tabs as 2 pages are on the Dashboard for that user.
    I am also not aware of displaying the Page name when there is a single page on the dashboard...:(
    -Vency

  • How to get a Page name?

    Hello,
    I have a dynamic page component portlet, which display different images depending upon page name.
    Is there any APIs to get the current page name in pl/sql.
    or is there any way to get the page name ?
    Thanks
    Sha

    I can't help you with the Javascript option - don't know if this is possible.
    A simple PL/SQL item type that demonstrates how to do this:
    declare
    page_id varchar2(100);
    begin
    page_id := WWPRO_API_PARAMETERS.GET_VALUE('_pageid','a');
    htp.p('The page id is ' || page_id);
    exception
    when others then null;
    end;
    A custom item type procedure is even simpler - you can pass the page group id and page id directly to the procedure, so you don't need to call WWPRO_API_PARAMETERS.GET_VALUE to pull the pageid off the URL.
    There is a very good example of using custom item type procedures in this submission on the Knowledge Exchange. You must register for Portal Developer Services to access the Knowledge Exchange.
    If you are not familiar with PL/SQL item types and/or custom item procedures, please consult the documentation.
    Regards,
    Jerry
    PortalPM

  • Current Tab Name or ID

    Hi,
    Is there a function which will give me the current tab name or ID ? I know there is APP_PAGE_ID for Pages. I am looking for something similar for the Tabs.
    Thanks
    Naresh

    You could try what Scott mentioned. Or I found a table APEX_APPLICATION_TABS where you could query an get all information about tabs.
    15:30:15 apexu1@dvlp > desc APEX_APPLICATION_TABS
    Name                                      Null?    Type
    WORKSPACE                                 NOT NULL VARCHAR2(255)
    APPLICATION_ID                            NOT NULL NUMBER
    APPLICATION_NAME                          NOT NULL VARCHAR2(255)
    TAB_SET                                   NOT NULL VARCHAR2(255)
    DISPLAY_SEQUENCE                          NOT NULL NUMBER
    TAB_NAME                                  NOT NULL VARCHAR2(255)
    WHEN_CURRENT_TAB_IMAGE                             VARCHAR2(255)
    WHEN_NOT_CURRENT_TAB_IMAGE                         VARCHAR2(255)
    TAB_IMAGE_ATTRIBUTES                               VARCHAR2(255)
    TAB_LABEL                                 NOT NULL VARCHAR2(2000)
    TAB_PAGE                                  NOT NULL NUMBER
    TAB_ALSO_CURRENT_FOR_PAGES                         VARCHAR2(4000)
    PARENT_TABSET                                      VARCHAR2(255)
    CONDITION_TYPE                                     VARCHAR2(255)
    CONDITION_EXPRESSION1                              VARCHAR2(4000)
    CONDITION_EXPRESSION2                              VARCHAR2(4000)
    BUILD_OPTION                                       VARCHAR2(261)
    AUTHORIZATION_SCHEME                               VARCHAR2(259)
    AUTHORIZATION_SCHEME_ID                            VARCHAR2(255)
    LAST_UPDATED_BY                                    VARCHAR2(255)
    LAST_UPDATED_ON                                    DATE
    COMPONENT_COMMENT                                  VARCHAR2(4000)
    TAB_ID                                    NOT NULL NUMBER
    COMPONENT_SIGNATURE                                VARCHAR2(1901)To get current tab name, you will have to filter with current page ID using APP_PAGE_ID against -
    TAB_PAGE column which has one value of page ID representing the default page of the tab
    and
    TAB_ALSO_CURRENT_FOR_PAGES column which contains comma-separated page ID under this tab.
    Ittichai
    Edited by: ittichai on Mar 5, 2009 3:38 PM

  • Default "Gateway" for page name

    I am using pt:pagename in a banner portlet. It works fine in 5.04 , but in 6.0 when the page is a hosted remote portlet, the banner text displays "Gateway" by default.
    Any clue how to display a custom text instead, or just blank?
    Thanks!
    Val

    1. I have a banner portlet
    I've inserted pt:pagename tag on the html, and every time I navigate on the portal, the banner displays the page name.
    2. I have a remote portlet (C#) running on a different server.
    When I open the page containing the portlet, the banner displays the name of the page(correct)
    but if I try to navigate inside the C# app, opening a different page, the "Gateway" text is displayed.
    The same portlet on 5.04 just displayed blank. The 6.0 is comming with this "feature", and I do not know how to get rid of it.
    Unfortunately, Chris B. idea is not working, because if I delete the
    "edkRes.SetHostedDisplayMode(HostedDisplayMode.Hosted);"
    the page is not hosted anymore.
    Val

Maybe you are looking for

  • How to unlock locked USB drive

    I have this nice USB stick that I would like to use but it won't allow me to modify it. I then went to disk utlity to see what the problem is and this is the info it showed. Name :           POKEN Touch & Connect Media           Type :           Disk

  • Date Unix time stamp in milli seconds

    TYPES : BEGIN OF ty_final,          line(600)  TYPE c,         END OF ty_final. DATA : gt_final TYPE TABLE OF ty_final. I have some the records are that are appending to the  internal table gt_final is of length 6423,7. How can I achieve this ? Final

  • [svn] 2706: Improve the information given during parse errors by providing more context about which parent token is not expecting a particular child token to follow .

    Revision: 2706<br />Author:   [email protected]<br />Date:     2008-08-01 10:10:58 -0700 (Fri, 01 Aug 2008)<br /><br />Log Message:<br />-----------<br />Improve the information given during parse errors by providing more context about which parent t

  • Planning Time Fence Use with MRP

    Hi, I was wondering if planning time fence has use with an MRP type without a firming type. Basically, SAP says it is only used with the MRP contains a firming type. However, i thought the planning time fence is also used with SAP. For example, i can

  • Everytime I close Itunes it loads back up

    I never had this issue until 6 months ago, I have been looking on the internet for a solution and I cannot seem to find one. ITunes works perfectly but when I close it just reopens and I have to go to task manager and end process it. These are the fe