Get page id in pl-sql

Hi, we need to know how get the page id of the actual page of the portal in a pl-sql procedure, we have read some post about it but neither goes in a pl-sql.
Actually we are using the following code:
p_reference_path := p_portlet_record.reference_path;
p_folder_id := wwpro_api_parameters.get_value ('p_folder_id',p_reference_path);
if p_folder_id is null then
v_url := p_portlet_record.page_url;
v_position1 := instr(v_url,'/',-1,1)+1;
v_position2 := instr(v_url,'?',-1,1);
if v_position2 = 0 then
v_position2 := LENGTH(v_url) +1;--instr(v_url,'/',1,2);
end if;
v_length := v_position2 - v_position1;
--v_page_name  := upper(URLDECODE(substr(v_url,v_position1,v_length)));    
--SELECT WWSBR_ALL_FOLDERS.ID into p_folder_id  FROM PORTAL.WWSBR_ALL_FOLDERS WWSBR_ALL_FOLDERS WHERE WWSBR_ALL_FOLDERS.CAID=153 and upper(WWSBR_ALL_FOLDERS.NAME) = v_page_name;
v_page_name := URLDECODE(substr(v_url,v_position1,v_length));
SELECT WWSBR_ALL_FOLDERS.ID into p_folder_id FROM PORTAL.WWSBR_ALL_FOLDERS WWSBR_ALL_FOLDERS WHERE WWSBR_ALL_FOLDERS.CAID=153 and WWSBR_ALL_FOLDERS.NAME = v_page_name;
The problem of that code is what the portal allow to have pages with the same name if the pages are allocated in different pages.
Thanks in advanced.
Best Regards.

You could use portal.wwpob_api_path.translate_path, this will translate your url and give you all kinds of information about your actual page(also pageid and siteid)

