Dynamically suppress portlet

I'm trying to figure out if I can put logic in the portlet JSP code to dynamically
display the portlet or not.
I have a bean that goes to the database and checks for data, if found I want
to display the portlet, if not I don't want the portlet to show up at all.
I'm using the basic portal setup, no Content Management or Webflow.
Thanks in advance,
Tony

HI Tony
Once a portal is meant for renderring all of its portlets, then each
portlets targetted JSP page will be processed for display, during that run-time
you can decide the content of a portlet-JSP page but not the portlet itself. A
portlet holds nothing but a JSP page at any one point of time. So within that
JSP page you can hide or display certain parts of the JSP content based on your
given conditions. Entire Portlet display/Hide policy will be decided by the Portal
framework, If you want to achieve that you should go for Group Portals.
regards
Sasikanth
"Tony Wiegand" <[email protected]> wrote:
>
>
>
I'm trying to figure out if I can put logic in the portlet JSP code
to dynamically
display the portlet or not.
I have a bean that goes to the database and checks for data, if found
I want
to display the portlet, if not I don't want the portlet to show up at
all.
I'm using the basic portal setup, no Content Management or Webflow.
Thanks in advance,
Tony

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

  • 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

  • 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?

  • Dynamic Suppression

    I love the iPod; I love iTunes, etc......but when I'm listening in the car using an iTrip, the ambient noise in the car makes the soft passages too quiet. Of course, turning up the volume just makes the loud passages too loud. This is especially troublesome with classical music. Does anyone make an app or plu-in that lets the user impose dynamic suppression on an entire library, and toggle it on an off? Or, is there a way to do this from within iTunes?
    15" PowerBook   Mac OS X (10.4.4)  

    New iTunes releases have solved this problem

  • 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

  • Nested Portlets and ability to dynamically render Portlets

    hi,
    I have a dynamic page created to show a set of product items. This is then rendered as a Portlets- each a specific instance (parameter) of the dynamic page.
    If the User decides to look at a different set of "groups"/portlets, I would like to call an API which renders as many portlets as the number of groups User wishes to see.
    I am basically looking for a way to spawn certain number of portlets on a page, and supply a parameter to each of them while doing it.
    So, every user would have his/her set of Portlets chosen.
    Keep in mind that all these portlets are the same, but different parameters.
    Is there an API to call/render portlets on a page.
    regards
    -Ananth

    Ananth did you find this
    How to call a portlet on the page

  • Dynamic creating portlet

    Hi,
    Is it possible to create portlets dynamically?
    For example, I click a button in a1 portlet, and
    after IPs and PCs processing, show the results in a2 and
    a3 portlets that these portlets did not visible orignally.
    Thanks.

    It's been that way since the first version of the portal. Annoying that you can't change the style of that table, isn't it? :-)
    In a dynamic page, to show the data from a select statement however you want, you can do that with PL/SQL using a cursor for the sql query and looping through and printing the results of the select statement.
    If you just need to return the date-time and the user that is currently logged in, you can do something like the following:
    <ORACLE>
    DECLARE
    v_date DATE;
    v_user VARCHAR2(100);
    BEGIN
    v_date := SYSDATE;
    v_user := portal.wwctx_api.get_user;
    htp.p(TO_CHAR(v_date,'Dy DD-Mon-YYYY HH24:MI:SS'));
    htp.br;
    htp.p(v_user);
    END;
    </ORACLE>

  • 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

  • Repost: suppressing portlet header

    All,
    Since my first post, I have learnt that the header (or has_title_region) can be suppressed by setting this in the provider.
    I would like the portlet to have a header when say the user is not logged in and not have a header when the user is logged in.
    Any tips
    Sanjay

    Sanjay,
    You can control this in the show procedure of your portlet.
    Add a call to check whether the user is logged in (if (wwctx_api.is_logged_on) then ... ) before calling the wwui_api_portlet.draw_portlet_header API.
    The typical template portlet that PDK provides (the STARTER sample) has a piece of code you need to modify in the show procedure. Added that for your convenience.
    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;
    -------

  • Dynamically suppress the page footer

    hi, I have to design a report in which the page footer could dynamically be suppressed so that the main content could reach the bottom of the page.
    I noticed that if I suppress the page footer  by desygn the "flow" of page content stretches up to the buttom of the page but if I suppress it by code in the formula editor the page content doesn't arrive at the button margin and stops where the page footer would have begun if I hadn't suppressd it.
    is there a way to dinamically suppress the page footer so that the "flow" of page content could stretch up to the bottom?
    thank you in advance.

    Yes it is possible
    Code it.
    Place the following code to your Crystal Report Designer. Use the same code for your page footer.
    '--for Header--
    Private Sub rptPageHeader_Format(ByVal pFormattingInfo As Object)
    If PageNum.Value = 1 Then
    rptPageHeader.Suppress = True
    Else
    rptPageHeader.Suppress = False
    End If
    End Sub
    Where Pagenum is the object that tracks the current apge number.
    Insert the "page number" field from the special field to your report.
    OR
    Right-click on the Footer Section, choose Format Section. click the button beside the Suppress (No Drill-Down) under Common Tab and place this code...
    if pagenumber=TotalPageCount then true
    else false
    OR
    [http://www.crystalkeen.com/articles/crystalreports/pagefooter.htm]
    All the best,
    Praveen

  • How to form a URL dynamically in my portlet

    hi all,
    i have a requirement in weblogic portal 10.2,how do i form my URL dyncamically in my portlet which is as below
    I have a requirement to dynamically form my URL. Further suppose I have a left navigation portlet which has 3 links and right navigation portlet should show the content for the respective links clicked on left navigation portlet.so in this scenario I need to dynamically create my url which I need to display on the right hand side portlet
    Dynamic access to portlet B
    Portlet A ------------------------------------------> Portlet B
    The Url which has to be displayed on portlet B has to created dynamically in my portlet A,
    i.e portlet A should dynamically access portlet B and the page of Portlet B which has to be displayed and create the URL,Once the URL is formed I should be able to access portlet B,
    Portlet A ---> access Portlet B context ---> get portlet B context ----> get Portlet B output jsp page and hence form the url
    Portlet A = (Portlet B context) + (get Portlet B output jsp page)
    = Well formed URL of output jsp page which is in the right hand portlet B
    If u have the source code pertaining to above/material.please share it with me.
    Thanks
    Deepak
    Edited by deepakl_2000 at 05/17/2008 1:20 AM

    hi [email protected]
    tell me my friend .. how can i extend
    the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
    Thanx a lot for your cooperation .
    Ali
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
    If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
    There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

  • Dynamic Portlet: Setting the database connection

    With OmniPortlet, I can set the database connection I wish to use for that instance of the portlet in the configuration, but I can't seem to find a way to accomplish this with Dynamic Page portlets. How can I configure what server/user the portlet is using?
    Thanks,
    Rick

    Damn. That is exactly what I was afraid of. We'll have dblinks all over the place!
    Is there a way to create multiple instances of the Dynamic Page Portlet that use different database providers, or is that impossible? (I'm somewhat new to Portal, so forgive me if that is an ignorant question)
    Thanks for the help!

  • Show specific portlets dynamically

    I would like to implement a page what shows a specific portlet based on a variable. So dynamically should be determined what portlet should be shown on a page.
    My intention is to create a proxy portlet what based on some logic calls the render method of some other (dynamically determined) portlet what hopefully displays the content of the specific portlet in the proxy-portlet frame. Is there anyone who has done this before or knows how to tackle this?
    I am not familiar with the render engine and do not know how to call the right functions to show content of the portlet object.
    The reason for doing this is to overcome a performance issue what occurs when you put a large number of portlets on a page and use security for showing only one of the portlets. It results in a lot of individual calls to the OID en chokes the system in our configuration.
    Any help is appreciated.
    Kind Regards, Dennis Deursen

    Hi Patrick,
    Thanks for your reply. The portlets we would like to dynamically determine and show are all page-portlets. This implies that we cannot use PL/SQL in these portlets. Maybe there is a way to use a PL/SQL portlet showing the content of a specific page, but I don't know how. Maybe that is something I can investigate. You solution is quite straightforward but sadly only applies to PL/SQL portlets.
    Another way to solve our problem is to use a PL-SQL portlet what defines an i-frame what shows the content a the page and let PL/SQL define dynamically what page to show in the i-frame. The drawback here is that you get nested pages when the page as shown in the i-frame has links. I am trying to add the tag <base target="_top"> to the header of the pages to show in the i-frame but i can't find a way how to change / add html code the the <header>-part of the pages...
    (nice puzzle). Anyhow, there must be a way to solve this on way or the other.
    Dennis Deursen

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

Maybe you are looking for

  • ADPrep Migration from Windows Server 2003 to 2012 Foundation Server fails with error 0x80004005

    Hi all, Having a problem the forums and Google have been unsuccessful in helping me with. Server is Windows 2003 R2, migrating to Windows Server 2012 foundation.  Have tried the AD Migration on the new 2012 Foundation server both as a standalone serv

  • Network crash during software update 10.6.3 and iTunes 9.1

    Last night my wife was using her MacBook and it asked to instal the software update, which she accepted. This appeared to hang for some time and in the end she shut the Mac down. Since then the MacBook will not start up and stays on Appple and spinin

  • Change in File Name of Adobe Form

    Hi Gurus,                  I have a requirement..such that i had a text field in the Form.I need to get the text field value as file name,when iam saving the adobe form...is that posssible..???

  • Items in dataGrid

    Hello EveryOne I've datagrid & it is binded to dataProvider. when it displays data. I want to count the no. of rows visible. or should I say, i would like count items in datagrid similar as we do in .NET can anyOne help me. Thanks

  • Project will not open or load properly

    So, for the past few weeks I've been putting together a wedding commemorative movie for my friend. One random day, I tried to open the project and it wouldn't completely load. There was no "scroll bar" even though the movie would play. And, I could n