Get current page details from within dynamic page

Is there any API or any other way of getting the current page id that the dynamic page portlet is being called from?
Thanks in advance.

I've tried the following:
theLink varchar2(1000) := 'http://'||owa_util.get_cgi_env('HTTP_HOST')||owa_util.get_cgi_env('SCRIPT_NAME')||owa_util.get_cgi_env('PATH_INFO')||'?'||OWA_UTIL.GET_CGI_ENV('QUERY_STRING');
But that gets me the URL of the dynamic page portlet not the page the portlet is on?

Similar Messages

  • Get current page title sandbox solution

    Hi
    What is the best way to get current page title in sandbox visual web part code behind?
    I observed SPContext.Current.Item is not defined so I cannot use SPContext.Current.Item["Title"].
    I get title and sate creation page...
    Thanks

    Hi,
    I suggest you follow this blog to build a new sandboxed solution for a test to see if it will work in your environment:
    http://social.technet.microsoft.com/Forums/en-US/988c573f-1caa-42ea-b55a-740627bc351f/get-current-page-title-sandbox-solution?forum=sharepointdevelopm
    Feel free to reply with the test result.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to get current month and last month dynamically??

    how to get current month and last month dynamically
    like
    month = getCurrentMonth();
    lastmonth = getcurrentMonth() -1;
    please help
    thanks

    hi :-)
    /* depracated but can be still useful */
    java.util.Date dtCurrent = new java.util.Date();
    int month = dtCurrent.getMonth();
    int lastmonth = dtCurrent.getMonth() - 1;
    System.out.println("* " + month);
    System.out.println("* " + lastmonth);
    /* better to use this one */
    Calendar cal = new GregorianCalendar();     
    int imonth = cal.get(Calendar.MONTH);
    int ilastmonth = cal.get(Calendar.MONTH) - 1;
    System.out.println("*** " + imonth);
    System.out.println("*** " + ilastmonth);
    regards,

  • HT4859 Does anyone know how to get my Mailbox details from iCloud Back-up? I have accidentally deleted lots of emails I needed to keep. Thanks

    Does anyone know how to get my Mailbox details from ICloud Back-up?
    I deleted some emails in error and need them back.Thanks

    The iCloud backup doesn't contain email.  If you deleted the email and it isn't in your trash folder, there is no way to recover it.

  • 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.

  • IS-U print workbench - User exit - to get current page number

    Hi,
    I have a doubt in IS-U print workbench where in I need to get the current page number which is being processed inside the user exit of the application form.
    I have a user exit called Z_EXIT_150 and here I have a subroutine which is inside the LOOP DOC_ITEM …ENDLOOP.
    Inside the subroutine, I need to get the current script page number.
    There is an option of getting the current page as &PAGE& inside the Script but I need to know the page number inside the exit.
    Do you have any idea of getting the current page number?
    Thanks and Regards,
    Sakthi.

    Hi Sakthi,
    I have also had this problem while working in IS-U Print Workbench but was also unable to solve.  I tried looking into the output_text that is called when reaching an object that references SAPSCRIPT-FORMPAGES but I too could not find a way to save PAGE to a variable for later use.
    The only idea I can think of, although I have not tried, would be to place some sort of counter variable in the BUILD_DOCUMENTS and increment the counter each time there is a successful printout of a header logo or some other object that you expect to see printed on each new page - that way maybe you can determine later in the exit processing what page # you are currently in. 
    I hope this has helped some.  I would be really interested to hear if someone else has a solution of how to access items in the SAPSCRIPT structure from outside of the SAPscript code.
    Regards,
    Geoff

  • To get Current Page No. at Report 6i Runtime

    Hi to everybody,
    I wish to know how can i get the current pageno at runtime in report 6i ,
    i want to display data at end page of the report on a condition that it is the last page of the report. i can get the last page but not the current page no at runtime.

    You should probably ask this in the Reports forum at Reports

  • Get current page or page of selected item

    Hello,
    I' d like get the current page in Indesign or (if this is not possible) the page of a selected object.
    How could I implement this?
    var page = app.selection[0].page;
    does not work.
    Thanks and kind regards,
    mannyk

    Another way getting that done is based upon what is your current
    selection.
                    var myPg=getPage(app.selection[0]);
                    alert (myPg.name);
    function getPage(theObj)
    if (theObj.constructor.name == "Page") return theObj;
    if (theObj.constructor.name == "Character" || theObj.constructor.name ==
    "Paragraph")
    return getPage(theObj.parentTextFrames[0]);
    if (theObj.constructor.name == "Application")
    // Frame is on an unexpected place...
    alert ("Can't able to find the page");
    exit(0);
    return getPage(theObj.parent);

  • Get current page url

    I need to grab the current page url. What is the pl/sql api to do this?

    You find it in the page_url field of the portlet_runtime record in the wwpro_api_provider package.

  • How to get time specification detail from database

    Dear All,
    How can I get the time specification detail from data base?
    Time specification is a 32 bit hexadecimal no type guid_32.
    Function wfd_timespec_reload provide the modified time specification detail.
    FUNCTION wfd_timespecs_reload
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_LOGSYS) TYPE  LOGSYS
    *"     VALUE(I_AWTYP) TYPE  WFD_AWTYP
    *"     VALUE(IT_TIMESPEC_KEYS) TYPE  WFD_KEY_TAB
    *"  EXPORTING
    *"     VALUE(ET_TIMESPEC_DETAILS) TYPE  WFD_TIMESPEC_TAB
    *"     VALUE(ET_INVALID_TIMESPECS) TYPE  WFD_KEY_TAB
    *"     VALUE(ET_CHANGED_TIMESPEC_KEYS) TYPE  WFD_KEY_TAB
    *"     VALUE(ET_RETURN) TYPE  BAPIRET2_T
    This function take time spec from data base not from cache(buffer) so provide the modified time spec in the same session.
    I need any newly created time specification detail also. So I can show all the time spec detail in my function module for any user in the same session.
    Can anyone provide the sample code for it?
    Thanks,
    Anup Garg

    Yes I can see the pattern.
    When I get the set of numbers from database UI doesn't know what is the the list of numbers database has. I need to choose some next available number that is not in database. In the list that u are talking about next available number is 7. Its something similar to when we try to create any mailid, while registration it gives some default id which is not existing which user can choose to create his mailid. How can I get similar feature?

  • How to get AS ABAP details from system

    Friends and Experts,
    I need to get the server details of AS ABAP and the HTTP port number of AS ABAP as i need to check the settings for ICF service. I need to enter these details in the following link in a browser:
    <b>http://<server>: <port>/sap/bc/fp/form/layout/fp_test_00.xdp</b>
    I need these details:
    <b>1) <server> - AS ABAP
    2) <port> - HTTP port of AS ABAP</b>
    I read from SAP note # 944221 that the SICF transaction can be used to get these details.
    I looked in SICF transaction but was unable to find these details.
    Please let me know how to get these details from SICF transaction or by any other means.
    Points will be rewarded for helpful answers.
    Thanks,
    Arun.

    Problem Solved

  • Currently logged in from within  the app itself

    I need to find out who or how many users are currently logged into my app from within the app itself and display it within a report for the app administrators. Any thoughts or ideas.

    For an answer to this question see this discussion.
    query apex users and their session
    query apex users and thier session
    Todd

  • Get CRM Case details from follow up task activity

    Hi all,
    I have created a follow up task from a CRM Case.
    Now, in the task, and thru code, I am trying to get the details of the "parent" CRM Case.
    I tried thru some relations that I saw in the task in debug mode, but no luck.
    Also, I tried with the Task GUID in the CRM_ORDER_READ, ubt I cannot get the Case details or GUID from there...
    Any idea on how can I solve this?
    Thanks and kind regards,
    Guillermo

    Hi, thanks for replying.
    Yes, I thought the same. That's why I used the CRM_ORDER_READ to get the docflow. But I'm not getting any data with that.
    Unfortunately I also don't get any data with CRM_DOC_FLOW_READ_OB FM. I also tried the *_DB one.
    Any idea ?
    Probably some missconfiguration?
    Can I get the ingormation thru DB tables?
    Thanks in advance.
    Kind regards,
    Guillermo

  • Getting hosname and ipaddress from within Forms9i

    Hi!
    I need to get the hostname and the ip-address for the server forms is running from, from within my form.
    I need a command that can be used in Windows - as well as Unix - environment.
    Is there a command I can use for this purpose?
    Pls advise!

    ... and here you go
    package mypackage;
    import java.net.InetAddress;
    public class getServerHost
    public getServerHost()
    public String getServerName()
    try{
    String hostName = InetAddress.getLocalHost().getHostName();
    return hostName;
    catch (Exception e)
    e.printStackTrace();
    return "";
    public String getServerHost()
    try{
    String hostAddress = InetAddress.getLocalHost().getHostAddress();
    return hostAddress;
    catch (Exception e)
    e.printStackTrace();
    return "";
    public static void main(String[] args)
    getServerHost getServerHost = new getServerHost();
    System.out.println(getServerHost.getServerHost());
    System.out.println(getServerHost.getServerName());
    Could be that you are hitting security constraints (this is what i didn't test)
    Fran

  • Get Current page number of PDF file

    Hi,,
    I am using acrobat plugin(SDK) in VB.Net while am nevigating in the
    PDF file i want get the current viewing page number of that
    PDF file and Display in Lable/Text....
    In abouve screenshot am marked the SDK display page number that i want read by VB.NET and display in my application..

    ..... perhabs in connection with this;
    http://forums.adobe.com/message/4587057#4587057
    However, full Adobe Acrobat is needed for both (not Reader only).
    HTH, Reinhard

Maybe you are looking for