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.

Similar Messages

  • Get date from Oracle when local time zone is different from Oracle time zon

    Hi!
    Local machine time zone= +2
    Oracle time zone= +1
    I set date to Oracle using java.sql.Date.
    From application I save date at 00:30 clock and send e.g. 28.06.2002, but in Oracle date is save as 27.06.2002 01:00 (hour=01 , I suppose that is because java.sql.Date hasn't time the Oracle set it time = time zone=+1) And when I get date from Oracle I get incorrect date. In SQL I don't use date masks. Maybe solution is to use java.sql.Timestamp object (when save date to Oracle) instead of java.sql.Date?
    But if I save date at e.g. 01:00 clock and send e.g. 28:06.2002 in Oracle, date is save as 28.06.2002 01:00 and when I read from Oracle I get correct date.
    Thank you.

    Hi!
    Local machine time zone= +2
    Oracle time zone= +1
    I set date to Oracle using java.sql.Date.
    From application I save date at 00:30 clock and send
    e.g. 28.06.2002, but in Oracle date is save as
    27.06.2002 01:00 (hour=01 , I suppose that is because
    java.sql.Date hasn't time the Oracle set it time =
    time zone=+1) Presumably you are using setTimestamp() to store the value. If you are explicitly using a varchar (string) then you will have to correct the timezone your self.
    And when I get date from Oracle I get
    incorrect date. In SQL I don't use date masks. Maybe
    solution is to use java.sql.Timestamp object (when
    save date to Oracle) instead of java.sql.Date?The method setDate/getDate store a 'date' which is not the same as a 'date and time' for which setTimestamp/getTimestamp are used.
    But if I save date at e.g. 01:00 clock and send e.g.
    28:06.2002 in Oracle, date is save as 28.06.2002
    01:00 and when I read from Oracle I get correct date.
    Thank you.

  • How to get information from Oracle's views

    Hi,
    I need to get information from Oracle's views about:
    * in which table's column is set index
    * what type of index is on this column
    * name of a trigger which exist on a table
    * type of trigger (before, after etc)
    * trigger status (enable, disable)
    Thanks for help.

    Hi..
    One of the best way to know which views to use is doing select * from dict where table_name like 'xxx';
    For example in your case you needed to know about the indexes and triggers so
    SQL> select * from dictionary where table_name like 'DBA_IND%';
    TABLE_NAME                     COMMENTS
    DBA_INDEXES                    Description for all indexes in the database
    *DBA_IND_COLUMNS                COLUMNs comprising INDEXes on all TABLEs and CLUSTERs*
    DBA_IND_EXPRESSIONS            FUNCTIONAL INDEX EXPRESSIONs on all TABLES and CLUSTERS
    DBA_INDEXTYPES                 All indextypes
    DBA_INDEXTYPE_COMMENTS         Comments for user-defined indextypes
    DBA_INDEXTYPE_ARRAYTYPES       All array types specified by the indextype
    DBA_INDEXTYPE_OPERATORS        All indextype operators
    DBA_IND_PARTITIONS
    DBA_IND_SUBPARTITIONS
    DBA_IND_STATISTICS             Optimizer statistics for all indexes in the database
    10 rows selected.
    SQL> select * from dictionary where table_name like 'DBA_TRI%';
    TABLE_NAME                     COMMENTS
    DBA_TRIGGERS                   All triggers in the database
    DBA_TRIGGER_COLS               Column usage in all triggers
    Reading the comments you can know which view to use, then  describe the view and use what you need

  • How to get resultset from oracle procedure use ejb3

    how to get resultset from oracle procedure use ejb3
    i know oracle procedure should like this
    Create or replace PROCEDURE resultset_test(
    aaa IN NUMBER,
    bbb OUT sys_refcursor) ....
    but what s the ejb3 scripts looks like? please give me an example or link~
    ths

    - there are no EJB3 scripts, only compiled application code
    - the part of the EJB spec that deals with databases is called the Java Persistence API, but likely you are just looking for the JDBC API.
    Now you should know what to Google to get your "example script": "java jdbc oracle procedure"

  • How to get data from Oracle to SAP

    Hi All,
           I want to get data from Oracle to my internal table in SAP,
    I worked on puting  the data from SAP to Oracle, it's working fine...
    Can anybody suggest the code for accessing from Oracle with 4 primary keys in oracle.
    regards
    manish

    hi
    good
    there is two things in sap open sql and native .if you ll use the open sql than you can access any database.
    thanks
    mrutyun

  • Running forms 6i and reports 6i from oracle portal

    hi all,
    is it possible to run the forms and the reports developed in
    forms 6i and reports 6i from oracle portal
    or
    is it possible to export forms 6i and reports 6i into oracle
    portal
    prabhakaran

    Dear Friend,
    It is possible to deploy 6i forms & reports by Apache Web
    Listener. You will have to edit the httpd.conf configuration
    file and add your virtual path as Alias. The Virtual Paths are
    /dev60html/
    /dev60cgi/
    /jinitiator/
    /dev60temp/
    Reply me if youre are successful.
    Thanx.

  • JSON - get data from Oracle table

    Hi all,
    I hope it is correct thread...
    My need is to get data from oracle table using JSON and show output at html table. I'm very new to JSON (got some experience in PL/SQL and basic html knowledge). Could someone direct me to manual or give me simple example?

    JSON is a way to format data, not a way to fetch data. Call it an alternative to XML.
    Are you perhaps talking about doing an ajax request to fetch data?

  • Accessing ContentDB Webclient from Oracle Portal

    Hi All,
    Is there a way to access ContentDB webclient from oracle portal application.We are new to oracle portals. Please let us know if anyone has idea about how to proceed on developing it to access ContentDB webclient.
    Thanks,

    I could be completely wrong here, but I believe you may be able to write a PDK portlet that uses the Content DB API.
    The path we are taking is using Webcenter with a JSF bridge and the Content DB (CDB) API. In JDeveloper, we have multiple samples of the ADF/JSF-CDB API functioning. We then moved on and have JHeadstart producing the ADF/JSF; which in turn uses the CDB API. We are currently testing deployment.
    Our next step will be to link it with Webcenter and we will have should then have our portlet.
    Hope that helps.
    Steve

  • How get support from oracle for reports6i

    how get support from oracle for reports6i

    If you have support contract with Oracle, you can use this site:
    http://www.metalink.oracle.com
    or for more information
    http://www.oracle.com/support/premier/global-support-resolution/metalink.html

  • When a program gets disconnected  from ORACLE?

    Hi all,
    I have written an proc program .I have to handle the disconnection from oracle in the
    middle of a program.
    Can any one tell me what are the majour/important cases in which a program gets disconnected from oracle and also how to test these cases.
    Please help me in this regard ,
    Thanks in advance,
    Trinath Somanchi,
    Hyderabad.

    there is some OP report after Windows update Dec 2014 macro stop responding ( I cant confirm if this is also related to your issue) its because security update for Office maybe conflict with the active-x that you are installed
    try to
    Close Excel
    Start Windows Explorer.
    Select your system drive (usually C:)
    Use the Search box to search for *.exd
    Delete all the files it finds.
    Start Excel again
    Open that file and save it, and try open at Windows 7
    to get more detail about this issue, I suggest also contact Office forum
    this case also will be solve installing kb3025036
    good luck

  • Help needed with variable - trying to get data from Oracle using linked svr

    Sorry if I posted this in the wrong forum - I just didn't know where to post it.
    I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to oracle.
    Here's how I would get the variable in SQL:
    declare @maxkey INTEGER
    select @maxkey= MAX(keyfield) from [server].Data_Warehouse.dbo.mytable
    select * from [server].Data_Warehouse.dbo.mydetailtable where keyfield=@maxkey
    the select statement I need to do in oracle would use that variable like this:
    select * from OPENQUERY(OracleLinkedServer,'select
    * from ORACLEDB.TABLE where keyfield > @maxkey')
    and I get this message: OLE DB provider "OraOLEDB.Oracle" for linked server "OracleLinkedServer" returned message "ORA-00936: missing expression".
    I realize that I can't pass the @maxkey variable to oracle - so how do I accomplish this?

    Please refer the example in this link which deals with Oracle date format.
    You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
    Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]

  • How to get data from Oracle using Native SQL in SAP.. Problem with date

    Hi Masters.
    I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
    I wrote this code and it works fine without the statement of where date > '01-09-2010'
    But i need that statement on the select. I read a lot about this issue, but no answer.
    My code is (this code is in SAP ECC 6.0)
    DATA: BEGIN OF datos OCCURS 0,
          id_numeric(10),
          component_name(40),
          comuna(10),
          record_id(10),
          status,
          sampled_date(10),
          END OF datos.
    DATA: c TYPE cursor.
    EXEC SQL.
      connect to 'LIM' as 'MYDB'
    ENDEXEC.
    EXEC SQL.
      SET CONNECTION 'MYDB'
    ENDEXEC.
    EXEC SQL PERFORMING loop_output.
      SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
      into :datos from lims.SAMP_TEST_RESULT
      where     date > '01-09-2010'
    ENDEXEC.
    EXEC SQL.
      disconnect 'MYDB'
    ENDEXEC.
    How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
    Any help
    Regards

    Please refer the example in this link which deals with Oracle date format.
    You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
    Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]

  • Custom DB authentication to an application from Oracle Portal not working.

    Hi All,
    We have a Portal customized and integrated to LDAP for SSO.
    From the portal, we have a link that takes to another custom application that requires another level of authentication. We have implemented this authentication as custom Database based authentication.
    When user login to the portal and access this link, he will be directed for authentication again. This custom application has been installed on a different OC4J instance while Oracle Portal is running in a different OC4J instance.
    Issue is though user details are being propagated to the custom application page, we are receiving an error saying authentication failed.
    In the OC4J instance specific for this custom application, we have configured jazn.xml to use custom authentication.
    Below is the code:
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn-9_04.dtd">
    <jazn provider="XML" location="./jazn-data.xml" default-realm="jazn.com">
    <property name="role.mapping.dynamic" value="true"/>
    <property name="custom.loginmodule.provider" value="true"/>
    </jazn>
    and in jazn-data.xml, we gave the role mapping.
    But the problem is when the link to the custom application is accessed, it seems like the custom autentication mechanism is not working.
    Can anyone throw light on this?
    Do we need to give the same configuration in the j2ee/home/config directory files also?
    Can we use both LDAP and custom DB authentication with in the same OAS setup. Remember as of now, Portal and custom application are running in different OC4J instances but within the same OAS.
    Any help in this regard will be highely appreciated.
    Thanks,
    Sasi Bhushan

    Hi All,
    We have a Portal customized and integrated to LDAP for SSO.
    From the portal, we have a link that takes to another custom application that requires another level of authentication. We have implemented this authentication as custom Database based authentication.
    When user login to the portal and access this link, he will be directed for authentication again. This custom application has been installed on a different OC4J instance while Oracle Portal is running in a different OC4J instance.
    Issue is though user details are being propagated to the custom application page, we are receiving an error saying authentication failed.
    In the OC4J instance specific for this custom application, we have configured jazn.xml to use custom authentication.
    Below is the code:
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn-9_04.dtd">
    <jazn provider="XML" location="./jazn-data.xml" default-realm="jazn.com">
    <property name="role.mapping.dynamic" value="true"/>
    <property name="custom.loginmodule.provider" value="true"/>
    </jazn>
    and in jazn-data.xml, we gave the role mapping.
    But the problem is when the link to the custom application is accessed, it seems like the custom autentication mechanism is not working.
    Can anyone throw light on this?
    Do we need to give the same configuration in the j2ee/home/config directory files also?
    Can we use both LDAP and custom DB authentication with in the same OAS setup. Remember as of now, Portal and custom application are running in different OC4J instances but within the same OAS.
    Any help in this regard will be highely appreciated.
    Thanks,
    Sasi Bhushan

  • Images used inside the Portlets are not getting displayed on Oracle Portal

    I am registering my JSR Portlet producer on Oracle Portal server but when its rendered on the portal page its not showing images.It just shows a red cross mark showing image is not loaded.Can anyone help me out please samt thing is happening with CSS also.Please reply soon

    I'd check the image properties (right click the x and choose properties) and see what the path is for the image. If it is a relative path, you need to make sure that the file is in that location on the Application Server. /images/myImage.jpg would mean the file should be in $ORACLE_HOME/portal/images on the midtier.

  • How to get rid of "Oracle Portal" label(text) when mouse is over Logo.gif image

    In several portal screens (for example:
    Add Item wizard, Create Folder wizard,
    Create Page Style Wizard, Account Info screen, Create Page wizard, Create Application Wizard, etc, etc.... )
    there is like a Banner with the Logo.gif image and the text "Oracle Portal" displayed when the mouse is OVER Logo.gif
    I know how to replace this image with our own file, but what i would like to know how to replace or eliminate the "Oracle Portal" text.
    I imagine the information for this Template is stored somewhere in the database.
    I will appreciate if someone can help me to identify where is located this info so I can delete/replace the text.
    Any other suggestions will be wellcome.
    Tks in advance
    null

    Malin,
    when you install iAS, there is a directory
    oracle_home\portal30\images where all the image files are stored.
    for example, in my installation is:
    D:\oracle\iSuites\portal30\images
    one of the files is logo.gif, just overwrite that file with your own file (but keep the same name) and then your own logo or whatever you want will show up in the Portal.
    pls note that there are different image files you may want to replace.
    i hope it helps...
    null

