Disco Portlets - Auto Resize Graphs

Is there a way to automatically resize disco portlet graphs determined by screen size?

I find this to be one of the biggest limitations of this product. The only thing close to a work around is to use panels and set the anchor to slack. This will allow some level of adjustment when the Window size changes.<BR>

Similar Messages

  • 10g Disco Portlets : Scalability across hundreds of users

    Hi,
    Looking for some insight to scaling disco portlets across hundreds of users. Using Discoverer 10g 10.1.2 and have a portal with about 25 Disco Portlets scattered across a few portal pages. (Using Oracle Portal also) Every user gets the same pages, but the content of Disco portlets is different by user.
    Most of the Disco Portlets are Worksheet Portlets showing a table + graph, the remaining disco portlets are Worksheet List portlets. Some portlets refresh hourly, and some are once a day.
    We've staggered hourly portlets at different times of the hour so they don't all refresh at say the 00 mark of each hour. Portlet A refreshes at 00 minute mark, Portlet B refreshes at the 10 minute mark, etc.
    Because each user needs to see different data, the disco portlets all use private connections vs. public connections, so each portlet graph shows different data depending on the user.
    What's happening is at the 00 minute mark, each user is having their Portlet A being refreshed. As the number of users grows, this just gets worse and worse. There seem to be refreshes happening constantly. The kicker is, these hourly refreshes happen regardless of the user looking at the portal that day or not.
    We're having challenges with scaling the portal as the number of users is growing. How did Oracle envision Disco Portlets to scale with hundreds/thousands of users? All we can do is stagger the hourly refreshes, but we can't stagger the users.
    We have Disco running on one unix server, the database on a 2'nd server, Portal on a 3'rd and Infra on a 4'th.
    Any insight into scaling Disco Portlets for the above scenario would be helpful.
    Thanks.

    Hi,
    Let me see if I can start the ball rolling for you on this one with some insight from previous implementations.
    "What's happening is at the 00 minute mark, each user is having their Portlet A being refreshed. As the number of users grows, this just gets worse and worse. There seem to be refreshes happening constantly. The kicker is, these hourly refreshes happen regardless of the user looking at the portal that day or not."
    1. The portlets will get refreshed once per main portlet and an additional refresh for each customization. This could explain why you are seeing more refreshes than you expected.
    2. The refreshes will occur per the schedule to refresh the data in cache whether or not the user is logged in.
    The way is works at very high-level is like this:
    The PortletProvider is a J2EE application running under OC4J_BI_Forms container.
    It polls PTM5_SCHEDULE table every 2 seconds or as specified by peekSleepIntervalSec parameter in the configuration.xml
    If a portlet refresh is found (ie the scheduled refresh time arrives) then the information about the refresh is added into a job queue within OC4J_BI_Forms.
    Java threads pick up jobs from the queue (parallel processing, maxsessions).
    For each job a session is picked up from the session pool, query is generated and sent to EUL/database to retrieve data.
    Next, retrieved data is processed into XML and stored in PTM5_CACHE table as BLOB.
    The PTM5_SCHEDULE table is updated with Last Refresh Date and Next Refresh Date, etc.
    The next time the relevant portlet is accessed in a browser refreshed data are read from PTM5_CACHE (and formatted per customization).
    Discoverer Portlet sessions can be pooled, enabling them to be reused by different Discoverer Portlets. Pooling Discoverer Portlet sessions saves CPU and memory resource usage.
    You can see how to control these parameters via the Application Server Control or $OH/discoverer/configuration.xml file in the documentation here:
    http://download.oracle.com/docs/html/B13918_03/con_files.htm#sthref1195
    Now having said that, there have been a few bugs in the Portlet provider regarding how the session pool behaves and one that does not kill existing dis51ws processes.(bug 4929480)
    I also seem to recall from past a bug about hourly refreshes specifically.
    (bug 4929480) is documented in
    Note 436135.1     Discoverer 10g (10.1.2) Sessions (dis51ws) Are Not Terminated After Timeout Causing Users Unable To Login     
    Oracle has produced some patches, but which one you apply really depends upon your version, environment (ie. EBS11i/SSO integrated or not), current patches applied and your platform.
    You may have to work that out with Oracle Support, but I can tell you in general some good one-off merge patches that you should apply (based on my experiences).
    From the note above:
    For versions 10.1.2.1 / 10.1.2.0.2 (Discoverer 10.1.2.48.18 and 10.1.2.50.05):
    Patch 5922220 is the latest known Portlet merge patch on top of 10.1.2.1 (10.1.2.50.05) for E-Business Suite Single Sign-On integrated customers and Patch 5497101 is the latest known Portlet merge patch on top of 10.1.2.1 (10.1.2.48.18) for other customers. Both of these patches include the above fix.
    # For versions 10.1.2.2 (Discoverer 10.1.2.54.25):
    * We recommend you apply Discoverer "cumulative patch II" ( Patch 6129303 ) as directed by Oracle Support if it is appropriate for your environment.
    I would consider:
    A.) Make sure you are patched appropriately
    B.) Make sure you have tuned your Discoverer portlet session pool.
    C.) If the load is large enough, you may need to consider an additional Discoverer standalone server with a load balancer.
    A note on that: Load balancing portlets is a bit different than standard HTTP applications (Plus/Viewer) since each portlet application on each server will be checking the refresh table in the metadata repository (infrastructure) database.
    You will have to ensure:
    a.) the times on each server is synchronized
    b.) the the peeksleepinterval is adjusted on each server to accommodate a smaller server vs. larger server (ie. which one you want to pick up more of the refreshes)
    Oracle Support has documented those pretty well in MetaLink document 360310.1     How Discoverer Portlet Provider Refreshes Are Distributed In A Load Balanced Environment
    I hope that helps get you started.
    Other comments / experiences welcomed.
    Regards,
    Steve.

  • JTable in JScrollPane auto resize refresh problem

    Hello,
    I have a JTable in a JScrollPane. Number of rows is changing.
    I'm using the following to auto-resize JScrollPane.
    public Dimension getPreferredSize() {
                  Dimension size = super.getPreferredSize();
                  size.height -= getViewport().getPreferredSize().height;
                  Component view = getViewport().getView();
                  if(view != null)
                  size.height += view.getPreferredSize().height;
                  return size;
             }There is a JButton, which adds an empty row to the JTable. It all works fine, except the auto-resize when a new row is added. I want all rows of JTable to be visible, with no scrollbars present. I tried repaint(), revalidate(), addNotify(). What should I do?
    Thanks.

    Sure
    DefaultTableModel dtm = new DefaultTableModel(vec, header);
              jt0 = new JTable(dtm);
              jt0.getTableHeader().setReorderingAllowed(false);
              jt0.setFont(new Font("Tahoma", Font.PLAIN, 12));
              jt0.getTableHeader().setFont(new java.awt.Font("Tahoma", java.awt.Font.BOLD, 12));
              jt0.setRowHeight(18);
            jt0.setPreferredScrollableViewportSize(new Dimension(500, jt0.getRowCount() * jt0.getRowHeight()));
            jt0.setFillsViewportHeight(false);
              jsp0 = new JScrollPane(jt0);
    GridBagConstraints gbc = new GridBagConstraints(); 
            gbc.insets = new Insets(2,1,2,1); 
            gbc.weightx = 1.0; 
            gbc.weighty = 1.0; 
            JPanel p0 = new JPanel(new GridBagLayout()); 
            gbc.fill = gbc.HORIZONTAL;
            p0.add(jsp0, gbc);
              JButton jb1 = new JButton("add row");
              jb1.setSize(40, 18);
    jb1.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent e) {
                        dtm.addRow(new Object[]{....});
    //                    jt0.scrollRectToVisible(jt0.getCellRect(jt0.getModel().getRowCount()-1, 1, false));
    //                    jt0.setRowSelectionInterval(jt0.getModel().getRowCount()-1, jt0.getModel().getRowCount()-1);
        public class SizeX extends JScrollPane {
             public Dimension getPreferredSize() {
                  Dimension size = super.getPreferredSize();
                  size.height -= getViewport().getPreferredSize().height;
                  Component view = getViewport().getView();
                  if(view != null)
                  size.height += view.getPreferredSize().height;
                  return size;
        }

  • Auto resize webpage?

    i have just finished my site which can be seen here www.jbpermanentcosmetics.co.uk The site looks fine on my Macbook pro on Mac and windows but it is way too large for 4:3 monitors. The site width is 1200 which in hindsight is too large really but i don't want to have to resize the whole website. Is there any HTML code which i can add which will auto resize the page to avoid horizontal scrolling?

    rossn49 wrote:
    I found the following code which looks like it might do what i want:
    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    window.location="highres.html";
    else
    window.location="lowres.html";
    //-->
    </SCRIPT>
    rossn49, you can not use that javascript. It switches between two pages/sites (I bolded the code), which means you have to add another site with narrow width.... you indicated that you wouldn't like to do that.
    However, you can find the sweet spot for your site design; many people started to design their sites for regular computer and also accommodate mobile devices such as iPhone.
    You may like to do just that, iPhone's resolution is 960px wide, so I would conservatively take it down to 900px~920px wide.
    OT, thanks for the good words... I'd not read the forum today. I'd been spending time today to figure out and mount my GPS on my new motorscooter, maybe I will buy motorscootersaurus.com for my new site. LOL!

  • How can I disable the auto resizing in NetBeans?

    Hello,
    how can I disable the auto resizing in NetBeans?
    I cannot resize nor displace components due to this automation.

    first what do u mean by auto resizing ? if u mean the layout that automatically aligns itself then ..... if that's yr question then u need to set the layout to null
    if using netbeans then right click on the the mainPanel and setlayout to null if eclipse the frame.getContent.setlayout(null);
    NetBean doesn't have a forum it has mailing list u can subscribe there
    http://www.netbeans.org/servlets/TLogin
    Edited by: raven_roy on Mar 12, 2008 2:58 AM

  • Disco Portlet definition in 9iAS: Get drop-down for parameterized sheet?

    The subject line says it all:
    If you have a parameterized sheet, should one get a drop-down of possible values when a Disco portlet is defined in 9iAS Portal? Or does one have to always type in the values manually?
    (I have created a custom item class with the LOV; works w/ Plus, Viewer, and Desktop.)
    John N.
    [email protected]

    After some interchanges with Support, it turns out that this functionality does not exist due to architectural issues regarding the Discoverer/Portal integration. The problem has been logged as a bug. They guess: Maybe 9.0.5.

  • Auto-resizing all components

    Is there a method that auto resizes all components on a JFrame when it is maximised for example. I have got a JTable (in a scrollpane) and some other components on a panel. I have sized the frame to be approx 80% of the screen size. When the frame is maximised, the table and the other components retain their original size (understandably so!). Is there a method available that can resize the panel and its components to resize accordingly when the frame is maximised?...I know I can add the componentListener and implement a method in the componentResized() method...but I dont want to duplicate stuff that's already available. Thanx for your help.

    I don't know the specific needs.
    BorderLayout: simple Layout; Components are oriented NORTH, EAST, SOUTH, WEST
    FlowLayout: all components are added after the other
    GridLayout: components are oriented in a grid
    GridBagLayout: complex once
    See the Java Tutorial for more information.

  • Auto Resize Text in a Text Box

    How do you make the text inside of a text box auto resize to fit the box I'm typing in?
    I have a text box with a list in it. I change this list everyday and like the text to fit the box. The size of the text doesn't matter. If I have a long list, I don't mind that the font is small. If I have a short list that day, I don't mind that the font size is then big. Hopefully I am making sense. I used to use text boxes like this in MS Publisher and am assuming I just need to find a setting change in Pages.
    I do this often enough that it would save time not having to keep guessing the correct font size until it fits properly.
    Thanks!
    Message was edited by: mnbinth

    mnbinth wrote:
    I used to use text boxes like this in MS Publisher and am assuming I just need to find a setting change in Pages.
    Assuming that application B will behave the same than application A is always a bad idea.
    There is no reason for such a guess.
    Happily, all engineers aren't thinking the same way and remember Apple's statement :
    *_Think different !_*
    Yvan KOENIG (VALLAURIS, France) samedi 25 septembre 2010 10:55:56

  • Popping up Disco portlet in portal?

    Hi folks.
    This is a Discoverer portlet question for 9iAS. In short, it seems that you can't set a portlet to pop up. (I am not trying to pop up Disco Plus or the Viewer -- I am trying to pop up a portlet specifically. In the tar I've entered at Oracle support, it seems that this last point is hard to grasp.)
    A nice feature of the 9iAS portal is that a portlet can have its attribute set so that instead of showing in a portal region, it displays in a new browser region.
    The way you do this is:
    1. Define and refresh the portlet as usual.
    2. Go to graphical layout mode and click the pencil to change the attributes. Set the "Display Options" attribute to "Link that Displays Item in New Browser Window."
    3. Now go to the Region attributes, click the Attributes/Style tab, and make sure that the attribute "Display Name or Image" is included in the Displayed Attributes.
    4. Now return to your page view.
    5. Click on the link for the worksheet.
    6. You will see the portlet pop up, but it says: "Error: The portlet has not been defined."
    This is of course wrong, because if you change the display back to "Item Displayed Directly in Page Area," it shows fine.
    Other parameterized (i.e., customizable) portlets work fine: For instance, database portlets pop up just right.
    Can someone verify this for me?
    Note that this a portlet I'm trying to pop up. Popping up a Viewer page is not adequate, because I want to use the simple portlet customization features. Also, popping up a Plus session is not good either in our environment.
    [Aside: Unless I am wrong, this is another example of Discoverer's inadequate integration with 9iAS portal. Among the other important issues are: You can't pass page parameters to a Disco portlet; the little drop-down arrow that is supposed to "minimize" the portlet doesn't work; data points aren't headed right in portlets or the viewer; Viewer URLs with MANY parameters don't work; I could go on and on.]

    After some interchanges with Support, it turns out that this functionality does not exist due to architectural issues regarding the Discoverer/Portal integration. The problem has been logged as a bug. They guess: Maybe 9.0.5.

  • How to avoid auto resizing the JPanel

    I have JFrame as main window. This JFrame consist of statusbar at the bottom of the JFrame. The statusbar has implemented as a panel that uses BorderLayout. This statusbar has two JPanels as children.
    1) the first child panel(label panel) has 3 labels on it.
    2) the second child panel(image panel) has only one label with a image and this second panel is added to statusbar to the next of the first child.
    3) all panels use BorderLayout.
    If I resize the JFrame by dragging its right border (right to left) both the panels on the statusbar are auto resizing. But I don't want to resize the image panel on the statusbar. I mean even if I resize the frame the size of the image panel should not change. It has to always visible completly.
    Any help is heighly appreciated.
    Regards
    Venkat

    There could be several different ways to achieve this, but it all boils down to using appropriate layouts and/or preferredSizes.
    The Java&#8482; Tutorials: [Laying Out Components Within a Container|http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]
    db

  • Something is wrong with Firefox's image auto resize

    In forums, when I post an image, it's seems to be doing an incorrect image auto resize, for the image is still large to be fit in the websites' pages, and when I CTRL+Scroll, the browser makes a proper resize though making the letters and numbers smaller.

    Resizing images automatically only works if you open an image in a tab and there is only that image to be shown. In all other cases it is the website that determines how large an image is displayed.<br />
    If you post an image on a forum and the forum doesn't resize the image automatically then use an upload host that automatically generates a thumbnail that you can show and that opens the full sized image if you click the thumbnail.

  • Auto-resizing TextArea in Flex 4

    Does anyone know how I can auto-resize the height of a Spark TextArea please? I tried following the examples in http://forums.adobe.com/thread/748191 but couldn't get it to work in either Flex 4.1 or Flex Hero.
    Here's what I'm doing:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:TextArea width="100%" heightInLines="{NaN}" minHeight="50"/>
    </s:WindowedApplication>
    When I press enter I need the TextArea's height to auto-resize, rather than scrolling up/down. Any help appreciated.

    @jeffry
    it surprises me too - but try this: http://polygeek.com/2249_flex_display-html-text-in-the-spark-textarea

  • 'Auto resize image' 'Settings' dialog box controls

    I have a signature that contains an avatar image (size 120px by 120px)
    Every time I 'Send' an 'Auto Resize Image' > 'Settings' dialogue box pops up
    How can I bypass this as its becoming annoying.
    Most emails (98%) do not contain any other embedded or attached images.
    This only started to happen after upgrading to latest version of Thunderbird, was never an issue before.

    Doesn't sound like a standard Thunderbird pop up as I've not come across it.
    Do you by any chance have an addon /extension such as Auto Resize Image?
    * https://addons.mozilla.org/en-US/thunderbird/addon/auto-resize-image/
    if yes, disable it and retest to see if message stops.
    Check you are using an up to date version.
    check to see if there is some settings you can use to 'not ask again' or similar. Can't say exactly as I do not use it.
    I use the standard TB settings to adjust for sizing when I originally insert an image.

  • How do I turn off "image auto-resizing"?

    After upgrading to version 3.6.3, the browser is now auto-scaling my images. I turned off "auto-resizing" on the About:Config page (in other words, setting that parameter to "false") but Firefox is still auto-scaling my images. How can I prevent this?
    == This happened ==
    Every time Firefox opened
    == I upgraded to version 3.6.3

    If you have set the pref '''browser.enable_automatic_image_resizing''' to ''false'' on the '''about:config''' page then Firefox shouldn't resize images.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages
    .

  • Auto resize width height in TextFlow controller

    HI,
    We are facing the problem in auto resize width height in TextFlow controller. Content is overlaping withing the controller or sometimes it's seems like not full containt displaying on the control.
    We are writing the below code in the flashx.textLayout.events.CompositionCompleteEvent listiner to orgnize the above step:
         var controller:ContainerController = new ContainerController();
         textFlow.flowComposer.composeToPosition();
         var contentBounds:Rectangle = _controller.getContentBounds();
       _controller.setCompositionSize(_controller.compositionWidth, contentBounds.height);
       textFlow.flowComposer.addController(_controller);
       textFlow.flowComposer.updateAllControllers();
    Please correct if are missing any steps above.
    Regards,
    R.BS

    Hi,
    I have got the solution on my last query. Below is the code to get rid of the content display and auto adjust the width & height of the controller:
    var textHeight:int = Math.ceil(_controller.getContentBounds().height);
       if (textHeight > _controller.compositionHeight) {
         TextDataHeight = textHeight + 12;
                   _controller.setCompositionSize(TextDataWidth ,TextDataHeight);
                   textFlow.flowComposer.updateAllControllers();
    I have also set the TextDataHeight = 50 to display complete paragraph text.
    Due to this I have one problem arise that is indentation of the paragraph content or bulleted text on my content.
    Is any one have the solution on this?
    Looking forward for your response.
    Regards,
    R.BS

Maybe you are looking for

  • Display medium text in value selection screen.

    Hello Experts, i have an infoObject called Customer in an ODS.Its master data contains the short text, medium length text and long text.i want to display its medium text(which contains First name n last name) in the value selection screen (F4) while

  • "Refurbished" replacement phone with many problems.

    Fixed.

  • Crop tool has stopped working

    I have been scanning slides into iPhoto, then cropping them to fit into iMovie to make a slide show. After doing about ten of them the crop tool stopped working. It still saves any other editing that I do but will not save the crop. Any ideas? Please

  • How to send picture message using J2ME sms APIs?

    Hi, I experiment with SMS APIs, i successfully send simple text message. now i want to send picture message, how to send picture message using J2ME APIs. please guide me. guna.

  • Adobe Customization Wizard 9 and acrobat reader

    Im trying to customise the acrobat reader with the Customization Wizard 9 and even if set some option like disable the check for update even after deploying the msi the option still there  i also try to disable the EULA when you first start the progr