PAGEID from item_id or caid

I would like to get default pageid(ca_page) for displaying
content area from item_id (or folder_id or caid. I need it to
display any item between other elements of content area page.
Anybody knows where to find the connection between pageid and
content area elements?
Thanks,
Marko

I have url items stored in different content areas. My goal is
to make a function URL_ITEM_LINK which would return the url link
for displaying any item in the default content area page.
The function URL_ITEM_LINK has parameter Item_id and
concatenates other parameters from DB to url links like
'http://multiserver:8000/servlet/page?
pageid=161&dad=portal30&_schema=PORTAL30&_type=site&_fsiteid=13
4&_fid=8911&_fnavbarid=1&_fnavbarsiteid=134&_fedit=0&_fmode=2&_fd
isplaymode=9&_fcalledfrom=1&_fdisplayurl=http%3A%2F%
2Fmultiserver%2Foralab%2Ftest.htm'(same as when you click on the
content area item if you used url item).
All the values for these links I got from the DB except
of '_pageid=161'. Items are stored in content areas so instead
of using _pageid=161 for every item I would like to get the
page_id from DB (from item_id or caid).
So far I am able to get fsite_id, folder_id, fdisplay_url and
everything else from Item_id except of page_id. I can't find the
connection in DB from caid to its ca_page id.
Hope this makes my question more clear? Anybody knows any other
ways for diplaying url item in its content area ca_page?
Marko

