Pl/sql portlet

hi,
Currently I created a url portlet which actually calls a package in the database. The procedure generate a html form.
This works fine. The html form is confined in the portlet. However, when i press the submit button on the html form, its suppose to go to another html form within the portlet. In my case it does not! Instead the new html form is displayed on the whole screen of the broweser. How can I make the new html pop up in the portlet itself?

Hi,
Inline rendering of the portlet is not possible. The only way you can do is by calling another page in the submitted form which looks similar to the page you are calling from.
Thanks,
Sharmila

Similar Messages

  • Sample  PL/SQL Portlet Source Code for Oracle Portal 9ias

    Hi, I'm a newbie of Oracle Portal technology, and I have a problem:
    I would create a PL/SQL portlet that realizes the following functions:
    1) Retrieve the username of the portal user logged from WWCTX_API.GET_USER function.
    2) Insert into an oracle db table two values about two hidden fields in the HTML FORM of the portlet.
    3) Realize the insert commit through the click on the submit button on the Html form of the portlet. I would redirect by the same button to an other page url also.
    I've never developed in Portal, and may be useful if someone could post me the source code of the SHOW MODE SECTION in the PROCEDURE SHOW of a SAMPLE PL/SQL PORTLET that realizes the upper functions.
    Thanks a lot....

    Hi
    Here's the code from Helloworld_Portlet example:
    procedure show
    p_portlet_record wwpro_api_provider.portlet_runtime_record
    is
    l_portlet wwpro_api_provider.portlet_record;
    begin
    if (not is_runnable(
    p_provider_id => p_portlet_record.provider_id
    ,p_reference_path => p_portlet_record.reference_path)
    ) then
    raise wwpro_api_provider.PORTLET_SECURITY_EXCEPTION;
    end if;
    Retrieve the portlet information.
    l_portlet := get_portlet_info(
    p_provider_id => p_portlet_record.provider_id
    ,p_language => p_portlet_record.language
    if (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW) then
    if (p_portlet_record.has_title_region) then
    Draw the portlet header and specify what links are available
    from that header (i.e. details, customize, help, and about).
    The has_title property is set at the page region level.
    wwui_api_portlet.draw_portlet_header
    p_provider_id => p_portlet_record.provider_id
    ,p_portlet_id => p_portlet_record.portlet_id
    ,p_title => l_portlet.title
    ,p_has_details => true
    ,p_has_edit => true
    ,p_has_help => true
    ,p_has_about => true
    ,p_referencepath => p_portlet_record.reference_path
    ,p_back_url => p_portlet_record.page_url
    end if;
    Draw the portlet borders.
    The has_border property is set at the page region level.
    wwui_api_portlet.open_portlet(p_portlet_record.has_border);
    Display the content of the portlet in the show mode.
    Use the wwui_api_portlet.portlet_text() API when
    generating the content of the portlet so that the
    output uses the portlet CSS.
    htp.p(wwui_api_portlet.portlet_text(
    p_string => 'Hello World - Mode Show'
    ,p_level => 1
    if (p_portlet_record.has_border) then
    wwui_api_portlet.close_portlet;
    end if;
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_ABOUT) then
    Display the about page for the portlet.
    htp.p('Hello World - Mode Show About');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT) then
    Display the edit page for the portlet.
    htp.p('Hello World - Mode Show Edit');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_HELP) then
    Display the help page for the portlet.
    htp.p('Hello World - Mode Show Help');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT_DEFAULTS) then
    Display the edit defaults page for the portlet.
    htp.p('Hello World - Mode Edit Defaults');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_DETAILS) then
    Display the details page for the portlet.
    htp.p('Hello World - Mode Show Details');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_PREVIEW) then
    Display the preview page for the portlet.
    htp.p('Hello World - Mode Show Preview');
    end if;
    end show;
    I think you need to add this:
    You can get the values of your html-form with this command:
    v_hidden_1 varchar2(256);
    v_hidden_2 varchar2(256);
    v_hidden_1 := wwpro_api_parameters.get_value('name_of_hidden_1_in_html_form','p');
    v_hidden_2 := wwpro_api_parameters.get_value('name_of_hidden_2_in_html_form','p');
    You can get the actual URL with this command:
    v_url := p_portlet_record.page_url;
    Hope that helps.
    Regards,
    Mark

  • Templates with pl/sql portlets

    We plan to have several custom pl/sql providers. What do we have to do if we want to use templates and styles with our custom portlets?

    Nilay,
    PL/SQL portlets can (and should) utilize the wwui_api_portlet user interface portlet API package to render the portlet content. For additional font classes (not availble through the API) you can simply generate the appropriate HTML output using PL/SQL Web Toolkit (htp.p).

  • Keeping pl/sql portlets state...

    Hi!
    I'll keep this as short as possible :)
    On my Portal I have one pl/sql menu/navigation-portlet and one or more java portlets.
    The menu portlet expands end extracts depending on where you click.
    The menu knows its own state (the way it is extracted) by posting parameters (id's) whenever it's clicked on.
    Url example:
    http://host/portal/page?_pageid=35,66260&_dad=portal&_schema=PORTAL&menu.id=111&menu.p_id=222
    By getting the parameters above the menu can restore/reload its own state.
    Now to my problem:
    When the user navigates to a page where I have a java portlet, the menu is extracted a certain way.
    My javaportlet has navigation on itself.
    When the user navigates by clicking a link on the java portlet the menuparameters are lost because the javaportlet can't see them, thereby the menus state is lost and "closed".
    I find it very awkward/clumsy to put "menulogic" on all portlets in order to be able to keep the state of the menu.
    The menuparameters must always be present somehow so that the menu knows how to restore its state!!!
    Public parameters perhaps? (how do I make the parameters public for a pl/sql portlet?)
    Any hints on how to solve this?

    You would need to generate MobileXML from the portlet if it has to work with mobile devices. There is no automatic conversion from a regular portlet to a mobile portlet simply because the layout issues are vastly different on each mobile browser. However, you would only need to specify content in MobileXML once and this should work with most mobile browsers including WAP/WML, CHTML, TinyHTML etc. and cover most devices including PocketPC, Palm, Symbian etc. For the exact details of mobile-enabling a portlet, please refer to the Portal documentation. For advanced details on writing content for a mobile portlet, please see the wireless developer's guide.
    Regards,
    Deepak

  • Problem with public pages having PL/SQL portlets

    I am having problem with a public page which has PL/SQL portlets.
    When I try to access that page without doing login, it displays everything but the portlets which are database driven.
    Is this the way this public page should behave?
    Is there anyway by which I can display data to my public pages from PL/SQL portlets without doing login?
    FYI PL/SQL portlets are in portal30 schema.

    Yes, it has is_runnable function and it looks like this :
    function is_runnable
    p_provider_id in integer
    ,p_reference_path in varchar2
    return boolean
    is
    begin
    If p_reference_path is null the caller may be the provider
    framework (i.e. the Refresh operation of the Portlet
    Repository).
    if (p_reference_path is null) then
    The following if statement is the security mechanism that
    the portlet implements. It does not have any other semantic
    meaning. Any portlet is expected to implement their own
    security mechanism.
    This security mechanism checks if the current user is logged
    on or just accessing the portal through the public account.
    if (wwctx_api.is_logged_on) then
    return true;
    else
    return false;
    end if;
    else
    If p_reference_path is not null the caller makes this call as
    a security check against the portlet instance.
    The security mechanism implemented by this portlet for portlet
    instances is null so true is returned. Returning this value
    indicates that all users have access to this portlet instance.
    return true;
    end if;
    end is_runnable;
    +++++++++++++++++++++++++++++++++++++++++++
    What should I need to change with that function? And what exactly is its use?
    FYI : The code which I wrote for my portlet is by doing some modification in downloaded service portlet. But I have not altered is_runaable function.

  • PL/SQL Portlets accessed through WAP

    Hi,
    we have developed some PL/SQL portlets (using portal 10g version 9.0.4.0.99) which needs to be accessed in a WAP enabled mobile. need some documents or references for the same.
    Thanks
    Ramya

    You would need to generate MobileXML from the portlet if it has to work with mobile devices. There is no automatic conversion from a regular portlet to a mobile portlet simply because the layout issues are vastly different on each mobile browser. However, you would only need to specify content in MobileXML once and this should work with most mobile browsers including WAP/WML, CHTML, TinyHTML etc. and cover most devices including PocketPC, Palm, Symbian etc. For the exact details of mobile-enabling a portlet, please refer to the Portal documentation. For advanced details on writing content for a mobile portlet, please see the wireless developer's guide.
    Regards,
    Deepak

  • ESI with pl/sql portlets

    Is it possible to use ESI within pl/sql portlets?
    The idea being to only re-execute the query and redraw the resulting HTML rather than re-load the whole portlet.
    Any ideas ?

    Not sure. I'll look into it. In the meantime, you may get a faster response if you repost your question to the Portal Caching forum. A lot more Portal expertise there.

  • PL/SQL portlet not showing up in portlet respository for existing provider

    I hope you can spare a minute to help. I've created a new PL/SQL portlet and added it to an existing provider package. I've refreshed the portlet repository and refreshed the provider, but the new portlet still doesn't show up. The other portlets in the provider show up fine. Could web cache be the culprit? I'm using Portal R2 9.0.2.6 and PDK July 2003.
    Thank you,
    Kendra

    Thanks!
    I did what you suggested, and the page came back:
    Portlet Repository Refresh Status
    View information about the most recent Portlet Repository refresh, such as who initiated the process, when it was started, and whether it is complete or still in progress. If the refresh is complete, this page also shows when the process finished and whether it was successful. Click View Details to view a more detailed log of the refresh process.
    Started By: PORTAL
    Started On: April 08, 2002 19:13:38
    Completed On: April 08, 2002 19:13:57
    Refresh Status: Complete
    Refresh Result: Succeeded
    View Details
    Note that since I had just done a refresh, I would have expected the date to be today's, assuming that the date refers to when the refresh was done, but instead it's April 8th. Strange?
    When I clicked on the View Details link, it brought up a page:
    Monitor Log Detail Report
    Advanced
    Error: Unable to perform query (WWV-10202)
    ORA-01722: invalid number (WWV-11230)
    No row returned.
    Not too helpful an error message, huh?
    Clicking on the Advanced/Basic links produced identical results (the same exact error message).
    The Add Portlets to Region still does not show the portlet I wish to add.
    Any additional help much appreciated...
    Thanks
    Bryan

  • PL/SQL Portlet with edit defaults. HOW ???

    Hi !
    I created a pl/sql portlet that renders html. Now I want a customization option on the "Edit Defaults" page of the portlet. How do I do this ??
    In the code of the portlet I set "l_portlet.has_show_edit_defaults" to true. So the Edit Defaults page is show, but it's empty.
    On that page I want a variable where you can choose between 3 options. In the procedure where I render the html, I want to read this variable so I can render 3 different things.
    Can someone please help me ?

    I suggest you look at the database services provider in the PDK which is an example provider showing how to do the basic things within a provider/portlet - like customise and edit defaults.
    You could also generate a provider using the pl/sql generator - that will produce code that you can use as a starting point for your development.
    Basically you have to add code to the show procedure of the portlet to render a different page if the mode is 'MODE_SHOW_EDIT_DEFAULTS'. Look in the samples - it should be clear.
    Hope this helps.

  • Open a new window of the brosewr in a pl/sql portlet

    I am designing a pl/sql portlet that the inserted thing in a page of portal and that on having executed opens the page of beginning of an own application of my organization.
    I want to open this page in a new window of the mariner(browser) but that father remains the area in the page.
    Since I can do this?

    siply add some javascript code that "window.open" in your portlet.

  • SQL Portlets - Executing across db link from app server db to DataWarehouse

    Hi
    We are using Ora App Server 10.2.
    Discoverer Portlets saved on app server db, execute their SQL direct to our DataWarehouse (Oracle 9r2) and this works fine.
    However, when we use SQL portlets, the SQL has to be coded with db links from our app server db to our Datawarehouse. This is not ideal.
    Does any know how you can use SQL Portlets without using db links?
    Thanks
    Colm

    Try creating your portlets as java providers using jdbc instead of in PL/SQL.
    Cheers,
    Mick.

  • How to get the Sql inside Omni SQL portlet.

    Hi,
    We are trying to find a table/view which stores/holds the Sql and Pl/Sql code of Omni Pl/sql portlets.
    Thanks,
    Ram.

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

  • Open a Form in a popup window from a PL/SQL portlet

    Hi,
    I have a form that I want to open in a popup window from a URL in a PL/SQL portlet. What is the easiest way to do this? Are there any examples in here or on Metalink as to how to achieve this?
    Thanks,
    Steve West

    Is it a HTML page somewhere on a server with a HTML form on it? You can use javascript tags in ur link to do this maybe?
    javascript:window.open('http://<server name>/page.htm','mywindow','width=400,height=200')
    Obviously if this is a portal form you can also link directly to the show procedure no problems.

  • PL/SQL Portlet & Oracle Report 6i Server??

    Scenario:
    I have 2 portlet:
    a) PORTLET A (is a dynamic menu written in pl/sql)
    Each menu's choice run a report (via cgi) and output is HTMLCSS format.
    b) PORTLET B (written in ?????).
    Question:
    If possible to set the output of Oracle Report into PORTELT B???

    A while back all reports were just text files, what is the difference between a text report and a text file? If Oracle reports can do it go ahead. If you think it is overhead spool it from SQL*Plus, which as well as being an ad hoc query tool is actually designed as a text only report writer. If you want to you can still use a stored procedure that returns a ref cursor and just print and format the output in SQL*Plus however its wanted.
    Don't use util_file, its more code, slower, complicated, you can't just use SQL, you have to loop (though for some reason many programmers seem to see this as an advantage), it can only access the server, Its more suitable for diagnostics, tracing and logging, things the DBA would be interested in, not for the end user or external system interfaces.

  • PL/SQL portlet with images

    We use a Portal Form to load images into the database. The field in the database is a BLOB. We do not know how to display the imagefield in PL/SQL. Can anyone explain to us how we can solve this problem?
    Lene & Anniken :o)

    procedure query_row(p_empno in varchar2 default null)
    is
    l_size integer;
    l_imedia ordsys.ordimage;
    l_tmpblob blob;
    begin
    htp.init;
    select emp_image into l_imedia
    from imedia.imtest1 where
    empno = p_empno;
    if l_imedia.islocal() then
    owa_util.mime_header(l_imedia.getmimetype(),false,null);
    htp.p('Pragma : no-cache');
    htp.p('Cache-control: no-cache');
    htp.p('Expires: Thu, 01 Jan 1970 12:00:00 GMT');
    htp.p('Content-length: '||l_imedia.getcontentlength());
    owa_util.http_header_close;
    dbms_lob.createtemporary(l_tmpblob,true);
    dbms_lob.copy(l_tmpblob,l_imedia.getcontent(),l_imedia.getcontentlength(),1,1);
    wpg_docload.download_file(l_tmpblob);
    dbms_lob.freetemporary(l_tmpblob);
    else
    owa_util.mime_header('text/html',false);
    htp.p('Content-length: 0');
    owa_util.http_header_close;
    end if;
    end query_row;
    This example retrieves data from ordsys.ordimage datatype.
    But if you are storing the data in blob, alter the above code something like the following :
    wpg_docload.download_file(<blob_content>)

  • Use wwv_searchdb.search within PL/SQL portlet

    The standard search API procedure wwsbr_search.submit_search redirects to the standard Result page (or another defined). In order to find out if it is possible show the results within a portlet (like the Custom Search Portlet does) I found the procedure wwv_searchdb.search. How can I use this procedure?

    You are correct in saying that the wwsbr_search.submit_search redirects to the selected results page (as specified in the global search settings). However that results page must have a custom search portlet on it in order to actually run the search. When we redirect to the results page, the portlet on that page takes the parameters from the URL and runs the search and displays the results. Therefore the results are being displayed within the portlet on the results page.
    The wwv_searchdb.search method is the entry point to the search engine. This will execute the search determined by the parameters and return the results. However from the results, i dont think there are many public APIs for you to get the information on the results which you would need.

