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..

Similar Messages

  • Hide/show portlet dynamically at runtime

    Hi All,
    I am working on WL 8.1
    I have been trying to hide a portlet at runtime using
    portletBackingContext.setVisible(false);
    in preRender() method. But still that portlet is visible.
    I tried backingContext.setupStateChangeEvent(WindowCapabilities.DELETE.getName());
    in init() method. It is also not working that means that portlet is not getting deleted in display.
    I can hide page using
    pageBackingContext.setVisible(false); but cant hide portlet.
    Any one can help me on this.
    Thanks in advance.

    Hi All,
    The problem is solved. The method setVisible(false) is working fine.
    I never tried to returning false from the method preRender() before. Now i tried as a try, its working fine.
    When you want to hide a portlet then return false and you want to show return true.
    Thanks,

  • Hide and show portlets

    Hello all,
    I have created two forms and two reports and added them in a page as 4 portlets like this...
    FORM1                    REPORT1             
    FORM2(Hidden)        REPORT2(Hidden) 
    ---------------------------------------------------------By default Form2 and Report2 are hidden..
    If I click the link on Report1...
    Form2 and Report2 should be visible....
    How can i acheive this..
    I hope someone suggest me a good solution..
    Thanks a lot in advance..
    Regards,
    Paappu.

    I do not think it is advisable to use page properties to hide and show portlets on them on user interaction. This assumes that we can do it by changing the display properties of those portlets on Page.
    The reason is this: If I am a user of your portal and visited one such page, I would see Form1 and Report1 on the page.
    Let us say, I clicked on some link you are planning, and then I started seeing Form2 and Report2 on that same page.
    However at the same time, you also visited on the same page right after I had clicked on that link. Then you will also see Form2 and Report2. And so the state of the page will be changed for all users after the first user's action.
    Is it actually what you would intend to do? that different users will see different pages based on who has visited the page before them?
    that is why I would not recommend it. Hope that helps.
    AMN

  • Hide and show portlet dynamically

    i have two pages each page contains one one portlets. in this scenario i can hide/show
    the respective pages.
    Is there any other ways to hide/show porltets dynamically from portal.
    thanks in advance.
    shashi

    put a backing file on the portlet and from the backing file (probably pre render
    method)
    set the visibile to false
    PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(request);
    portletBackingContext.setVisible(false);
    If that doesn't work for some reason you can set the state to "delete" wil need
    to do this from
    the init method on the backing file
    PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(request);
    portletBackingContext.setupStateChangeEvent(WindowCapabilities.DELETE.getName());
    You can also use entitlements if this is a security thing.
    "shashishekar" <[email protected]> wrote:
    >
    i have two pages each page contains one one portlets. in this scenario
    i can hide/show
    the respective pages.
    Is there any other ways to hide/show porltets dynamically from portal.
    thanks in advance.
    shashi

  • Hide / show grid in a graph programmaticly

    I would like to hide / show the grid (minor / major) progammaticly. I try to create a property node, but I don't find the way to access the 'hide' property... Thanks.

    I might need corrected, but I don't believe you can change the 'minor' grid color, but yes on the 'major'.
    Its a Write-to property node called Grid colors, and you can have the X & Y grids as separate or Clustered together elements. You'll need to add 2 color boxes [Controls > Numeric palette] to your front panel (X & Y). The user's selection is a numeric value sent to the property node(s) you wired.
    Good Luck with it, Doug

  • Hide Show, Programmatically in Seeded page.

    Hi All,
    I have to add one hide show region in a standard page advance table region. The following are the steps i followed.
    Created one custom region for the detail Region.
    Created the custom VO for detail region.
    Created a vie link between the seeded VO and custom VO
    Imported this custom region
    Extended and substituted the base page VO to add one more column for the hide/show.
    Extending the controller i applied the detail Region to the base page Table using setDetail method.
    When i run the page, Its showing the hide/show column and also the detail region - but its throwing the error View object not found ( Custom VO for custom detail region) and showing no search conducted in detail table. Since the Application module of the page is Root Application Module, i cant extend it. So i cant substitute the AM.
    Is the approach i am trying to follow is correct?? Any help/suggestion will be highly appreciated.
    Regards,
    Ram

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

  • Can we Hide/Show the Mouse with an Action or a Script?

    Hello All,
    I am developing a simulation using click boxes in Captivate 4, on Windows XP. If the user doesn't click the right place, the slide continues, and shows the user what to do. If the user clicks the correct place, the simulation goes to the next slide directly. The problem is, successful or not, when the user goes to the next slide, the recorded mouse pointer displays on the slide. If I hide the mouse, then it remains hidden even if the user clicks outside the box too many times and the simulation continues, to show the user what to do. It's as if things on the screen just select or click themselves.
    I know mouse visibility is treated differently in the timeline than other objects. That's not a particularly big deal, so long as there is some way to control the mouse visibility for simulations (one of Captivate's big selling points). Is there a way to control the mouse visibility with an Action or with Script?
    The current settings for my click boxes are:
    I tried to assign an Action (multiple actions, really) to hide, show, enable, or disable the mouse but the mouse doesn't seem to be available to do so!
    Am I missing something?
    Thanks,
    ~jeff

    Hi there
    Nope, the mouse is an all or nothing object. It's either visible or not and it's your choice as to what you show. No way I'm aware of to programmatically display it. All I might suggest is that if you want to show the user the mouse moving, duplicate the slide so that if they fail to click the right area, the duplicated slide has the mouse moving to demonstrate.
    Oh, and consider submitting a Wish Form to ask for the capability in some future version of Captivate.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to hide a portlet

    is it possible to show/hide a portlet from another portlet.If it is possible how
    can it be achived..

    yeah, also look at post 4604
    In the first portlets backing file (probably the preRender method)
    PageBackingContext pageBackingContext = PageBackingContext.getPageBackingContext(request);
    List childWindows = pageBackingContext.getWindowBackingContexts();
    for (int i = 0; i < childWindows.size(); i++)
    WindowBackingContext windowBackingContext = (WindowBackingContext)childWindows.get(i);
    if (windowBackingContext instanceof PortletBackingContext)
    String instanceLabel = windowBackingContext.getLabel();
    if ("MyOtherPortletsInstanceLabel".equals(instanceLabel))
    windowBackingContext.setVisible(false);
    "mahesh" <[email protected]> wrote:
    >
    is it possible to show/hide a portlet from another portlet.If it is possible
    how
    can it be achived..

  • 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

  • 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

  • Problem in Hide/Show in a Table Row

    Hi,
    i have to create 4 pages and each page has a table region with displaying records and a column "LINK" to go to the next page with the parameters from that record. Every link has a batchId and one another Id as parameter to next page. The next page reads the parameters and queries the corresponding table for details of that results table region contained in that page.
    Thus i have 4 pages with 4 table regions and each table region is associated with a view object which is based on an EO connected with a database table. (4 VO's).
    Now in every table i have a detail region (hide/show) which shows error records for a row ....
    thus there are 4 ViewLinks for all 4 VO to a single ERROR VO.
    I have 4 instances of ERRORVO in AM like ERRORVO1, ERRORVO2, ERRORVO3, ERRORVO4.
    Now, the hide/show region is working properly on the first 3 pages with proper navigation to pages.
    Then, i created the 4th page and created the table region in the 4th page.
    From the 3rd page i have passed 2 parameters through the link and also retainAM=Y.
    i have captured both parametres and call a method to populate data in table of 4th page.
    Successfully done..running properly....
    Now i added the detail region which is a table as previous pages in the 4th page with ERRORVO4...
    Then when i run the page i get the 1st page and thrugh link i move to 2nd and to 3rd page. But when i click on the link on 3rd page to move to 4th page i m getting "NullPointerException" with "check Inner table properties"
    Now i removed the detail region (Hide/show) only from the 4th page and again run the page . its working properly for all 4 pages with proper navigation but i am not able to see errors with hide/show on 4th page and it is required.
    i m not getting what could be the reason...
    do i need to remove retainAM=Y from the page navigation links.?????
    and is there anything like we cant create more no. of instances (4) of a single VO in an AM.....????
    Any alternative for showing the errors on 4th page with Hide/Show or without Hide/Show????

    Thiago,
    Thanks for the quick reply.
    I am now getting the following error below:
    Am I suppose to add another field to my VO select?
    oracle.apps.fnd.framework.OAException: Detail View Attribute Name is not set for the table even though a detail named child has been specified. Please specify a Boolean or String ("Y" or "N") view attribute for this table property.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1146)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1794)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • How to hide/show and move screenelements at runtime

    Hi Guys
        Currently, i have a requirment that, in the same screen, when user choose different different option in the dropdown list, there should be different screenelements and table control with different columns showing below it.
    Now, i have two plans below:
    1), hide/show and move position of screen elements and table control at runtime
    2), call different subscreen
    I hope i can take the first way since the second way will modify structure of program ( As it is infotype screen ), any one knows how to implement the first solution?

    Hi,
    I would suggest you to call different subscreens and load them dynamically based on your parameters.Since different subscreen are called your coding and functionality could also be seperated by writing in the PAI and PBO of the correspondiong Screens.
    if you have decided to go by your first method then try the below code.
    a) if it is normal UI elements like text box etc
    LOOP AT SCREEN.
        IF <var> = ' value '.
            screen-invisible = '0'.
            MODIFY SCREEN.
      endif
    ENDLOOP.
    Here <var> refers to the screen field name and value refers to its value.
    b) To hide columns in a Table control.
    DATA cols LIKE LINE OF tc-cols.
      LOOP AT tc-cols INTO cols.
        IF cols-screen-group1 = 'G1'.
          cols-invisible = 'X'. "HIDE THIS COLUMN
          MODIFY tc-cols
          FROM cols
          TRANSPORTING invisible.
        ENDIF.
        CLEAR cols.
      ENDLOOP.
    PS: here TC refers to the name of the table control.
    Lemme know if you face any problems.
    Cheers,
    RK

  • SharePoint 2013: Hide/Show Column fields while uploading document in Document Library

    Dear all,
    I have created a document Library LIB001 and I have created One Column of type Choice, drop down list, (CCHOICE) and I have created 3 other columns, (Column1, Column2, Column3).
    What I want is while uploading a file in the document library, when I choose a certain value from CCHOICE, i want to show/hide and/or make the column mandatory.
    Can anyone help/guide me how to achieve this?
    Many Thanks
    Vinay

    Dear all, I am trying the following code, but it's not entering the onchange of drop down list event. <script> $(document).ready(function () { var countryField = SPUtility.GetSPField('Document Type'); var countryFieldValue = countryField.GetValue(); alert
    (countryFieldValue); // ----- Hide/Show the field based on new selected value. var id = SPUtility.GetSPField('Document Type').Dropdown.id; alert ('field ID: '+id); $('#' + id).on('change', function () { alert ('Inside on Change:'+countryFieldValue); if (countryFieldValue
    == 'Type1') { SPUtility.GetSPField('Column1').Hide(); } else if (countryFieldValue == 'Type2') { SPUtility.GetSPField('Column2').Hide(); } }); }); </script> Can anyone help me please. Many Thanks & Regards Vinay

  • Error while trying to search in advanced table with hide/show region

    Hi
    I have search region and a results table with a hide.show in it.I did a search initially and got the results.I clicked on the hide/show region to see the details.
    I put another search criteria in the search region and tried to do a search.
    I am getting the following error
    The search cannot be executed because the table has pending changes that would be lost...
    Can anybody help me on this please....
    Message was edited by:
    user580745

    Any setter/getter method being used on hide/show action? How are you enabling the details? Is there a transient column in your VO?
    --Shiv                                                                                                                                                                                                                                                                                       

  • Adding logic to the hide/show

    Hi Guys
    I am pretty new at this so please excuse my ignorance. I have added hide/show regions into a cell of an advanced table. In the VO I also coded in the boolean decode.
    So now when I run my page I get the the following: where there is details for the cell the cell is in Hide status, when the details are null its in show status.
    The decode is as follows: decode(contact_details.contact_name,Null,'0','1'). The attribute is set to Boolean.
    My issue is when I click on the hide/show link on the page it does not "work". ie: if I click on the show status it does not toggle to hide status and visa versa.
    Am I meant to add logic to the controller?
    Thanks

    Is your page embedded in a workflow page or notification? If so, then you cann't have hide/show action rather any action on your page as per workflow standards. They require you to embed a region and not a page.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when d

  • Can I transfer songs etc from ipod to itunes library?

    Can I transfer songs etc from ipod to itunes library?

  • My final cut project reverted to an earlier version

    I made a lot of changes to my final cut project today and saved the changes frequently. I just came back to my computer, opened my project and it looked like I never sat down at my computer today! I am positive I saved my changes, but the project wen

  • AUC Legacy upload

    Hi Gurus, While uploading legacy data (AS91) into AUC Asset Class, SAP doesn't have 'transaction description of the line items.  As one AUC master may have no. of line items while settling line items, we must know the nature of transaction. Can any o

  • ERP part lean WM?

    hello, we are not using currently Lean WM as this is managed outside of SAP. But to use small part of this functionality like picking and packing and handling untit as well as Two step picking can we create a dummy warehouse to use this functionality