Similar Messages

  • Pagename, pageid from pl/sql?

    Hello world,
    Just upgraded to 10.1.4 and now URLs dont have site_id and page_id.
    Our portal has one navigation menu portlet.
    It was getting page id from URL, now this is not working.
    ---->> All i need is to know what page i am in.
    Be it page_id, page_name, whatever, just a reference that enables me to display my menu options.
    I know this this is a trivial question, but i already spent several hours trying to find a solution...
    regards, thanks in advance
    Alex

    Thanks, i saw that one yesterday.
    I have a menu portlet placed in all site pages.
    I need to know the current pagename or pageid that is currently displaying the menu portlet, so that i can display the current option in bold, expand that menu option tree and colapse the others, etc.
    It is working ok in old portal version, where the URL displayed page_id and site_id.
    But now in 10.1.4 URL does not contain site id and page id, it displays the path to the page, with default tab names in the end (if the page has tabs).
    Has anyone a simple pl/sql that can scan the url in Portlet Record . page_url field and retrieve the site and page_name?
    Or a function from the APIs that gets the current page?
    This would do the trick for me.
    Thanks
    Alex

  • Solution to get pageid from Oracle Portal in 14 Steps

    To get the _pageid from your site is simple you have to do this:
    Example browser link -> portal/page?_pageid=34,35030&_dad=portal&_schema=PORTAL
    1º - Edit your template page click in the "properties" link
    2º - go to the tab Parameters
    3º - create a new parameter with the name _pageid
    4º - click in navigator and after click in providers
    5º - Locally Built Providers and create your build APP for your site (in my case the name is APP_PORTAL)
    6º - Create your dynamic page (in my case DYN_MENU to use a menu based in the pageid)
    7º - uses this code:
    /* the pageid have the number of your site (in this case psiteid) and the number of the page (in this case ppag)
    after this you can call procedures using this two variables like the procedure menu who is create in the my package portal in the etcuser:
    in the step or tab "Custumization Form Display Options" who detect the bind variable :pageid click in the option "Make public"
    <ORACLE>declare
    psiteid NUMBER(4);
    ppag NUMBER(7);
    begin
    psiteid:=TO_NUMBER(substr(:pageid, 1, INSTR(:pageid, ',', 1, 1)-1));
    ppag :=TO_NUMBER(substr(:pageid, INSTR(:pageid, ',', 1, 1)+1));
    htp.p('Site: '|| psiteid ||' Page: '|| ppag ||'');
    etcuser.portal.menul(ppag, psiteid);
    end;
    </oracle>
    8º - After this you only need to associate in the template the _pageid parameter with bind variable :pageid of your dinamic page
    9º - In your template add a Portlet to the region
    10º - click in Portlet Staging Area - your build repository (in my case APP_PORTAL) and chose the DYN_MENU
    11º - after click in the link properties of the template page go to the tab parameters again
    12º - In the Portlet Parameter Values now you can expand your dinamic applications (in my case de DYN_MENU)
    13º - Expand your application and associate the Portlet Parameter (in this case de pageid) equal (=) chose "Page Parameter" and select in the combo the _pageid
    14º - The job is done now you have the pageid in your oracle portal pages
    :)

    No... work's in oracle portal 10.1.4 if your system is configured to pass the pageid like my example. And my page only have one template for the entire portal and you only need to add the Dynamic page only one time in the template.

  • Extracting PAGEID and Text Description from Statistics cube

    Hi SDN Community,
    Can anyone please confirm that the following approach to extract the PAGEID and its text is the only way to do so:
    As i cannot find the PAGEID field in any of the 0BW* statistics cube, we will create an infoobject and add it to one of the cubes.
    Then Map PAGEID from RSDDSTAT to Field: OBJID from Table RSZWOBJTXT
    (This mapping between the tables RSDDSTAT and  RSZWOBJTXT can then be used to retrieve the web page description from the field TXTLG)
    Thank you for your assistance.
    Simon

    The PageID is not in the statistics cube

  • Ordering of rows are showing difference when migration db from 9.2.0.8.0-32bits(windows 3) to 10.2.0.5.0 - 64bit(windows 8)?

    Dears,
    After migration(via export/import), we are facing ordering of rows are mis-match  in these two databases.
    the following same query I am running on the these two databases. but different output. output are below.
    [CODE]
    SELECT ROWNUM AS RowNo, TBL1.*
      FROM (    SELECT COUNT (PG_ID) AS TotalCount,
                     PG_DESC AS PageDescription,
                     CURR_EPR_QUEUE AS CurrentQueue,
                     PG_NME AS PageName,
                     QUEUE_TYP_CDE AS QueueTypeCode,
                     PG_ID AS PageID
                FROM SASV_TB_CNT_APPL_JUDG_2----this is a view
               WHERE (CURR_EPR_QUEUE = 'test' AND QUEUE_TYP_CDE = '01')
                     OR (    JUD_RACIF_ID = 'test'
                         AND CMPLTD_IND = '0'
                         AND DSPLY_IND = '1')
                        AND TOTAL_CNT > 0
            GROUP BY PG_ID,
                     PG_NME,
                     PG_DESC,
                     CURR_EPR_QUEUE,
                     QUEUE_TYP_CDE            
                      ) TBL1
    [/CODE]
    output- from
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    1
    7
    Other Documents(Hearing)
    askinj
    HG01_Other_Documents
    1
    HG01-TB02
    2
    3
    Pending Award
    askinj
    HG01_Pending_Order
    1
    HG01-TB05
    3
    19
    Motion(ADR)
    askinj
    MD01_Motion
    1
    MD01-TB01
    4
    5
    Other Documents(ADR)
    askinj
    MD02_Other_Documents
    1
    MD01-TB02
    5
    1
    Scheduling(ADR)
    askinj
    MD01_Scheduling
    1
    MD01-TB03
    6
    8
    Mediations
    askinj
    MD01_Mediations
    1
    MD01-TB04
    output from--
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    1
    3
      Pending Award
    askinj
    HG01_Pending_Order
    1
    HG01-TB05
    2
    7
      Other   Documents(Hearing)
    askinj
    HG01_Other_Documents
    1
    HG01-TB02
    3
    8
      Mediations
    askinj
    MD01_Mediations
    1
    MD01-TB04
    4
    5
    Other Documents(ADR)
    askinj
    MD02_Other_Documents
    1
    MD01-TB02
    5
    1
    Scheduling(ADR)
    askinj
    MD01_Scheduling
    1
    MD01-TB03
    6
    19
    Motion(ADR)
    askinj
    MD01_Motion
    1
    MD01-TB01
    the views query is below
    SASV_TB_CNT_APPL_JUDG_2
    [code]
    (SELECT spm.PG_ID,
               spm.PG_NME,
               spm.PG_DESC,
               DECODE (TAJD.ABS_IND, 1, GUEST_JUD_ID, JUDG_ID) CURR_EPR_QUEUE,
               QUEUE_TYP_CDE,
               1 "TOTAL_CNT",
               DECODE (TAJD.ABS_IND, 1, GUEST_JUD_ID, JUDG_ID) JUD_RACIF_ID,
               CMLTD_IND CMPLTD_IND,
               NULL DSPLY_IND
          FROM SA_PG_MSTR SPM, TMST_APPEAL_JUDGE_DETAIL TAJD, SA_WRK_ITM SWI
         WHERE     SWI.WRK_ITM_ID = TAJD.WRK_ITM_ID
               AND swi.tb_pg_id = spm.pg_id
               AND SWI.CURR_EPR_QUEUE = 'AppellateCommonJudgeUser'
               AND CMLTD_IND = '0'
               AND tajd.LEAD_JUD_IND != '3'
        UNION ALL
        SELECT spm.PG_ID,
               spm.PG_NME,
               spm.PG_DESC,
               CURR_EPR_QUEUE,
               QUEUE_TYP_CDE,
               1 "TOTAL_CNT",
               CURR_EPR_QUEUE judg_racif_id,
               '0' CMPLTD_IND,
               NULL DSPLY_IND
          FROM SA_PG_MSTR spm, SA_WRK_ITM SWI
         WHERE SCCS_IND = '1' AND SWI.ACTIVE = '1' AND spm.pg_id = swi.tb_pg_id
        UNION ALL
        SELECT spm.PG_ID,
               spm.PG_NME,
               spm.PG_DESC,
               CURR_EPR_QUEUE,
               QUEUE_TYP_CDE,
               1 "TOTAL_CNT",
               JUD_RACIF_ID,
               CMPLTD_IND,
               DSPLY_IND
          FROM ST_WRK_ITM_JUD_DTL SWIJD, SA_WRK_ITM SWI, SA_PG_MSTR spm
         WHERE     SWI.WRK_ITM_ID = SWIJD.WRK_ITM_ID
               AND swi.tb_pg_id = spm.pg_id
               AND swi.queue_typ_cde IN ('01', '05')
               AND swi.dup_ind <> 1);
    [code]
    parameters in 9i are belows
    [code]
    aq_tm_processes    1
    background_dump_dest    D:\oracle\admin\TEST\bdump
    compatible    9.2.0.0.0
    cursor_sharing    similar
    db_block_size    8192
    db_cache_size    947912704
    db_domain
    db_file_multiblock_read_count    16
    db_keep_cache_size    167772160
    db_name    TEST
    fast_start_mttr_target    300
    hash_area_size    1073741824
    hash_join_enabled    TRUE
    instance_name    TEST
    java_pool_size    67108864
    job_queue_processes    10
    large_pool_size    109051904
    local_listener    (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.51)(PORT=1521))
    log_archive_format    %t_%s.dbf
    log_archive_start    TRUE
    log_buffer    26214400
    open_cursors    700
    optimizer_index_caching    80
    optimizer_index_cost_adj    20
    optimizer_mode    FIRST_ROWS
    pga_aggregate_target    1468006400
    processes    800
    query_rewrite_enabled    TRUE
    remote_login_passwordfile    EXCLUSIVE
    session_cached_cursors    400
    sga_max_size    2149134244
    shared_pool_size    788529152
    sort_area_size    1073741824
    star_transformation_enabled    FALSE
    timed_statistics    TRUE
    undo_management    AUTO
    undo_retention    10800
    undo_tablespace    UNDOTBS1
    utl_file_dir    H:\ICMS_TO_GO
    workarea_size_policy    AUTO
    [code]
    parameters in 10 are belows
    [code]
    aq_tm_processes    1
    compatible    10.2.0.5.0
    db_block_size    8192
    db_domain
    db_file_multiblock_read_count    16
    db_name    TEST
    db_recovery_file_dest    C:\oracle/flash_recovery_area
    db_recovery_file_dest_size    171798691840
    dispatchers    (PROTOCOL=TCP) (SERVICE=TESTXDB)
    job_queue_processes    10
    log_archive_format    ARC%S_%R.%T
    open_cursors    800
    open_links    10
    open_links_per_instance    10
    pga_aggregate_target    3984588800
    processes    1200
    recyclebin    OFF
    remote_login_passwordfile    EXCLUSIVE
    session_cached_cursors    400
    sessions    1325
    sga_max_size    10485760000
    sga_target    10485760000
    undo_management    AUTO
    undo_tablespace    UNDOTBS1
    utl_file_dir    H:\ICMS_TO_GO
    optimizer_dynamic_sampling    2
    optimizer_features_enable    10.2.0.5
    optimizer_index_caching    80
    optimizer_index_cost_adj    20
    optimizer_mode    FIRST_ROWS
    optimizer_secure_view_merging    FALSE
    plsql_optimize_level    2
    [code]
    where can we look into for this issue? actually we need rows will be the same ordering as it was in 9i.
    we are facing this problem in lot of queries, this is a sample one.
    Regards
    Halim

    Hi Jgarry,
    why do you need a particular physical order?
    Actually i don't know the .net application behave or code yet . but after migration, I am facing this issue.
    one more thing we changed the server machine so Is there any registry parameter (in windows) related to this. Have you any idea.
    the application is running since 8 years and I think nobody can rely on implicit data distribution arising from how the data is entered to develop a application.
    Hi Hoek,
    According to Oracle White Paper(page 17), If I change below parameter. Is there any hope to get same order.
    "After you upgrade to Oracle Database 10g, if you
    wanted to revert back to 9.2 optimizer behavior you can set
    OPTIMIZER_FEATURES_ENABLE = 9.2.0 "
    Regards
    Halim

  • Retrieving PageID in Plumtree v4.5 SP2

    Note: This post applies to portal version 4.5 SP2 - upgrading is not a solution.
    I have a community with multiple pages. Each page contains an instance of the same gadget, and the gadget allows an admin to set Community-Gadget preferences. The problem is that each instance of the gadget shares the same set of preferences, meaning that each gadget on each page will overwrite any previous settings and all gadgets appear the same.
    Is there a way to uniquely identify a single gadget on a community that holds true across all pages in that community?
    I had thought of using either the query string parameter 'intCurrentPageIndex' or 'PageID' but these will appear at different times, sometimes haphazardly. Is there any way to ALWAYS retrieve either of these values so I can have the key CommunityID + GadgetID + PageID to uniquely identify my gadget on the portal?
    PageID is not passed in the headers, so no luck there...
    Anyone have any ideas?
    Thanks,
    Jarrod

    4.5 version does not pass page id in the gateway. We had a simillar situation and I came up with a round-about solution (though we actually have not implemented).
    In community.asp (Plumtree supplied page), pageId is available. you can store the PageId in a database (as currentPageId) for the user and then retrieve this pageId from within the portlet.
    Other way is to find the function in Community.asp which executes the portlets and pass the pageid through the header.

  • Portal 10.1.4.2 URL

    How to get new URL for any OLD URL format using SQL or PL/SQL ?
    If splash screen is on then we will see message like :
    The format of this URL has changed. Change the source of this URL to the New URL displayed below. The Old URL is not supported in future releases. If your browser does not automatically re-direct you in 30 seconds, click the New URL below to go to the new page.
    and it gives OLD URL
    and new URL
    I want to know how exactly oracle portal finds out NEW URL ? Is there any backend utility where we pass OLD URL and get new URL. I have a procedure where I pass SITE_ID, Page_ID and get new URL but then I need to take care of all parameter passing in URL etc.
    New URL in splash screen does every thing, i tried to trace oracle DB session but could not get how it retrieves new URL.
    Any suggestions ?

    Oracle gives a patch No 8970252 to fix some URL but somehow even that patch have some issues. I was not able to make it work.
    This will fix URL in WWSBR_URL$.
    Here is unofficial , unsupported solution :
    Create this in Portal schema. This procedure gives new URL based on Site_ID and Page_ID
    Create this procedure first and provide correct input for HOSTNAME, PORT & Dad_NAME.
    set serveroutput on
    set define on
    set lines 5000
    REM It will ask HOSTNAME
    REM Port Number
    REM DAD_NAME which usually is portal
    create or replace procedure GetDirectAccessURL
    (v_siteid in number default 2,
    v_pageid in number default 1,o_URL out varchar2)
    is
    l_start number (10) := v_pageid;
    l_url varchar2 (4000);
    l_url309 varchar2 (4000);
    l_url1014 varchar2 (4000);
    l_id number (10);
    l_name varchar2 (4000);
    l_hostname varchar2 (50) := '&&Hostname';
    l_port varchar2 (6) := '&&Port';
    l_dad varchar2 (50) := '&&DAD_Name';
    l_parentid number (10) := -1;
    begin
    while (l_parentid != 0) loop
    -- The set_context is used due to the security access.
    wwctx_api.set_context ('portal', '&&Lightweight_Portal_Password');
    -- This refers to the Public Content Views.
    -- DISTINCT is here used to take into account the several languages a Page Group can have.
    select distinct id, name, parent_id
    into l_id, l_name, l_parentid
    from WWSBR_ALL_FOLDERS
    where caid = v_siteid
    and id = l_start;
    l_url := '/' || l_name || l_url;
    l_start := l_parentid;
    end loop;
    -- Not to display the port when 80 and 443.
    if (l_port = 80) then l_port := '';
    elsif (l_port = 443) then l_port := '';
    else l_port := ':' || l_port;
    end if;
    l_url309 := wwctx_api.get_server_protocol || '://' || l_hostname || l_port || '/pls/' || l_dad || '/url/page' || l_url;
    l_url1014 := wwctx_api.get_server_protocol || '://' || l_hostname || l_port || '/portal/page/' || l_dad || l_url;
    -- dbms_output.put_line ('Portal 3.0.x Format : '||l_url309);
    -- dbms_output.put_line ('Portal 10.1.4+ Format : '||l_url1014);
    o_URL := l_url1014 ;
    end;
    Create sql file :
    fix_wwsbrurl.sql with following contents:
    -- Change yourhost:port in Exception section. We had some URL which actually did not exists so it depends what you want to do here ...
    -- Please make backup of WWSBR_URL$ Table first ....., Test in your cloned envionment.
    ALTER TRIGGER PORTAL.WWSBR_URL_TRG DISABLE ;
    update WWSBR_URL$ set URL=replace (URL,'schema=PORTAL&','schema=PORTAL?') where url like '%pageid=%' and url like '%schema=PORTAL&%';
    update WWSBR_URL$ set ABSOLUTE_URL=replace (ABSOLUTE_URL,'schema=PORTAL&','schema=PORTAL?')
    where ABSOLUTE_URL like '%pageid=%' and ABSOLUTE_URL like '%schema=PORTAL&%' ;
    --commit ;
    set serveroutput on size 1000000
    set long 100000
    set lines 500
    declare
    -- For UPDATE does not work here since getDIrectAccessURL messes it up.
    --cursor c1 is select *   from WWSBR_URL$ where URL like  '%|_pageid=%'  escape '|'  FOR UPDATE ;
    cursor c1 is select * from WWSBR_URL$ where URL like '%|_pageid=%' escape '|' ;
    len_tmp number(6,0);
    final_siteid Varchar2(60);
    final_pageid Varchar2(60);
    new_url varchar2(4000);
    changed_text varchar2(4000);
    startpos number(6,0);
    endpos number(6,0);
    SITEPAGE varchar2(4000);
    oldurl varchar2(4000);
    begin
    for i in c1
    loop
    begin
    changed_text := substr(i.url,1,4000) ;
    startpos :=instr(changed_text,'_pageid=') + 8 ;
    endpos :=instr(changed_text,'&') ;
    SITEPAGE := substr(changed_text, startpos,endpos - startpos ) ;
    final_pageid := substr(SITEPAGE, instr(SITEPAGE,',') +1) ;
    if (instr(final_pageid,',') <> 0) then
    final_pageid := substr(final_pageid,1,instr(final_pageid,',') -1 ) ;
    end if ;
    final_siteid := substr(SITEPAGE, 1,instr(SITEPAGE,',') -1 ) ;
    dbms_output.put_line('siteid :' || final_siteid || ' pageid:' || final_pageid);
    begin
    GETDIRECTACCESSURL(final_siteid,final_pageid,new_url) ;
    Exception
    when no_data_found then
    new_url :='http://yourhost:port/portal/pls/portal/PORTAL.home' ;
    dbms_output.put_line('3. No Data Found Exception:' || i.id || SQLERRM ) ;
    When Others then
    new_url :='http://yourhost:port/portal/pls/portal/PORTAL.home' ;
    dbms_output.put_line('2. When Others Exception:' || i.id || SQLERRM ) ;
    end ;
    -- Find URL to replace
    len_tmp := instr(changed_text ,'_schema=PORTAL') + 13;
    oldurl := substr(changed_text,1,len_tmp );
    dbms_output.put_line('Old URL :' || oldurl ) ;
    update WWSBR_URL$ set URL=replace(URL,oldurl,new_url) ,
    absolute_url=replace(absolute_url,oldurl,new_url )
    where SUBSCRIBER_ID=i.SUBSCRIBER_ID and ID=i.ID ;
    exception when others then
    dbms_output.put_line('1. Exception when others ' || i.id ||':' || SQLERRM ) ;
    end ;
    end loop;
    end ;
    Prompt Commit Manually Now , if you want ....
    Prompt Enable Trigger Now . Enable triiger would automatically commit so check data in same session ...
    Prompt --ALTER TRIGGER PORTAL.WWSBR_URL_TRG ENABLE ;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to create a report based on the portal30.wwsbr_all_items?

    Hi,
    I created items in a folder in a content area. I would like to create a portal report and display the items of the folder of the content area.
    I logged in the database as portala30 and issued the following statement:
    SELECT ID,NAME FROM WWSBR_ALL_ITEMS WHERE CAID = 331
    AND FOLDER_ID = 49959;
    (I found out the caid for content area and folder_id for folders
    from the portal30.wwsbr_all_content_areas, and portal30.wwsbr_all_folders.)
    I have a row returned from my query in sqlplus (which is correct).
    Then I go into portal as portal30-> application(based on portal30 schema) -> create a report,
    use the same sql statement that I used above, and I got the following error message at run time:
    Error: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - SELECT ID,NAME FROM PORTAL30.WWSBR_ALL_ITEMS order by rowid (WWV-08300)
    Note: I did run the sbrapi.sql to grant access to the content area api to portal30_public.
    What else I am missing?
    Thanks;
    Kelly.

    Hi,
    I created items in a folder in a content area. I would like to create a portal report and display the items of the folder of the content area.
    I logged in the database as portala30 and issued the following statement:
    SELECT ID,NAME FROM WWSBR_ALL_ITEMS WHERE CAID = 331
    AND FOLDER_ID = 49959;Hy i've done the same thing on my Portal and it works.
    The things i've seen is that you must remove the ';' character because you don't need it with the report component.
    Error: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - SELECT ID,NAME FROM PORTAL30.WWSBR_ALL_ITEMS order by rowid (WWV-08300)The second thing is that i've got the same error on other report and the solution is to simply add and order by at the end of the statement like this :
    SELECT ID,NAME
    FROM WWSBR_ALL_ITEMS
    WHERE CAID = 331
    AND FOLDER_ID = 49959
    ORDER BY 2
    I've done this when i've got this error and it solve the problem.
    Best regards
    Arnaud Bontemps
    mail : [email protected]
    web : http://www.labo-oracle.com

  • Pages "forget" what template to use

    Basics: Oracle Portal Version: 9.0.4.1.0 (Build: 205)
    I have a page template with approx 50 tabs, subtabs and subsubtabs.
    I have three pages based on this page template but for some reason only one of them seem to really be aware of its template.
    Doing a simple select on WWPOB_PAGE$ as PORTAL:
    select id, parentid,title, template_id, template_siteid
    from wwpob_page$
    start with id = <pageid>
    connect by parentid = prior id;
    shows me that the one page behaving as expected for all rows has the TEMPLATE_ID and TEMPLATE_SITEID filled with what I must assume is the expected values whereas the two pages not behaving as expected has only the values filled for the page itself (ID = pageid from the above select).
    This means that any portlet I add to the template will only show up on one of the three pages :-(
    I have tried manually adding the values to WWPOB_PAGE$ for one of the faulty pages but without any luck :'-(
    Am I hitting some sort of bug here? Or is there a way to repopulate all my missing values?
    Please advice...
    Claus Jessing

    You said that all three pages are based on the template. However, it seems that two pages are not actually based on the template -- what makes you think they are in fact associated with the template?
    It's possible that those two pages USED to be based on the template, but were since "detached". Detaching from a template takes a snapshot of the page's content, essentially severing the link, freezing the page's content with what was contained on the template at that time.
    When you click Edit Properties on those two pages, what do you see on the Templates tab? If the page was "detached", you will see "no template". You can then re-associate the template with the page.
    Is that the case here?

  • Implementing Shared Content in V2

    We are currently implementing a public web site in release V2.
    We have two page groups, 'Members' and 'Public'. There is content
    that is the same that can be shared between these two page groups.
    We are implementing this shared content as items which are placed on
    a page, the page is then exposed as a portlet and can be placed on
    multiple pages as needed.
    Our issue is that the shared content has links within it that should
    open in the context that the user is navigating in (eg if the user is
    in the members page group, the link must open up in a subpage
    in the members group).
    Is there any way of implementing shared content links to point
    to different sub-pages in the portal.
    Thanks,
    Suzanne

    oops, i put in some phoney code before. This is the real thing.
    a-
    create or replace procedure shared_path (path in varchar2) is
    l_host varchar2(2000);
    l_calling_page varchar2(2000);
    l_substr varchar2(100);
    l_server varchar2(500);
    l_script varchar2(100) default null;
    l_path_alias varchar2(100) default null;
    l_url varchar2(50) default '/pls/portal/url/page/' ;
    l_siteid number;
    l_sitename varchar2(200);
    l_page varchar2(1000);
    l_path varchar2(2000);
    l_port varchar2(20);
    begin
    -- owa_util.print_cgi_env;
    l_calling_page:= owa_util.get_cgi_env('HTTP_REFERER');
    l_server:= owa_util.get_cgi_env('SERVER_NAME');
    l_script:= owa_util.get_cgi_env('SCRIPT_NAME');
    l_path_alias:= owa_util.get_cgi_env('PATH_ALIAS');
    l_port:= owa_util.get_cgi_env('SERVER_PORT');
    if (l_script) is not null and (l_path_alias is not null) then
    l_url := l_script ||'/'|| l_path_alias ||'/page/';
    end if;
    if l_port != '80' and l_port != '443' and (l_port is not null) then
    l_server := l_server ||':'|| l_port;
    end if;
    l_substr := substr(l_calling_page, instr(l_calling_page,'_pageid=') + 8);
    l_substr := substr(l_substr, 1, instr(l_substr,',') -1 );
    l_siteid := to_number(l_substr);
    select name into l_sitename from pg_v where caid = l_siteid and id=1;
    if instr(path,'/') = 1 then
    l_page := substr(path, 2);
    else
    l_page := path;
    end if;
    l_path := 'http://' || l_server || l_url || l_sitename ||'/'|| l_page;
    htp.p('<html><body>');
    htp.p('path: '||l_path);
    htp.p('</html></body>');
    owa_util.redirect_url(l_path);
    exception
    when others then
    htp.p('<html><body>');
    htp.p('an error');
    htp.p('path: '||l_path);
    htp.p('</html></body>');
    end;
    show errors

  • What happened to Navigation Tree Menu?

    Hi,
    i was able to use Navigation Tree Menu on portal 10.1.2.0.0
    now we have upgraded to 10.1.4
    and it has disappeared
    note: i have configured all items types to be enabled in the page group.

    A possible problem is that the url on 10.1.4 changed and this menu gets the pageid from url.
    Check the package, there is a part that it takes pageid from url.

  • Content Area Export / -page switch

    I am using Portal Production 3.0.7.6.2 under NT.
    If I try to export a content area using the "-page" switch, then I get the following error in SQLPLUS:
    SP2-0310: unable to open file "pagename.sql"
    any ideas what is wrong?
    tks!!

    On Windows NT, the content area export script when invoked with the -page option looks for a script file named pagename.sql which was left out of the install (it has been fixed in 3.0.8). Using a text editor, save the following into a file named pagename.sql and place it in the <PORTAL_HOME>/admin/plsql/wwu directory:
    /* --- Cut Here --- */
    select 'set page_name='&#0124; &#0124;name from wwpob_page$
    where id = (select pageid from wwsbr_sites$ where upper(name) = upper('&&1'))
    set serverout on
    set echo off
    set feedback off
    set verify off
    set newpage 0
    set pagesize 0
    set space 0
    set heading off
    set trimspool on
    set termout off
    spo pagename.bat
    spo off
    exit
    /* --- Cut Here --- */

  • Page paths show root level when page published as portlet

    I use pages that simply work as repositories and which are published to the root page in the same page group as portlets. When these repository pages have sub pages I add a region with a page path for users to navigate within each page hierarchy.
    When the pages are published as portlets and placed on the root page of the page group, the page path shows the root page as the first level of the path (root : repospage : reposSubPage1 : reposSubPage11).
    This is confusing as it always seems that there is one more level above the top level when in fact reposPage is the top level.
    I want to have the underlying repository page as the top level of the path. How do I do this?

    The page path always shows the root page of the page group.
    You can try building your own page path in a PL/SQL item. The function:
    wwpro_api_parameters.get_value('_pageid','a')will return the value of the pageid parameter in the page URL (the second parameter is used by portlets and is ignored when used in a PL/SQL item). You can use this value to find the parent page in the WWSBR_ALL_FOLDERS view. By using a cursor loop (I recommend this over a connect by query against this view), you can walk up the tree to get the entire path. The root page will always have an id of 1.
    One caveat - getting the pageid from the wwpro_api_parameters.get_value function may not work in future versions of Portal.
    Also, you'll need 9.0.2.6 or later for the WWSBR_ALL_FOLDERS view.
    Regards,
    Jerry
    PortalPM

  • 10.1.4, wwsbr_all_items, GUIDs, and paths

    Portal 10.1.4:
    I'm working on a process that pulls from wwsbr_all_items.
    I'm not 100% clear on how, given the data in that view, to build the URL to the item, especially if the item is contained in a subpage.
    I was thinking I'd just do a CONNECT BY on wwsbr_all_folders to create the page path, but if there's an easier way (like an API call), it would be good to know.
    Thanks!
    -John

    Thanks Pietro!
    I'll give that a try. Too bad there's not a supported API call.
    Also tried this yesterday with success:
    FOR rec_path IN (
    select name
    from wwsbr_all_folders
    where caid = p_page_group_id
    start with id = p_page_id
    connect by prior parent_id = id
    order by level desc) LOOP
    l_page_path := l_page_path || '/' || rec_path.name;
    END LOOP;
    Thanks,
    -John

  • ObjectID from PageID

    Is there any way to obtain the objectID from a DatabaseID & PageID WITHOUT using DBCC Page.
    I'm returning Data from the Blocked Process Report and want to show which resource is being blocked.
    For certain locks means i need to find the ObjectID from the PageID.
    Ideally I would like to do this using a function or view in order to access it within the query.
    And of course DBCC Page cannot be used in a view or Function.
    edited to add: SQL Server 2008 R2 :-)
    Thanks in advance
    Paul

    Can you refer the below link
    http://beyondrelational.com/quiz/sqlserver/dba/2011/questions/172/storage-question.aspx
    With CTE_AllocationTable(TableName,FileId,PageId,SlotId,FirstPage)
    AS
    SELECT
    t.name,
    cast(convert (binary (2), reverse (substring (au.first_page, 5, 2))) as int) as FileId,
    cast(convert(binary (4), reverse (substring (au.first_page, 1, 4))) as int) as PageId,
    cast(convert (binary (2), reverse (substring (au.first_page, 7, 2))) as int) as SlotId,
    sys.fn_PhysLocFormatter(au.first_page) AS FirstPage
    FROM sys.system_internals_allocation_units au
    INNER JOIN sys.partitions p
    ON au.container_id = p.partition_id
    INNER JOIN sys.tables t
    ON p.object_id = t.object_id
    SELECT TableName,ct.FileId,PageId,SlotId,FirstPage,Name,[FileName] FROM CTE_AllocationTable ct
    INNER JOIN sys.sysfiles sf on ct.FileId=sf.FileIdWhere pageID=55778ORDER BY TableName
    --Prashanth

Maybe you are looking for

  • Memory Question for G4 Cube

    In accordance with recommendations on a previous question here I have ordered OS 10.4.6 from Apple to install on my Cube. The Apple rep said it would work with the 384 MB ram I now have in the computer. I think I will add more memory though and the A

  • How to get value in a web page automatically  and sava output in database

    how to get value this table output is row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table>

  • Final Cut Pro X - Share - Export Media - H.264 - Audio is panned to the left?!

    My video has a soundtrack that is a stereo .WAV that I can play in QuickTime with no problem. I added the .WAV to my FCPX project, exported H.264 of the finished video, and when I play the resulting file in QuickTime, the audio is panned to the left.

  • Missing signatures in OS X 10.9 mail version 7.2 (1874)

    Hello all, I was attempting to create a new mail signature for my icloud account when all of a sudden all of my signature were empty. Meaning, when I look at the listing of my signatures in mail preferences, they were there, but the content of each o

  • I-Photo to DVD messed up

    I've been making DVDs from my I-photo slideshows set to music for years.  I send them to relatives out of the area for their viewing on their DVD players.  I made 2 over the weekend, but today, I tried to make one and when I put the disc in my DVD pl