Maybe you are looking for

  • Please Help! My iPhone 4 won't power on!

    iPhone 4, out of warranty coverage, won't power on.     1.    It has about 60% battery before it dead, but suddenly it became black screen and not responsive (like powered off).     2.    Whatever I did, like "holding the power button and home button

  • Setting different vibrations for contacts is not working in iOS 7. Thoughts?

    Setting a different vibration alert for a variety of contacts "appears" to be working; the settings are accepted and visible, however, when an incoming text arrives, they all vibe the same - not differentiated. <shrug>.  Using iphone 4S / iOS7

  • Multipage PDF with SWF files

    I'm creatinging a multipage PDF document that has mulitple swf files embedded in it.  For example on Page 1 I'm showing a DataGrid and the user has the option to change the datagrid to a columnchart, with the same type of stuff on page 2.  When you g

  • How do I back up the Mac Pro with Target Disk Mode?

    My Mac Pro's partition has become corrupt, and will not boot. After trying to resolve the issue, it would seem the only solution is to reformat the computer, and start again. Nonetheless, I would still like to back it up. I have a MacBook Pro, a fire

  • ITunes username chg (new e-mail), can't play purchases under prev. username

    I recently had to change my account information to a new e-mail address which, of course, had the effect of changing my login username. The unexpected and disturbing side effect of this change is that now, purchases made using my previous username ar