Delete portlet programmatically!!!!!!!!

Hello
I have to made a procedure to delete a portlet programmatically
from a page, I haven't found an api to do that.
Does anybody know if there is an api to delete a portlet from a
page using PL/SQL?
Please help me
Thanks in advanced
Ana Maria

Hi Ana,
last time I checked with Oracle about two months ago, they said
you can not add and remove portlets to the page programmatically.
I still believe there is a way to do it. If you look at edit page
where you can Hide/Delete portlets, Oracle is using JavaScript to
move protlets. I spent a lot of time to get it done but wasn't
successful. Instead I decided to manipulate contents of portlets,
which makes them look like different ones. And, with your
help, pointing to several different pages if I have to.
Let me know if you finally manage to hide and display portlets
using pl/sql api.
yuri

Similar Messages

  • Existing content area as a portlet programmatically?

    Does anyone know how to expose existing content area as a portlet programmatically?
    I have to write a script that would need to create and "expose" existing content areas as portlets.
    Thanks in advance,
    Alex.

    Did you try refreshing your portlet repository? What release of Portal are you currently using? Which version of the PDK? On which platform?
    Thanks,
    Harry
    testing ignore below!
    http://portalstudio.oracle.com

  • Hide show portlets programmatically

    Hi,
    i have to show/hide one portlet programmatically, how can i achieve this.
    for example if session user data is null the portlet will be shown else hidden.
    Please help.

    Urgent Issue... ..
    Any help Please..

  • How to Deploying a PDK Portlet programmatically?

    I have a portlet that I built using PDK. Now I want to deploy it programmatically. I don't want to use the Jdeveloper wizard or the GUI for Application Server. Is there any way we can deploy the portlet programmatically? any help is really appreciated.

    dcmctl command is normally used to deploy a ear/war file dynamically. As far as registration of providers API's are available for PLSQL i.e. database provider registation(not attempted same for JPDK portlets).

  • Creating portlet programmatically

    Hi dev2dev
    I want to create portlet programmatically
    if there is any hints or package related pls do mail me
    Thanks n Regards
    Surya
    [email protected]

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • Implementing delete functionality programmatically

    Hi All,
    I am trying to implement delete functionality programmatically.
    Below is my code:
    OAImageBean dots2 = (OAImageBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.IMAGE_BEAN, null,"dotsImage2");
    dots2.setID("dotsImage2");
    dots2.setSource(OAWebBeanConstants.APPS_MEDIA_DIRECTORY + "deleteicon_enabled.gif");
    dots2.setShortDesc("delete");
    dots2.setHeight("20");
    dots2.setWidth("20");
    deleteColumn.addIndexedChild(dots2);
    deleteColumn.setRendered(Boolean.TRUE);
    tableBean.addIndexedChild(deleteColumn);
    Hashtable params = new Hashtable(1);
    params.put("param1", "compElementId");
    Hashtable paramsWithBinds = new Hashtable(1);
    dots2.setFireActionForSubmit("xxdelete",params, paramsWithBinds,false, false);
    Tried to put the parameter programmatically.event getting fired. but iam getting null if i use below line
    paramsWithBinds.put ("param1",new OADataBoundValueFireActionURL(dots2,"${oa.encrypt.CompElementsEOVO.CompetenceElementId}"));
    getting error like
    Definition CompetenceElementId of type Attribute not found in CompElementsVO
    if i use below line
    paramsWithBinds.put ("param1",new OADataBoundValueViewObject(dots2, "CompetenceElementId", "CompElementsVO", true, true));
    but the CompetenceElementId attribute is there in VO.
    pls help.
    Thanks,
    Raghava.

    Hi Gyan,
    Thanks for reply..
    Yes VO attached is CompElementsEOVO but the View Instance name is CompElementsVO.
    We r working on standard page and we r not recommended to change the standard page. so creating the image bean programmatically for implementing delete functionality.
    Even i tried CompElementsEOVO as View Instance. But im getting error as View Instance not found in the AM.
    Thanks,
    Raghav.

  • How add a portlet programmatically in a page ?

    Hello,
    Are there any way to add a portlet in a page programmatically?
    Thanks.

    I'm no Oracle Developer. I'm trying to do the same thing.

  • Prevent user from deleting portlet

    Hi All,
    I designed my page and i want to give the ability to user to customize the portlet but not to delete any portlet ...
    Is this available or not?
    for a life example check www.msn.com
    thnaks

    ahmed,
    Currently, customizing a region is not possible. You can put
    all portlets that you don't want a user(s) to customize on one tab and then set access rights. Course, if you had custom portlets, then you could control whether the link was displayed or not depending on acl.
    hth
    ps: Hope u recvd the code that you requested

  • Minimizing portlets programmatically

    We have version 5 of the portal and we won't be upgrading to G6 until later this year so we can't yet make use of the CSS methods to hide a portlet, so we are looking at other methods to best hide a portlet when back end data is in particular states.
    Is it possible to programmatically minimize a portlet from a remote web service?
    We want to default a portlet to be minimized when back end data is in a particular state (e.g. there are no items remaining for you to purchase).
    Daryl

    We have version 5 of the portal and we won't be upgrading to G6 until later this year so we can't yet make use of the CSS methods to hide a portlet, so we are looking at other methods to best hide a portlet when back end data is in particular states.
    Is it possible to programmatically minimize a portlet from a remote web service?
    We want to default a portlet to be minimized when back end data is in a particular state (e.g. there are no items remaining for you to purchase).
    Daryl

  • Replacing library with template deletes portlet preferences

    Hi,
    If I have to deploy a new version of our portal, with changes to the
    .portal file I have to make a dummy desktop from the .portal file, and
    then say yes to replace library with template. If I do this however all
    my portlet preferences are resat to their default values. Are there
    anyway to avoid this, or another way to get the library updated with the
    newest version, without having to make a dummy desktop.
    /Steen

    Hi,
    If I have to deploy a new version of our portal, with changes to the
    .portal file I have to make a dummy desktop from the .portal file, and
    then say yes to replace library with template. If I do this however all
    my portlet preferences are resat to their default values. Are there
    anyway to avoid this, or another way to get the library updated with the
    newest version, without having to make a dummy desktop.
    /Steen

  • How to hide/show book, page, portlet programmatically

    Hello,
    The situation is I have few books and have pages within the books. In page, I have few portlets. The problem I try to solve is when user login, based on user role, I selectively show the books, pages and portlets.
    Can anyone give guideline on this ?
    Thanks in advance,
    Li

    "Chris Xu" <[email protected]> wrote in message
    news:8877896.1094662465884.JavaMail.root@jserv5...
    The situation is I have few books and have pages within the books. Inpage,
    I have few portlets. The problem I try to solve is when user login, basedon
    user role, I selectively show the books, pages and portlets.
    Can anyone give guideline on this ?Use entitlements for this, see
    http://e-docs.bea.com/wlp/docs81/adminportal/help/VE_OV.html
    Gerald

  • Frustrated Deleting application and Portlets

    I get the following error when I attempt to delete an application "
    Error: Internal error (WWC-00006)
    An error was encountered while deleting the page group. The page group has been deleted but you should check the logs for further information. (WWS-32021)
    An Unhandled Exception has occurred. (WWS-30526)
    ORA-2292: ORA-02292: integrity constraint (PORTAL.WWPOB_REGI_CONTAINS_REGI_FK) violated - child record found
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWPOB_API_REGION", line 1084
    ORA-02292: integrity constraint (PORTAL.WWPOB_REGI_CONTAINS_REGI_FK) violated - child record found (WWC-36000)
    Error while deleting page. (WWC-44130)
    An unexpected error occurred: ORA-02292: integrity constraint (PORTAL.WWPOB_REGI_CONTAINS_REGI_FK) violated - child record found (WWC-44088)"
    And the following error when I attempt to delete some portlets in the same application "Error: Internal error (WWC-00006)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)"
    Here is the scenario which I think caused a problem. I have a version from my portal application MyApp, and another developer was sending me his version of MyApp, so I renamed my application to myAppCopy, and imported and his application myApp. But when i tried to delete myAppCopy i got the errors above, i tried deleting all the pages manually, till I reach a page which I couldnt delete, I tried to manually delete portlets inside the page that is causing the problem but i keep getting the above error.
    I tried delete myApp and rename myAppCopy to my myApp and then deleting it, also no results. Also when I try to delete myApp which i have imported i keep getting error, but the application gets removed eventually, but as for myAppCopy i couldnt delete it all.
    I think there is a conflict between both applications.
    Please Advice.

    Hi,
    Obvisiously there will be some conflits in your server.
    One important thing is you cannot have 2 different versions of portal page groups or portlets in the same server.
    You have to do import / export with in same version of portals. I guess you have to apply some patch on the server. Please check with the http://metalink.oracle.com
    Regards,
    Vijay.B
    Message was edited by:
    Vijay.B

  • Problem changing portlet state and mode programmatically

    I am trying to change state/mode of a portlet programmatically in backing file.
    My request is, when a portlet is changed to EDIT, I want it be maximized. Based on that, I put logic in handlePostbackData() like this,
    if (PortletBackingContext.getWindowMode().
    equalsIgnoreCase("EDIT")) {
    // change to EDIT mode
    PortletBackingContext.setupStateChangeEvent(
    WindowCapabilities.MAXIMIZED.getName());
    } else {
    PortletBackingContext.setupStateChangeEvent(
    WindowCapabilities.NORMAL.getName());
    However, I found during handlePostbackData() phase, the mode I retrieved by PortletBackingContext.getWindowMode() was the one before the clicking.
    Say for view mode, I click the EDIT button and I expect in the handlePostbackBack() phase, I could get "edit" returned by PortletBackingContext.getWindowMode(). But actually it returned "VIEW".
    The mode keeps in the previous mode till it enters the preRender() phase. But as API, setStateChangeEvent() should be used in handlePostbackData() ONLY.
    Any suggestions?

    you should be able to do this through declerative IPC
    of course you can do this via the IDE but you can also add it to the .portlet file. Something like this...
    <netuix:handleEvent event="onEdit"
    fromSelfInstanceOnly="true"
    eventLabel="handleOnEditGeneric_el">
    <netuix:changeWindowState newState="maximized"/>
    </netuix:handleEvent>
    Chris Jolley
    Portal Architect

  • Programmatically Add/Delete slider

    Hello,
    I'm using System Horizontal Pointer slide.
    And I want to add slider programmatically. I know how to add this manuel but I want to add/delete sliders programmatically.
    Could you please help me ?
    Yasemin Barutçu
    Electrical And Electronics Engineer
    Solved!
    Go to Solution.

    Why not simply use the property node "Visible".  Set it to TRUE to see it and FALSE to hide it.
    That way, you do not need to delete the object from the front panel.
    Although not usually recommended, you can superimpose objects on the front panel so that it appears as if you replaced it with another one.  Simply set the "Visible" property accordingly for both objects.

  • Programmatically Registering a JSP/Servlet Portlet

    ???Programmatically Registering a JSP/Servlet Portlet???
    OK, I have read all the literature on how to register a JSP/Servlet Portlet and have not seen any info on how to register a JSP/Servlet Portlet programmatically.
    I know for sure that you can register a PL/SQL Portlet programmatically via a couple of SQL and PL/SQL scripts that were given in the PL/SQL PDK examples.
    Bottom line, I want a way to register a new JSP/Servlet Portlet with ZERO GUI/User interface.
    My questions are:
    Is it possible to register a JSP/Servlet Portlet programmatically?????
    If it is possible to register a JSP/Servlet Portlet programmatically, were is the info on it or can you give me some examples of it????
    THANKS MUCH!!!
    null

    For a faster response, you may want to ask this question on the Portal Developer's Kit (PDK) Forum.

Maybe you are looking for

  • ITunes account balance $25 with iTunes card but won't let me use it...

    Ok I got 25 bucks in my iTunes account, but when I try to download somthing with my phone it tries to charge it to my debit card which has nothing on it. How can I resolve this problem???

  • Copy Paste Attributes

    First off - I will admit I am a FCP editor who is figuring out Motion in fits and starts. Basically what I am building is a bullet point graphic of 5 list items where it starts with all 5 visible, fully opaque, and after a couple seconds, 4 lines dim

  • XSJOB won't activate, invalid file content

    Hi experts, I'm trying to get a simple XSJOB working, but HANA Studio repeatedly tells me "Invalid file content" when I want to activate the following:     "description": "Queue worker job",     "action": "mypack:myfile.xsjs::myFunct",     "schedules

  • [svn:osmf:] 10137: Dynamic streaming unit tests now pass.

    Revision: 10137 Author:   [email protected] Date:     2009-09-10 16:01:37 -0700 (Thu, 10 Sep 2009) Log Message: Dynamic streaming unit tests now pass. Modified Paths:     osmf/trunk/framework/MediaFramework/org/openvideoplayer/net/dynamicstreaming/Ne

  • Removing the border around buttons in a CS Extension

    Hi, I'm creating a new extension for Creative Suite, and all  the buttons I have in the extension are using icons, but there is always a border around the button, which I cannot remove. I have tried changing the borderColor to match the background co