Solved

How to get page parameter pass to portlet.

Posted on 2007-03-18
7
1,513 Views
Last Modified: 2013-12-19
In Oracle Portal , I have page parameter value as bind variable. ex. :commID and default value is 1.
How can I pass this parameter to portlet to make my portlet has dynamic content generated based on this bind variable?  Any PLSQL API Available?
0
Comment
Question by:CliffEngelWirt
7 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18745339
You can't talk to a portlet via PL/ SQL API. What exactly are you looking for?
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18745340
0
 
LVL 21

Expert Comment

by:oleggold
ID: 18745443
bind variable can be assigned a value in Your portlet and can be transfered into an environment variable,defined at PLSQL session level.I'm not sure how it's for Portal but in SQLPLUS it would work like that:
var myv varchar2(50)
declare
:myv:='value'
begin;
null;
end;
0
 

Author Comment

by:CliffEngelWirt
ID: 18786111
I have page parameter for my page, but I don't know how to pass the value of the page parameter to the portlet inside the page.  I think there may be any API I can use.
0
 
LVL 1

Accepted Solution

by:
rgouw earned 500 total points
ID: 18805932
The way to do it depends on what type of portlet you have.
If you have a custom PL/SQL portlet, you can NOT get the page parameter value Unless a value is provided through the URL.
You can use this code top get some URL parameter:
htp.p( 'Parameter: '||wwpro_api_parameters.get_value(p_name => 'p_parameter',p_reference_path => p_portlet_record.reference_path));
where the name of the URL parameter is p_parameter.

You can get the page parameter value even when it is defaulted only in java portlets or in a locally built provider (e.g. dynamic page) by defining a parameter in that portlet.
This is done (in a dynamic page) like this:
htp.p( 'Parameter: '||:parameter1);

At the page properties, you must map the page parameter to the portlet parameter.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question