Solved

How to get page parameter pass to portlet.

Posted on 2007-03-18
7
1,505 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle 12c patching 1 61
report returning null 21 79
Oracle SQL 6 47
Can anyone please tell me what does below Stored Procedure does? 4 17
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now