Passing parameter to a dynamic page portlet

We need to create a drill-down report using pl/sql, but it's not working when we passed a parameter. We did the following:
1. Create a package and a store procedure.
2. The store procedure creates the report and the look-and-feel of the report.
3. Create a dynamic page with the following code:
<ORACLE>DECLARE
BEGIN
mvdata.interbay_ops_rpts_pkg.ops_detail_procssr_rpt(p_processor);
END;
</ORACLE>
4. Set the parameter to "public" in the "customization form display option".
5. Create a page group and a page.
6. Clicked on properties of page and then clicked on the parameter tab.
7. Added a parameter named "p_processor_code"
8. We also added the portlet parameter under the "portlet parameter values" and set the parameter to be a page parameter and select the name of the parameter and click OK.
9. Launch the URL: ttp://iasdev01.bftg.com:7782/pls/portal/url/page/PG_GRP_DEVELOPMENT/PG_OPS_DETAIL_PROCESSOR?p_processor_code=DUBOIS.
10. When we tried to launch the application we get an empty report(doesn't execute the parameter).
11. Edit the page and went into layout mode.
12. Click on the "edit default" of the dynamic page portlet and put the value of the parameter and it works without any problems.
I don't understand why it doesn't take the parameter with the page url. Any help is greatly appreciated.

I had more luck with PL/SQL items. Try something like this:
declare
zip varchar2(10);
begin
zip := portal.wwpro_api_parameters.get_value('zip', 'a');
if zip='94065' then
   ... do something ...
end if;
end;Peter

Similar Messages

  • Read parameters in a dynamic page portlet?

    Hi,
    Is it possible to read input parameters in a dynamic page portlet?
    Am I missing something if I want to read the input_parameter?
    <oracle>
    ftp.p(:input_paramter)
    </oracle>
    Thanks a lot.

    Hi,
    It is not possible to read the input parameters in the <oracle> tag. You can read it in the additional plsql code. If you have
    to access the parameter deptno then do this in the additional plsql code section.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'deptno' then
    htp.p(p_arg_names(i));
    end if;
    end loop;
    Thanks,
    Sharmila

  • How to pass parameter to intro.jsp page ?

    Hi all,
    Anybody please tell me how to pass parameter to intro.jsp page.
    Is there any param name defined in <forward > syntax ?
    I have made following configuration in struts-config.xml file.
    I want to pass parameter to intro.jsp page
    <global-forwards>
              <forward name="invalidsession" path="/intro.jsp" redirect="true" />
    </global-forwards>
    please reply soon.
    Thanking you.

    Hi all,
    I have a similar kind of question..
    Iam trying to pass a string variable from JSP to servlet thro URL..
    Im using tomcat5
    COde:
    String fname=request.getParamter("filename");
    <jsp:forward page="/servlet/coreservlets.filedownload?name=" +fname />
    It is generating a unterminated tag error..Please help..

  • Color and Styles in Dynamic Page Portlets

    How do you control the colors and fonts of Dynamic Page Portlets.
    I am currently using simply syntax and let the Portlet do the rest.
    <ORACLE>Select * from Emp</ORACLE>

    Did you try to use something like:
    <head>
    <LINK rel="stylesheet" href="estilos.css">
    </head>
    before the oracle tags and inside the file include the colors and all that things?

  • Passing value to a dynamic page from a pdk-java portlet

    Hi everyone.
    I'm quite new to portlets, so I'll try to present my problem as well as I can:
    I have a PDK-java portlet in which I read some information (like name, location) about user.It works ok.Now I want to use that infomation in another portlet, which is build as a Dynamic Page ( with portletbuilder). How can I do this? I was thinck at session variables, but....
    Thanks a lot

    have you ever got any response??
    i'm facing the same problem.
    thanks

  • Over-ride default customization for Dynamic page portlet

    has anyone been successful at over-riding the default customization that comes with the Dynamic page wizard. I have a portlet that will have specific values for each user and I would like to default those values the first time the user comes in. The delivered customization screens are not adequate to do this.
    Any ideas would be appreciated...
    null

    The question is not related to dynamic services. It is related to over-riding the default customization delivered by the Oracle portal dynamic page wizard. I need to figure out using the PDK how to enhance / over-ride the default customization that is generated. Is the preferred approach to go through the wizard and then modify the code that gets generated or should you just start from scratch and never use the wizard at all?
    Thanks,
    Tom
    null

  • Pass parameters to a dynamic page with MULTIPART

    Hello everybody,
    I'm facing with a problem that I still can't resolve...
    For some reasons I need to use a Dynamic Page as a form, so I create an html form (which contains also an <input type="file" name="file_test">) that call the same page with enctype="multipart/form-data".
    When I call the page to save the data, I can read all the parameters with :parameter_name, but I can't read the content of the file. If I try to get :file_test it contains only a file name.
    How I can get:
    1) the mime format
    2) the content of the file (binary)
    and then save it in a blob?
    Thank you in advance for your help...

    You can use sessions to pass values from one page to another.
    In page A you can add a value:
    v_user_session portal.wwsto_api_session;
    v_user_session := portal.wwsto_api_session.load_session(
    p_domain => 'yourDomain',
    p_sub_domain => 'sub');
    v_user_session.set_attribute(
    p_name =>'name',
    p_value => 'YourValue'
    v_user_session.save_session;
    The p_domain and p_sub_domain can be choosen freely but you must know that they have to be the same if you want the retrieve the value from page2:
    v_user_session portal.wwsto_api_session;
    v_user_session := portal.wwsto_api_session.load_session(
    p_domain => 'yourDomain',
    p_sub_domain => 'sub');
    yourValue := v_user_session.get_attribute_as_varchar2('name');
    This is how you can pass values without posting or without adding them to the URL.

  • How to pass parameter between two jsp pages using web link (not form)

    Hi Friends,
    I have two jsp pages and would like to pass a parameter from one JSP page (one.jsp) to another JPS page (two.jsp)
    in one.jsp
    <a href="two.jsp?ant="<%=ant%">"> <%=antName%> </a><br>
    I don't know how to pass value of parameter "ant" to two.jsp from one.jsp.
    Can anyone help this? Thank you in advance</a>

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • Problem: Dynamic Page portlet is not displayed on a public-viewable page

    I've written a little dynamic page portal that works nicely on secure pages, but when I create a new page and mark this page as "public viewable" - the portal is not displayed.
    I created a 2nd public page and put several prebuilt and some of our own portlets onto this page - again none worked - except the prebuilt "login" portlet.
    Is there a restriction that I'm not aware of?
    Is there a documentation about this behaviour?
    Can anyone post me a hit or link to documentatin?
    Sincerly,
    Art
    Message was edited by:
    user620777

    Make sure your Portlet Provider access is set to allow 'PUBLIC' access with Execute';
    To set, navigate to Providers > Locally Built Providers
    Follow 'Grant Access' link near provider name
    Doc Reference, Section A.5.1.2 > http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_portletbuilder.htm#BABIEFJG

  • Passing parameter to a portal page that display a WSRP portlet ?

    I have created, deployed and regisered a WSRP portlet to Portal 10.1.4. I also create a portal page used to render this portlet. I would like to pass in a parameter xx (thru the HTTPRequest) when calling this page and have it visible to the portlet inside the page. Something like http://host:port/portal/page/portal/myPortlets/portletA?xx=123 where
    "http://host:port/portal/page/portal/myPortlets/portletA" represented my portal page and "xx=123" is what I want my page to see.
    Is it even possible/support by Portal 10.1.4 ?
    Thanks.
    Kim

    HI Alejandro,
    Did the same what you have told me. I am getting the following error
    oracle.jbo.JboException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters are {0=java.io.EOFException, 1=null}
    at oracle.adf.model.bc4j.DCJboDataControl.setCurrentRowWithKey(DCJboDataControl.java:1554)
    at oracle.adf.model.binding.DCIteratorBinding.setCurrentRowWithKey(DCIteratorBinding.java:3829)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1588)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2189)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:751)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:407)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:255)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:213)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
    Thanks

  • Help - Passing parameter to report using page parameter

    I have a SQL Report on a page
    The report query is
    select * from scott.emp where deptno = :department
    The URL for the page containing the report is:
    http://developer03.fis:7777/portal/page?_pageid=95,36455&_dad=portal&_schema=PORTAL
    I have added a page parameter = departnment
    and associated the page parameter to the report bind variable in the Portlet Parameter Values as follows:
    department = Page Parameter, department
    I displayed the page by going to the above URL
    and then added &department=10 to the end of the URL in the browser address.
    I expected the report to display records for deptno = 10, but the query didn't return any records.
    Anyone know what's wrong??
    Thanks Larry

    Yes, except you need to add &department=10 to the end of the page URL, not what I had.
    Look at
    How to pass values from a Page to portlet in Portal.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=335031.996
    for a complete description on how to setup page parameters and associate them with bind variables.

  • Passing parameter to Applet Dynamically

    Hi All,
    How can i pass the parameter to applet at the runtime?
    I want to play a video file. So 'm using one applet(I got this from JMF Documentation).
    Here is the Applet._
    import java.applet.Applet;
    import java.awt.*;
    import java.io.File;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    import javax.media.*;
    import javax.swing.JOptionPane;
    public class TypicalPlayerApplet extends Applet implements ControllerListener
    // media player
    Player player = null;
    String mediaFile = null;
    // component in which video is playing
    Component visualComponent = null;
    // controls gain, position, start, stop
    Component controlComponent = null;
    // displays progress during download
    Component progressBar = null;
    * Read the applet file parameter and create the media
    * player.
    public void init()
    setLayout(new BorderLayout());
    // input file name from html param
    //String mediaFile = null;
    // URL for our media file
    URL url = null;
    // URL for doc containing applet
    URL codeBase = getDocumentBase();
    // Get the media filename info.
    // The applet tag should contain the path to the
    // source media file, relative to the html page.
    if ((mediaFile = getParameter("FILE")) == null)
    Fatal("Invalid media file parameter");
    try
    // Create an url from the file name and the url to the
    // document containing this applet.
    if ((url = ((new File(mediaFile)).toURI()).toURL()) == null)
    Fatal("Can't build URL for " + mediaFile);
    // Create an instance of a player for this media
    if ((player = Manager.createPlayer(url)) == null)
    Fatal("Could not create player for "+url);
    // Add ourselves as a listener for player's events
    player.addControllerListener(this);
    catch (NoPlayerException ex)
    JOptionPane.showMessageDialog(null, "Error "+ex.getMessage());
    catch (MalformedURLException u)
    Fatal("Invalid media file URL!");
    catch(IOException i)
    Fatal("IO exception creating player for "+url);
    * Start media file playback. This function is called the
    * first time that the Applet runs and every
    * time the user re-enters the page.
    public void start()
    // Call start() to prefetch and start the player.
    if (player != null) player.start();
    * Stop media file playback and release resources before
    * leaving the page.
    public void stop()
    if (player != null)
    player.stop();
    player.deallocate();
    * This controllerUpdate function must be defined in order
    * to implement a ControllerListener interface. This
    * function will be called whenever there is a media event.
    public synchronized void controllerUpdate(ControllerEvent event)
    // If we're getting messages from a dead player,
    // just leave
    if (player == null) return;
    // When the player is Realized, get the visual
    // and control components and add them to the Applet
    if (event instanceof RealizeCompleteEvent)
    if ((visualComponent = player.getVisualComponent()) != null)
    add("Center", visualComponent);
    if ((controlComponent = player.getControlPanelComponent()) != null)
    add("South",controlComponent);
    // force the applet to draw the components
    validate();
    else if (event instanceof CachingControlEvent)
    // Put a progress bar up when downloading starts,
    // take it down when downloading ends.
    CachingControlEvent e = (CachingControlEvent) event;
    CachingControl cc = e.getCachingControl();
    long cc_progress = e.getContentProgress();
    long cc_length = cc.getContentLength();
    // Add the bar if not already there ...
    if (progressBar == null)
    if ((progressBar = cc.getProgressBarComponent()) != null)
    add("North", progressBar);
    validate();
    // Remove bar when finished ownloading
    if (progressBar != null)
    if (cc_progress == cc_length)
    remove (progressBar);
    progressBar = null;
    validate();
    else if (event instanceof EndOfMediaEvent)
    // We've reached the end of the media; rewind and
    // start over
    player.setMediaTime(new Time(0));
    player.start();
    else if (event instanceof ControllerErrorEvent)
    // Tell TypicalPlayerApplet.start() to call it a day
    player = null;
    Fatal (((ControllerErrorEvent)event).getMessage());
    void Fatal (String s)
    // Applications will make various choices about what
    // to do here. We print a message and then exit
    System.err.println("FATAL ERROR: " + s);
    throw new Error(s); // Invoke the uncaught exception
    // handler System.exit() is another
    // choice
    Following is my HTML Code,_
    <applet id="TypicalPlayerApplet" name="TypicalPlayerApplet" code="TypicalPlayerApplet.class" codebase="app" width=320 height=300>
    <param name=file id="param1" value="c:\\avi\\cineloop1.avi" />
    </applet>
    What my question is how can i pass this location "c:\\avi\\cineloop1.avi" at the runtime. I am passing the cineloop location along with the URL. Now i want to pass this location which is taken from the URL, to the Applet.
    How can i achieve this. Will some one help me out.
    Thanks and regards
    Chennaibee.

    Thanks winj,
    I tried to pass the cine loop filename via java script on page load event.
    function assignit()
    var filename='c:\\avi\\loop3.avi';
    var myapplet = document.getElementById('TypicalPlayerApplet');
    myapplet.mediaFile=filename;
    And in the page load event i called this JS.
    *<body onload='assignit();'>*
    It's passing the file name after the applet getting started.
    How can i pass the file name before the applet getting starts.
    Is it possible to call this Java Script during the page initialization.
    Regards
    Chennaibee.

  • Passing parameter to custom JSP page

    From an appraisal, I am adding a link thru personalization that opens a custom JSP page in a new window. I somehow need to pass the appraisal_id context from the old page to the new page so the new page displays the appropriate information.
    This is tricky because the original appraisal page isn't calling the new page within its code. Is there any way possible to pass a parameter such as appraisal id to this new page?
    Thanks for any help.
    M

    M,
    Have you tried passing the value via HTTP session.
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • How to pass parameter from SSO login page to ADF application page?

    We have ADF-JSF application (running on AS 1013) that is being protected by OID running on AS 1012. SSO login page contains (among others) paramter ssousername and I wish to pass this to my ADF application. For the testing purpose I created ADF application entry point page that has something like this:
    <h:outputText value="#{param.ssousername}"/>and my sso login page has:
    <input type="text" size="30" maxlength="50" name="ssousername" value="<%=str_user%>">OID and ADF OC4j are running on two different servers, same network.
    So after successful login, when my page displays param passed is NULL?!
    Why?

    I solved it with the following....when my page loads, I execute test method:
        public void processLogin(String ssousername) {
             Object o  = JSFUtils.getUserFromSSOLogin();
             if (o!=null) System.out.println(o.toString());
        public static Object getUserFromSSOLogin(){
            FacesContext ctx = FacesContext.getCurrentInstance();
            return ctx.getExternalContext().getRemoteUser();
        }

  • Passing parameter in query dynamically

    -- I have a query that is stored in a table column, the query contains a parameter 
    -- I tried to pass the parameter, but failed. How can I accomplish this task?
    CREATE TABLE #testFullQuery(longString varchar(Max))
    INSERT INTO #testFullQuery(longString) VALUES ('SELECT * FROM @NewValue');
    DECLARE @SourceCode nvarchar(MAX);
    SELECT @SourceCode = longString FROM #testFullQuery
    DECLARE @NewValue VARCHAR(MAX) = 'TableName';  
    DECLARE @FullQuery nvarchar(MAX);
    SET @FullQuery = '';
    SET @FullQuery = @SourceCode 
    EXEC sp_executesql @FullQuery;
    print @fullQuery, @NewValue
    l__j

    Simply replace the placeholder with the value of the variable:
    DECLARE @testFullQuery TABLE (longString varchar(Max))
    INSERT INTO @testFullQuery(longString) VALUES ('SELECT * FROM @NewValue');
    DECLARE @SourceCode nvarchar(MAX);
    SELECT @SourceCode = longString FROM @testFullQuery
    DECLARE @NewValue VARCHAR(MAX) = 'TableName';
    DECLARE @FullQuery nvarchar(MAX);
    SET @FullQuery = '';
    SET @FullQuery = REPLACE(@SourceCode,'@NewValue',@newValue)
    EXEC sp_executesql @FullQuery;
    print @fullQuery

Maybe you are looking for

  • How do I reinstall os x moutain lion after deleting necessary files?

    When trying to get my Canoscan 9550F to work with OS X 10.8.x, I was able to add it to the system settings under printer, but still it didn't work. I decided to make sure the Canon driver and Apple driver weren't fighting, so I deleted some files. No

  • File System Case Sensitive - breaks Write-Once

    I don't find a System property that denotes if the file system is case sensitive. If I want a FileFilter to behave as the user is expecting - it must know if the file system that it is running on is case sensitive. For example: On a DOS system the fi

  • Alright, some serious problems (WRT54GS)

    Alright, here's my problem. I've tried searching many places and haven't really been able to get an answer to help me. I hope someone here can change my luck. Ok, so, I got this WRT54GS just a few days ago. Here's my problem. I tried to install it us

  • How to display a picture like instruction?

    I'm want to display a pciture like working instruction before or after the UUT serial number input dialog,how to make the step ?

  • Question on reinstall to same PC ?

    Hello, Both my Photoshop Elements 9 and Premiere Elements 9 stopped suddenly working. I decided to reinstall. Removed Elements 9 to start with and did not deactivate license key because do not know how to do it and was not sure should it be deactivat