Maybe you are looking for

  • How can i access appstore on new ipad air without putting credit card details on my already existed apple id.

    Hi I made my apple id for my new 1st apple ipad air from my hp laptop. when i want to access appstore to download some free apps it is asking to review my details for credit card and i dont have that. I know that we can make new account from ipad/app

  • Camera Import Plugin XDCAM - not working for me!

    I recently discovered Sony's "Camera Import Plug-In for Apple Final Cut Pro X (FCPX)." Sounds really useful, so I went for it. Downloaded it in seconds, installed it (and got the "Installation Successful" confirmation). Launched FCP X - nothing! Usin

  • Insert OLE w formula for document name

    Post Author: joemoceri CA Forum: General Hi, I'm still stuck using CR 8.5 and need to add a Word Doc to a report.  I can do it as an "insert OLE object". However, I won't be using the same doc file all the time.  The doc file name will be changing ea

  • How to install SSD on Mac pro as boot disc

    Currently using two WD 500GB HDs, one cloned by Super Duper. I'm replacing these with two Hitachi 1TB (6 Gb/s) and would like to add an SSD for a boot up and app disk. Please help with advice on how to mechanically install the SSD (E.g., is an adapte

  • Used macbook pro won't forget original apple id

    Help! this is so frustrating. I bought a used Macbook Pro from Best Buy. Unfortunately, every once in a while when I need to update an app or program, it'll suggest the previous owners apple ID and it won't let me overwrite it. I took it back to Best