How to find the height of growing subform

Hi Experts,
I am trying to find the height of growing subform at runtime.  But I could'nt is there any way i can find it.
I am using the below formcalc script in the event layout read.
<variable>.Value = Subform.h
all the time i get the value as 0.
Regards,
Krishna

Hello Otto,
Thanks for your suggestion, couple of days back I used one of the layout methods to find the height of the growing subform.
this.RawValue = xfa.layout.h(<subform>, 'mm');
The above javascript code works in the event "Calculate" and in event "Layout ready" all the other events is returning the height as '-1'.
Basicaly I have two bodypages as shown below my requirement is to find the height of a subform in first bodypage and if it reaches a particular height I want to insert a page break using conditional break in SUBFORM2.
PAGE1
      -  SUBFORM1(Bodypage1)-> ContentArea1
      -  SUBFORM2(Bodypage2)-> ContentArea2
Condtional break code on SUBFORM2.
Height  > 80
Break Before "X"    Goto top of Content Area <ContentArea2>
Unfortunately the conditional page break  is not working now so trying hard to find a solution to it, please let me know if you have any suggestions here.
Thanks,
Krishna

Similar Messages

  • How to find the height of .obj Objects?

    Okay so here is the deal. I'm trying to create a basic 3D world creator. I'm using .obj files to load the objects I can place in the world. If I'm correct when you load a .obj file it places the center of the object at the orign. I'm trying to make it so all the "buildings" I create from .obj files using the ObjectFile loader supplied by sun all lay on the same plane (All the bases are at the same y coordinate). I need to find the height of the Shape3Ds so I can put them all on one level. I keep on running into complications with deprecated methods and By_Reference. Is there a simple way to find the height? Thanks.

    Will a BoundingBox be any help?
    You can get a Bounds object from a Shape3D and use it to initialize a BoundingBox. That `s a simple way to give you the extreme upper and lower points of the BoundingBox from which to calculate the height.
    regards

  • How can find the task bar height of the PC desktop

    Hi all,
    I want to find the height of the task bar of the PC desktop screen. It can be on any OS such as Windows, Linux, Mac..
    I have done something this. Create a JFrame and maximize it by make setVisible to true. Then get the height of it and dispose it. At the same time find the screen height using Toolkit. Then take the difference of it.
    My question is, even in the sudden time that JFrame is appear and dispose, it blink on the screen. I want to avoid it. Anybody can give me a solution for it.
    Here is my code.
            int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
         final JFrame tempFrame = new JFrame();
         tempFrame.addFocusListener(new FocusListener() {
             public void focusGained(FocusEvent e) {
              tempFrame.dispose();
             public void focusLost(FocusEvent e) {
         tempFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
         tempFrame.setVisible(true);
         int frameHeight = tempFrame.getHeight();
         int taskbarHeight = screenHeight - frameHeight;
            tempFrame.dispose();Thanks.

    needs a bucket load of testing (and possibly only works in java 1.6)
        System.out.println("TaskBar height = " + (Toolkit.getDefaultToolkit().getScreenSize().height -
                     GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().height));

  • How to find out height of text, given width?

    Hello, I apologize in advance for this must be a stupid question, but I just can't seem to find an answer in the docs...
    If I have a text (string + font information), and I know how wide the display will be, how do I find the height??
    The solution I know of (adapted from camickr code), works, is a hack using a phantom JFrame - see the method showHeight. This is the kind of code that my first college programming professor would call "Mark, your code is ugly and miserable". How to do this right? (or is this the only way)
    import java.awt.*;
    public class Foo
         public static void main(String[] args)
              showHeight("FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR ", new Font("Arial", Font.BOLD, 12), 100);
         public static void showHeight(String s, Font f,  int width)
              JFrame frame = new JFrame();
              JTextPane txt = new JTextPane();
              Rectangle r = null;
              txt.setFont(f); 
              txt.setText(s);
              Dimension dim = txt.getPreferredSize();
              frame.setContentPane(txt);
              dim.width = width;
              txt.setPreferredSize(dim);
              frame.pack();
              try
                   r = txt.modelToView(txt.getDocument().getLength());
              catch (Exception exc)
              System.out.println("height is " + (r.y + r.height));
    }

    This is not a trivial problem
    To start with, you definitely need to know
    #1 What Font (family, size, style) are you using? This is assuming you are just using 1 font. More than 1 font makes it much much more complicated.
    #2 How are you doing line breaks? Are you doing line breaks just on whitespace characters, or on any character?
    Now you need to find out how many lines there are going to be. Start by getting the FontMetrics for the Font. You should use getCharWidth('W') or getCharWidth('0') to get a rough estimate of how many characters any line can contain. Then you need to go through your text and figure out how many lines there are, not using the guess you calculated above, but using FontMetrics.stringWidth()

  • How to find the number of data items in a file written with ArryToFile function?

    I have written an array of number in 2 column groups to a file using the LabWindows/CVI function ArrayToFile...Now if I want to read the file with FileToArray Function then how do I know the number of items in the file. during the write time I know how many array items to write. but suppose I want the file to read at some later time then How to find the number of items in the file,So that I can read the exact number and present it. Thanks to all
    If you are young work to Learn, not to earn.
    Solved!
    Go to Solution.

    What about:
    OpenFile ( your file );
    cnt = 0;
    while ((br = ReadLine ( ... )) != -2) {
    if (br == -1) {
    // I/O error: handle it!
    break;
    cnt++;
    CloseFile ( ... );
    There are some ways to improve performance of this code, but if you are not reading thousands of lines it's quite fast.
    After this part you can dimension the array to pass to FileToArray... unless you want to read it yourself since you already have it open!
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to find the number of entries in a master data table

    Hi Experts,
    I am trying to find the entries in 0CUSTOMER master data.
    BW>LISTCUBE>Data target: 0CUSTOMER and selected the fields that I need.
    I would like to know how to find the "number of entrees". I tried to run the SUM for a count field, but it is taking forever as there are huge number of records .

    Hi Dev,
    Go to the change/display mode of the info object (0CUSTOMER) in your case. Go to the Master data/Text tab. Here you will find the master data tables according to your settings (P orQ or X or Y). Double click on the table name and it will take you to the SE11 display. From there, you can check the number of records as you do in any transparent table.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • How to find the number of links in a website

    hi every body
    can any one clear my doubt
    my doubt is that
    in a website how to find the number of links the hole website contains
    is there any navigation tool to find that
    plz help me yar
    i am waiting for the reply

    If you're talking about commercial sites (sites you don't have the source code for) I'm not sure.
    If you want to count the links in site that you have the source code for, it should be relatively easy to write a Java application to do it. All you really need to do is have a list of the files you want to count links in, read each file line by line and check for the existance of the <a> tag in each line. Anywhere their is an <a> tag there is a link.
    Hope this helps.

  • How to find the number of times method being called.....

    hi,
    can any one pls tell me how to find the number of times the method being called......herez the example....
    Refrence ref = new Refrence();
    for(int i = 0;i < arr.length; i++){
    if(somecondition){
    ref.getMethod();
    here i want to know how many times the getMethod() is calling...Is there any method to do this.. i have seen StrackTraceElement class..but not sure about that....pls tell me the solution....

    can any one pls tell me how to find the number of times the method being called......
    herez the example.... http://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.

  • How to find the number of fetched lines from select statement

    Hi Experts,
    Can you tell me how to find the number of fetched lines from select statements..
    and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
    Thanks in advance
    santosh

    Hi,
    Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
    For ex:
    data: itab type mara occurs 0 with header line.
    Select * from mara into table itab.
    Write: Sy-tabix.
    This will give you the number of entries that has been selected.
    I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

  • How to find the number of occurance of a string in text field of Infopath form?

    Hi All,
    In Infopath text field, How to find the number of occurrence of a particular string in that field?
    Thanks in advance!

    You can check to see if it contains a string once by using the contains function, but there isn't a very clean way to do what you want. If you wanted to guess at the maximum number of occurrences, then you could:
    Box A has your initial. Set Box B to do a concat of string-before and string-after of Box A where it copies Box A minus the string we're looking for. Then we have Box C that does the same thing to Box B. Repeat as many times as you see necessary.
    Example:
    String: "1"
    Box A - "123451234512345"
    Box B - "23451234512345"
    Box C - "2345234512345"
    Box D - "234523452345"
    etc.
    We then have a field that has nested ifs looking backwards from Z -> A looking for a non-blank. Based on that, we return the number of occurrences. Again, this isn't clean, but it will work if you think there's a predefinable maximum.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to find the number of users  connected to database from OS level(Linux)

    Hi All,
    Could anyone know , how to find the number of users connected to database without connecting with sql*plus
    is there any command to find it?
    example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
    oracle version:- 10g,11g
    Operating System:- OEL4/OEL5/AIX/Solaris
    any help will be appreciated.
    Thanks in advance.
    Thank you.
    Regards,
    Rajesh.

    Excellent.
    Tested, works as long as you set the ORACLE_SID first ( to change databases )
    ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
    Thanks!
    select OSUSER
        from V$SESSION
    where AUDSID = SYS_CONTEXT('userenv','sessionid')
        and rownum=1;Best Regards
    mseberg

  • How to find the number simultaneous call at a given moment on UCCX ?

    Hello,
    I would to know how to find the number simultaneous call at a given moment on UCCX ?
    it's on UCCX or UCCX RTMT, I don't know thanks a lot for your help.
    Aubert

    Hi Gergely,
    I should made a report on the number simultaneous call at a given moment on UCC on the server (all calls on the server)..

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

  • How to find the number of ODBC connections to Oracle Database

    Hi All,
    How to find the number of ODBC connections and all connections to the Database in last week. Are there any views to get this information?
    Thanks in advance,
    Mahi

    What Ed said is true that Oracle doesn't note which type of protocol is connecting to the database, however, you can see which program is accessing the database.
    For example: if you already know of a user using ODBC, you can verify as:
    select username, osuser, terminal, program from v$session where username = 'SCOTT'
    USERNAME                 OSUSER          TERMINAL   PROGRAM
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    2 rows selected.Assuming that you can confirm the progam noted in the above (example) is the one using ODBC, then you can change the query such as:
    SQL> select username, osuser, terminal, program from v$session where program = 'w3wp.exe';
    USERNAME                 OSUSER          TERMINAL   PROGRAM
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    2 rows selected.Just for kicks, I checked our listener.log file, but there was no reference of odbc in it either.
    Hope this helps...

  • How to find the number of columns in an internal table DYNAMICALLY ?

    Hi,
    How to find the number of columns in an internal table DYNAMICALLY ?
    Thanks and Regards,
    saleem.

    Hi,
    you can find the number of columns and their order using
    the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = sy-repid
       I_INTERNAL_TABNAME           = 'ITAB'
       I_INCLNAME                   = sy-repid
      changing
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif
    now describe your fieldcat . and find no of columns.
    and their order also..
    regards
    vijay

Maybe you are looking for

  • I cannot get my HDTV to read shared files from my iMac

    I have just brought a HDTV live and am having trouble getting it to connect to my mic and read files. I am pretty sure I have all my file sharing settings ok. I read that there are issues with this system and mountain lion is that correct! I really n

  • IPhoto window blank, force quit, general misery

    Hello, I've never used iPhoto on this machine but have used it briefly on another computer on the network (we have a family license). I had installed iPhoto Buddy on the other computer and decided I would do so on this one so I could share libraries

  • Questions about Database roles

    Hi,  Need to setup a new (Windows) user which has varied access to tables, views and procedures in about 8 different schemas all in the same database.  I've created a instance level login and then gone to the database to set the more granular details

  • How do I remove halftones at shape edges?

    I am new to Ae. When I make shapes there are these annoying 1 pixel half tones at the edges and they are really visable in this blue colour, if I turn off anti alias (can you even do that in Ae?) the curves will look bad. So can I just snap the strai

  • Prepping Leopard Mac for Sale and removing old details

    Hi all, I'm about to sell my Mac Mini with Leopard installed on it, and I want to remove all my details and user accounts from it, preferably in such a way that the Mac is at the same state it was when I bought it - i.e. asking me for my details, etc