Similar Messages

  • How to trace an ApEx page processes(anonymous PL/SQL) submited by any user?

    Dear Friends;
    can I trace an ApEx page processes (anonymous PL/SQL code step by step) submitted by any user?
    could you explain in detail, please?
    regards
    Siya
    Edited by: sak on Feb 3, 2012 1:07 AM

    Hello
    You can get user id using select v('APP_USER') FROM DUAL or simply :APP_USER.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Page Parameters in PL/SQL Pages

    The OAS User's Guide says:
    "You can define page parameters for PL/SQL Pages. Values for these parameters are passed to bind variables in the PL/SQL code. For example, if the PL/SQL page 'myplsqlpage' contains the PL/SQL statement 'a:=:param1'; and a page parameter is specified named 'param1' with the value '123' (param1=123), this URL is used to access the PL/SQL page in Oracle AS Portal:
    http://myportal/myplsqlpage?param1=123
    In the PL/SQL code, the bind variable 'a' is assigned the value '123'."
    But I did that but I have the following message:
    ORA-01008: not all the variables have been binded (WWS-22518).
    Please I have an example.
    Thanks in advance.

    Hi Patrick,
    Your suggestion seems interesting and simplistic and I wonder if you could make it working. Because, I worked on a similar suggestion some months ago and it did not work. unless I am confusing your idea with something else, it is not designed to work - although it was claimed in the documentation to work. On talking to Oracle we were able to pin down that it was a documentation bug and a new note was created to state that.
    You may wanna see the following Metalink Note which says that passing parameters from a PLSQL page is not allowed.
    regards,
    AMN
    Subject:      Unable To Pass Parameters To A PL/SQL Page
    Doc ID:      Note:550373.1
    Cause
    Page parameters were not designed to work with PL/SQL pages. However the Oracle® Application Server Portal User's Guide states that this is possible.
    This is a documentation bug and it is related to the following unpublished bugs:
    BUG 5007570: GET PARAMETERS IN PL/SQL PAGE
    BUG 3473023: PASSING PARAMETERS TO PL/SQL PAGE IS ERRORING OUT - ORA-1008
    Solution
    -- To implement the solution, please execute the following steps::
    PL/SQL pages do not support to pass parameters. If you need to pass page parameters to a database provider components such as forms and reports, then you need to create a simple page and follow notes below:
    Note 265180.1
    Title: How to pass parameters to a form, which is placed as a
    portlet inside a page?
    Note 287545.1
    Title: How Pass Parameter Via URL to a Report Using Page Parameters

  • Getting "Page Cannot be displayed" error when calling a procedure

    Hi all,
    I have a page having a table with more than 2000 rows. On click on save I need to call a pl/sql procedure and then a concurrent program and then based upon the result of CP I need to update the records from the back end.
    All this is done on the click of save button. Now my issue is the concurrent program takes a long time to get completed and I get "Page cannot be displayed error" on my page. Is there any way by which on click of save button I can redirect user to some other page saying the CP has been submitted and at the same time my CP and Pl/SQl procedure will be called. Here I have only one constraint that after competitions of my CP I need to update my table as well. So I need to handle that part as well.
    Regards,
    Arvind Goel

    hi
    would u please share ,how r u calling concurrent program ???
    thanx
    Pratap

  • Getting file node name from SQL query

    Hello everyone,
    I have a concurrent request that requires the file node name as input. For example, when I login to oracle on our test instance , I use http://moon1.oando-plc.com:8000. For this concurrent program, the file node name is shown as moon1.oando-plc.com.
    I need to use this argument in a PL/SQL procedure I am writing and I don't want to use any hardcoding.
    Is there any way to get this data from an SQL statement.
    Thanks

    Hi,
    You can get it from ICX_PARAMETERS table (HOME_URL column). Orsearch the profile options values for "http" to get the login page URL (and/or server name) -- See (Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus).
    Regards,
    Hussein

  • Generate page URL via pl/sql

    Hi, there is some way to get the page url via pl/sql?
    I need to create a site map and i'm using the WWSBR_ALL_FOLDERS, but the URL_value is all null.

    Bill,
    You would typically get the URL of the page object which contains the portlets. To get to the page you can use the Direct Access URL which is
    http://<hostname>.domain:port/pls/portal/url/page/<page group name>/<page name>
    Thanks,
    Sudi Narasimhan

  • Getting Page Load Error while opening a Opportunity in new window

    Hi All,
    outbound SSO is enabled.
    when i try to punch-in to my application from CRM through opportunity web link with Web Link Target as "open in custom tab" its working properly, but when i have Web Link Target as "open in new window" i am getting page load error. previously with out Outbounf SSO it is working properly.
    Do i need enable any settings in CRM
    thanks

    when the web link target is "open in new window" or "open in current window" the request send to third party application from CRM ONDemand is HTTPS request as SSL is not enabled it is giving "page load error"(In the web link we are specifying http only) (User athentication type is "username & password/ SSO")
    Is there any setting in CRM Ondemand to send Http request only instead of HTTPS?

  • How to get pages list for a group space or create a page for a group space

    hi All,
    I am using wc11.1.1.3, I want to use java api to implementing the following functions in site template:
    1. Get pages list for a given group space
    2. Create a page for a given group space
    I researched the following codes from web site:
    PageDef newPage = mPageService.createPage(
    PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
    "MyPageTemplate1.jspx",
    "/mytemplates/",
    null, null, null);
    What should be used instead of PERSONAL_USER_PAGE if a group space page is intended to be created? which parameter is for defining group space name that the page should be created for?
    By the way, PageService seems has method for getting list of pages, but how to use it to get page list which is in a specified gs?
    Best regards

    did you manage to get the page list using Page Service API?

  • I can't get pages 5.01 to open pages files from iCloud, although they open in iCloud Pages without difficulty.

    I can't get Pages 5.01 to open Pages files from iCloud, although they open in iCloud Pages without difficulty.
    I am using the most up to date version of Mavericks and Pages and can log into iCloud without any problems.  Is this just a glitch?  The files all behaved properly under previous versions and the initial release of the new version of Pages.

    Pages for iCloud beta is a weird beast and as it says "beta".
    I think it is the least compatible of all the many different .pages files floating around out there.
    Peter

  • How to print a page written in pl/sql web toolkit

    Dear members,
    I have a time sheet page created using pl/sql web toolkit. I want to submit this page to the printer.
    Please let me know, if there are any examples or documents on this one.
    Thanks
    Murugan

    I try to show/hide a div depending on the occurence of errors. I resolved this problem by doing this in javascript.
    function showEdu(){
    $("#edu").animate({ height: 'show', opacity: 'show' }, 'slow');
    $s('P6_EDU_SHOWN','Y');
    function hideEdu(){
    $("#edu").animate({ height: 'hide', opacity: 'hide' }, 'slow');
    $s('P6_EDU_SHOWN','N');
    function checkEduError(){
    if($("span").hasClass("errTxt") == true)
    {showEdu();}
    else
    if($v('P6_EDU_SHOWN') == 'Y')
    {showEdu();}
    else
    {hideEdu();}
    }

  • How to get page one to animate only once in interactive pdf?

    how to get page one to animate only once in interactive pdf? I like when the document opens up in acrobat and the the page animations work but when I go to one of the pages and hit my designated home button it goes back to page one but it reloads again. As a user it would drive me crazy to have to wait for all of it to load......anyway to have that page one load once as the opening page?

    I don't think you really mean animations (unless you have a placed SWF file) because things created with the Animation panel don't work in PDF. Nonetheless, you're talking about some kind of interactivity which is set to happen On Page Load.
    So when you return to that page, of course the interactivity loads again.
    There isn't a On Page Load Once command.
    Perhaps you need to rethink why the interactivity is there. If it's important, maybe it should be triggered by a rollover or by clicking a button.

  • How do I get Pages to import references and post the information as a footnote from Logos Bible Software?

    I want to move to the iPad as my only computer, but am a bit frustrated by the loss of some features in the IOS version of Pages. I need the ability to create structured outlines with footnote and endnote capability. Logos Bible Software imports many cross references and properly annotates passages that I copy and paste in Microsoft Word on my PC, but I cannot get pages to do the samething on my iPad. In fact I really miss the outline generation capability in Pages.  Is this something that will be addressed? Are there workarounds?

    # Delete the duplicate bookmarks in the Library (press Ctrl+Shift+B to open it).
    # In Internet Explorer, export your favorites in HTML format.
    #* [http://windows.microsoft.com/en-US/internet-explorer/add-view-organize-favorites Export and import favorites | Microsoft Support]
    # In Firefox, import the bookmarks from the HTML file.
    #* [[Import Bookmarks from a HTML file]]

  • How do I get "Pages (Beta)" documents I put in iCloud to show up on my iPhone5S?

    How do I get "Pages (Beta)" documents I've already put it in iCloud to show up on my iPhone 5S?

    Just open Pages on your iPhone... they should appear there.

  • How do I get pages 5.2 to automatically update the date - use 10.9.2

    How do I get pages 5.2 to automatically update the date in my documents - before the update I could do this. Does anybody have the knowledge or a workaround.
    If not I will dump pages 5.2 and use my old version!!! this feature is important for any and all businesses using pages??
    Any advice on how to achieve this is greatly appreciated
    I use a number of macs all using OSX
    10.9.2

    I have the same problem.
    What confuses me is that all the apple provided templates in pages seem to auto update their time and date upon opening.
    So there MUST be a way to do it... Ive been unable to work out how...
    Amnon

  • CurrencyString in JSP-page based on a sql-only ViewObject

    I have made a JSP-page based on a sql-only ViewObject against the hr employees table, and
    the currencyString on the page doesn't work! The <c:out value="${Row.currencyString}"/>
    makes a "*" on every row. How come that this only happens to sql-only ViewObjects? The sql
    in the view is simply "select * from employees", and I'm using the 10g production build 1605.

    You just have to make sure that the view object has a Key Attribute, then the indicator will show appropriately. The key is required so that currency can be tracked.
    This is documented in the help topic "About the Oracle ADF Bindings" in the section "About the Iterator Binding"

Maybe you are looking for

  • Ibooks author publishing problems....

    i can't upload my new ebook created by ibooks author. I tried three times for hours and hours (10 hours...) but it still appears "authentcating with itunes store"... the books is about 85 Mb so i can't really understand. it should be easier. can you

  • Adobe Photoshop Album Starter Edition 3.2 with AOL desktop (AOL 10)

    I have fully patched XP SP2 AOL 10 as default email client Adobe Photoshop Album Starter Edition 3.2, registered and unlocked. When setting pref for email client within Adobe PSE, AOL is not listed as an email option. I have reinstalled Adobe Photosh

  • Connection drops

    Hi, Sometimes when I access my router's settings page, it has a tendency to reboot itself. The ADSL light will go out and the router will restart. This is happening sometimes as much as three times a day. The noise margin in showing around 7 - 10 on

  • Schedule_ship_date not to sat ,sun (Holiday) in report in oracle

    Hi All, I have the below query in which the column (ool.schedule_ship_date - (DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0)))) schedu

  • Open Card Framework website

    Where to download the Open Card Framework? The www.opencard.org takes to some japanese/chinese website? Does Opencard still alive?