Default range size for iterator binding

I noticed that the default range size for an iterator binding is 10. Is there a way to have no default? Right now I have to change it programatically by setting it to the value returned from the getEstimatedRowCount() method.

I assume you are looking for a way to set the default range size at design time? Currently, there is no way to do this, but if you are looking for another solution at runtime, you can use
getBindingContainer().findIteratorBinding(<IteratorName>).setRangeSize(num)
for the component you are using the iterator in. For example, in a data page, this would mean overriding the DataPage base class.
Hope this helps,
Lynn Munsinger
Java Tools Team

Similar Messages

  • Range Size for the Iterator

    Hi
    I have set the iterator range size for a VO in an UIX page as "10". Can I change the range size dynamically in the code....(i.e) in one view I want the 10 records to be listed and in another view i want 20 records to be displayed.
    Thanks
    Shoba

    Try setRangeSize() after executeQuery(), like this
    try
    panelBinding.getRowIterBinding("CubTicsView3", null, "CubTicsView1Iterator").getViewObject().setWhereClause(currentWhere);
    panelBinding.getRowIterBinding("CubTicsView3", null, "CubTicsView1Iterator").getViewObject().executeQuery();
    panelBinding.getRowIterBinding("CubTicsView3", null, "CubTicsView1Iterator").setRangeSize(-1);
    callRedrawChart();
    catch (DMLException ex)
    ex.printStackTrace();
    }

  • How do I change the default paper size for printing?

    I am running Firefox 3.6.3. Recently, the default paper size for printing unexpectedly changed to a user-defined size of 3.00" x 4.57". It used to be letter size (8.5 x 11). The default paper size is 8.5 x 11 for everything else. I have tried changing the size in the preferences dialog box and then clicking "default", but after I close Firefox or if Firefox opens a new window, the default size switches back to 3.00" x 4.57". Does anyone know how to fix this?
    == This happened ==
    Every time Firefox opened
    == About 2 weeks ago

    In "mine" dutch firefox 3.6.12 there is no option to change paper-size see
    "about:config" Promise to be careful (and be!) Enter "print.postscript.paper_size" gives a empty screen
    "paper_size" gives a few results
    What about the numbers 4259872, 4784247 and what is the meaning of
    paper_size, paper_size_type , paper_size_unit

  • Default page size for printing

    Is there a way to configure (i.e., specify non-programatically) the default page size to use when printing in Java? We have several JREs installed on a single Solaris machine. It seems that all but the one that came installed with the OS defaults to a an ISO-A4 page size.
    I wrote a test program (see end of post) and compiled using a 1.2.2 JDK. Here are some results:
    $ /usr/java/bin/java -cp . PrintPageFormat
    Java version: 1.2.2
    Page size: 612.0 x 792.0 pts
    $ /opt/java-packages/jre-1.4.0_04-solaris-i586/bin/java -cp . PrintPageFormat
    Java version: 1.4.0_04
    Page size: 595.0 x 842.0 pts
    $ /opt/java-packages/jre-1.4.2_08-solaris-i586/bin/java -cp . PrintPageFormat
    Java version: 1.4.2_08
    Page size: 595.0 x 842.0 pts
    $ /opt/jre-1.5.0_04-solaris-i586/bin/java -cp . PrintPageFormat
    Java version: 1.5.0_04
    Page size: 595.2755813598633 x 841.8897399902344 pts
    I've searched the Internet, but cannot find how to go about setting the default page size for a JRE. I've opened a ticket with Sun, and was told you can't do this other than programatically. It seems unreasonable that I would have to recompile my existing applications just to get them to work correctly under newer JREs. Is Sun's response to my ticket correct???
    Thanks in advance!
    Chris Rorvick
    [email protected]
    ============================================================
    import java.awt.print.*;
      public class PrintPageFormat
          public static void main(String[] args)
              PrinterJob pj = PrinterJob.getPrinterJob();
              PageFormat pf = pj.defaultPage();
              double w = pf.getWidth();
              double h = pf.getHeight();
              String version = System.getProperty("java.version");
              System.out.println("    Java version: " + version);
              System.out.println("    Page size: " + w + " x " + h + " pts");
      }

    This problem was fixed by setting the locale variable LC_CTYPE to "C" or "en_US". The JREs 1.4.0 and above deployed on our Linux and Solaris environments all have the system property 'java.awt.printerjob' set to 'sun.print.PSPrinterJob'. This is a subclass of sun.print.RasterPrinterJob which in turn is a subclass of java.awt.print.PrinterJob. So, PSPrinterJob is the actual class of the PrinterJob returned by PrinterJob.getPrinterJob(). Looking at the code of RasterPrinterJob:
            /* Default to A4 paper outside North America.
            String defaultCountry = Locale.getDefault().getCountry();
            if (!Locale.getDefault().equals(Locale.ENGLISH) && // ie "C"
                defaultCountry != null &&
                !defaultCountry.equals(Locale.US.getCountry()) &&
                !defaultCountry.equals(Locale.CANADA.getCountry())) {
                double mmPerInch = 25.4;
                w = Math.rint((210.0*ptsPerInch)/mmPerInch);
                h = Math.rint((297.0*ptsPerInch)/mmPerInch);
                newPaper.setSize(w, h);
                newPaper.setImageableArea(ptsPerInch, ptsPerInch,
                                          w - 2.0*ptsPerInch,
                                          h - 2.0*ptsPerInch);
            }This should have been fairly obvious. Java's locale settings depend on the platform's locale settings (i.e., LC_ variables in this case), and then the default page size is determined (or actually altered) based on that.
    I'm kicking myself for not figuring this out much sooner. I would hope Sun is, too! (not me, themselves)

  • Change the Default Page Size for WebI Rich Client 4.0

    Hi:
    I am trying to change the default paper size for Webi Rich Client 4.0. 
    In 3.x you made the changes to the defaultconfig.xml located in the path C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\classes\AppletConfig.
    In 4.0 I canu2019t seem to locate the file, can you advise if the file is the same name and where the file located.
    Thanks
    Brad

    Hi,
    Please check out the User Guide - see section Web Intelligence Cascading Style Sheets (CSS)
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_ia_en.pdf
    Regards
    H

  • How to set the default maximum size for java's heap?

    Hi!
    Im trying to set the default max size for the java heap - but not from the command line.
    I would like to set it higher as default on my computer.. how can I do that?
    thanks!

    >
    ...You may increase the memory heap only when you're launching a new JVM.>Much like IWantToBeBig does.
    OTOH, it this is an app. with a GUI, it is easier to launch it using webstart, and request extra memory in the JNLP descriptor (the webstart launch file).

  • Default block size for UFS format in OSX?

    Hi,
    I formatted an external drive as "unix format" (UFS) using Disk Utility, which subsequently became unrecognizable by the firewire controller. Now in a Unix box, the superblock of this drive is coming up as corrupted or nonexistent. Does anyone know where I can find the default block size for UFS in os x? I need to specify a backup superblock. Thanks!
    -Dan

    If it is just scratch, run some benchmarks with it set to 128k and 256k and see how it feels with each. The default is too small, though some find it acceptable for small images. For larger files you want larger - and for PS scratch you definitely want 128 or 256k.

  • Default lot size for MRP type

    Hi,
    Can we set default Lot size for MRP type ?
    Regards
    Karthik

    Dear,
    Yes you can do it by creating material master with MRP Pofile.
    First you need to create MRP Pofile in MMD1 where you need to define the LOT SIZE and MRP TYPE which you want then make these value as Fix Value.
    Then Create material master MM01 with this MRP Profile and check your result.
    Regards,
    R.Brahmankar

  • Default font size for a value in a table in Answers

    Hi,
    I am trying to set a default font size for a column of table view in Answers, so that when I create a new report, this default font size is used. Can someone please point me to the file where I can make this change?
    Thanks

    Well if you have a tag like this:
    element.style {
    background-color:#FFFFFF;
    font-size:9px;
    It means it's coming from the formatting in the request in Answers...not from a style sheet! You'll note in Firebug, that there's actually no *.css file mentionned. I.e. example from here:
    element.style {
    color:#00AF00;
    .OORD {views.css (line 1574)
    text-align:right;
    .PTE {views.css (line 1077)
    background-color:#FFFFFF;
    First part element.style comes from my conditional formatting and doesn't reference any css file
    The other two elements are from the views.css which control my pivot table.
    See the difference?
    Cheers,
    C.

  • What is the default icon size for macbook pro 13 inch?

    I have the 13 inch macbook pro, its not the retina. What is the default icon size for it? I accidently changed it on the show view options.

    The default size is not related to the Mac Model, it's related to the OS X version. For Snow Leopard it's 48x48 pixels.
    For Lion and Mountain Lion it's 64x64.
    You can choose the size that is right for you. I typically use either 32x32 or 36x36. Some prefer larger some prefer smaller. It's up to you.
    I've always found the default sizes to be too big for my taste.

  • PIXMA MG8220 default page size for printing is set incorrectly to 6x4, need Letter

    I have a PIXMA MG8220, and the default page size for printing is set incorrectly to 6x4, I need it to be Letter paper size. I'm wasting a lot of paper, and cannot figure how to reset the defaults on the printer vs. individual laptops using the printer?Simon

    Hi simonp, To set the paper size to be printed on, please follow these steps: 1.  Open an application such as TextEdit. 2.  Go up to File and select Print, or press the CMD+P keys on your keyboard. 3.  Locate the PAPER SIZE field, then select the LETTER paper size. 4.  Look for the drop-down menu labeled PRESETS, then expand this menu and choose SAVE AS.
    5.  Type in a name of your choice for this default setting, then click OK.
    You will now be able to select the above created preset from any application you print from, with the default paper size being Letter.  Hope this helps!

  • How to Setup Default Page Size for Multiple Printers

    I've got two printers, a laser printer for printing "normal" 8 1/2 x 11 pages and a Zebra label printer for printing 4x6 shipping labels. I have my laser printer set as the default printer with a default paper size of US letter. Whenever I go to print shipping labels on my Zebra printer, I switch the printer in the Print dialog box and it always defaults to a paper size of "Full Bleed 8 1/2 x 11". Is there any way to change this setting so that it defaults to "4x6"?
    Another interesting thing is that if I temporarily set the Zebra printer up to be the default printer, none of the paper sizes that are "appropriate" for this printer appear in the default paper size popup menu. It looks like the choices are only those that would make sense for my laser printer. But when I go to print with my label printer, I can choose all sorts of "appropriate" sizes from the dialog box, including the "4x6" size that I use.
    Any ideas?

    Stop the queue (or take the printer offline manually), queue a print job, and check the settings on the submitted job using the CUPS interface; see if you can get the print job "captured" in the queue, and then see if the job is asking for the page size.  Based on what you're describing, I'd guess that whatever application or tool you're printing from is specifically requesting the page size, and not defaulting it.

  • Change the Default Page Size for WebI

    Hello Experts,
    We have requriement where we need to change the default page size and margins for WebI, I have change the page size in defaultconfig.xml but don't see any options for Margins, How do I change the default margins?
    Any help or suggestion would be highlt appereciated.
    Thanks,
    Nishith

    From what I am finding it doesn't seem to be possible in 3.x, I could be wrong and someone might chime in with a workaround but at least it was added in 4.0
    -Dave

  • How can I change the default page size for the Adobe PDF Printer?

    Hello All,
    I have cases where I need to switch the default paper size from 8.5x11 to 11x17 via api for the Adobe PDF Printer and have not been able to find how this can be accomplished.
    I am using C# .Net and would appreciate any help.
    Thanks in advance,
    Bob

    There is no Acrobat API for this, but so far as I know there doesn't need to be. The user can go change this from the Printers Control panel as needed. The Adobe PDF printer has some differences from regular printer drivers, but this isn't one of them.

  • Can I change the default page size for SYSBUILD?

    When I start SYSBUILD it always has a default page size of Letter set, is there any way to change this as most of the blocks I wish to print are to be printed on A3 paper?
    Many thanks
    Tim

    Hi Tim,
    Unfortunately there is no option to change the default print settings for SystemBuild. You must manually select the A3 paper size under File>>Page Setup.
    Thanks for the suggestion though, I will pass that on to R&D as a product suggestion for a future release.
    Regards,
    Jeff M.
    Applications Engineering
    National Instruments

Maybe you are looking for