How to use script to get the first table row on each page?

I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
Any ideas?

Hi Wei,
There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
- hope this helps, Kindly update,
thanks and regards,
- anto.

Similar Messages

  • Using RowID to get the first instance of a value in a table

    I have a table of the structure
    SECURITY(
    COMPANY_ID NUMBER,
    SECURITY_ID NUMBER,
    CUSIP
    One company can have many CUSIPs asociated with it and I want to find the best way to find any valid CUSIP for the company_id using PL/SQL.
    Here is my approach, I would like any other suggestions or comments.
    SELECT
    rowid INTO v_row_id
    FROM
    SECURITY
    where COMPANY_ID=v_company_id
    and rownum<2
    SELECT
    CUSIP INTO v_cusip
    FROM
    SECURITY
    where rowid=v_row_id

    Hello
    If you don't specify an order you will let oracle decide what the "first" row is. It may be the first row that was inserted, it could be the last, or it could be any other row for that company. If the execution plan for the query changes (or a number of other things) the first row returned could change. This may of course not matter to you at all but it's worth pointing out I think:
    create table dt_test_SECURITY(
    COMPANY_ID NUMBER,
    SECURITY_ID NUMBER,
    CUSIP varchar2(20)
    --generate some test data
    SQL> insert into dt_test_security select mod(rownum,200)+1,mod(rownum,10)+1,to_char(rownum) from dba_objects where rownum <2001;
    2000 rows created.
    SQL>
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1;
    CUSIP
    2000
    200
    400
    600
    800
    1000
    1200
    1400
    1600
    1800
    10 rows selected.
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1
      7  and
      8     rownum<2;
    CUSIP
    2000
    create index dt_test_security_idx2 on dt_test_security(company_id,cusip);
    exec dbms_stats.gather_table_stats(ownname=>user,tabname=>'DT_TEST_SECURITY',method_opt=>'FOR TABLE FOR ALL INDEXES FOR ALL INDEXED COLUMNS');
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1;
    CUSIP
    1000
    1200
    1400
    1600
    1800
    200
    2000
    400
    600
    800
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1
      7  and
      8     rownum<2;
    CUSIP
    1000If you use MAX(cusip), you will get the highest cusip against the company which is much more specific. Is that what you want? How are you intend to determin which is the first row, or doesn't it matter?
    HTH
    David

  • How to use sdk to get the image in the pdf file created by illustrator?

    I have some pdf files create by illustrator and saved as pdf documents,
    now I want to use the sdk to get the image in pdf files.
    how to?
    Thanks.

    Thank you first!
    Yes,you are right,since I am new to illustrator,and I want to try to write a plugin,
    I have read the sdk doc and API and opened the sample in vs2010,but no idea about how to operate the pdf doc in illustrator with api.
    Hope more advise or any examples,thank a lot.

  • How to use apdu to get the certificate in smartcard?

    hi,guys
    how could i use the apdu command to get the certificate in smart card.
    now i sent following commands in JCOP shell
    /send 00a404000cA000000063504B43532D3135
    /send 00a4000c023f00
    /send 00a4000c025031
    /send 00a40200024404
    /send 00b0000080
    /send 00b0008080
    what's the next step?

    i'm using the A.E.T's safesign card,i just only use the apdu to load from card.
    but it's seems like it's can't load whole certificate.

  • How to use SPMetal to get the item's original field which named 'Created'

    I want to read the field which named 'Created' by using SPMetal,I found the 'Item' class has the property named '_originalValues', it seems to get the infomation about the original values.
    Is there anyone who has solved this kind of problems?

    Hi,
    By default, the Created, CreatedBy, Modified and ModifiedBy fields are not created by SPMetal, so we will need to extend our base entity class for accessing these fields in our
    code.
    Here is a link will show how to achieve this with steps in detail:
    http://weblogs.asp.net/uruit/archive/2011/05/05/linq-to-sharepoint-working-with-created-createdby-modified-and-modifiedby.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Script to get the first word on each page

    Is there a script that would make a list of the first word of each page (or, preferably, create a text box on each page and place the next page's word in that)? My document's all in one story with one text frame on each page, although there are several other frames (header, page number) applied through master pages.

    You wrote:  I changed the numbers to "8.0425in",  "4.5681in",  "8.1275in", "5.4319in" and it mostly worked - it placed the box at exactly 5 inches (X) and at 8.085 inches (Y) instead of 4.5681 inches. Any idea why?
    No. I cannot reproduce the error you describe. I assume you've checked your numbers very closely in the script--I don't normally indicate measurements as strings.
    you wrote: Something wasn't working with the styling - it kept freezing the program -
    What do you mean by "freezing the program"? Is there a specific error message?
    The paragraph style is named "firstword" and is all lowercase letters?
    firstword paragraph style is NOT in a paragraph style group, right?
    Is the first word on any page too long when formatted with the paragraph style "firstword" to fit in the text frame?

  • Forms: how to use COUNT_RECORD to get the number of record retrieved?

    After GO_BLOCK(BlockName)EXECUTE_QUERY, there must a way to obtain the number of records retrieved.
    I like to use this number to display to number of records on the form.
    Clearly, a not so good way is:
    SELECT COUNT(*) INTO :NUM_RECORD FROM Table_Name;
    It queries table one more time.
    Could any one give a clue?
    Thank you.

    Dear Kiran,
    Fom tables EINE (inforec no, plant) and EINA (inforec no, material, vendor), you can get the desired information.
    Regards,
    Prasanth

  • How to use offset in getting the last 7 digit of a sting

    Hi,
    Will you please tell me, how I can use Offset like command for the following code :-
    Data :- v_file type string .
    Let v_file = xyz/abc/ABCD/pq.rs.tuv1234
    I want to take last 7 digit i.e. "tuv1234"
    Please tell me..
    Saurabh

    data : text(40) type c value 'gashscj/kdkkl223',
             length type i,
             value(7).
    length = strlen( text ).
    length = length - 7.
    value = text+length(7).
    regards
    shiba dutta
    Message was edited by:
            SHIBA DUTTA

  • How to use alias to get the columns list?!?

    Is there a way to make raptor show the columns list of a table when typing like
    "select * from table a where a....(waiting for columns list)" ?
    Tks,
    Claudio.

    you cant do it with aliases and we have a bug logged on that. however, you can use the full tablename followed by a . and then the insight list will be populated. ctrl-Space will do completion too

  • First two lines of each page... - Format Issue

    I have a manual I am currently updating.  I am unaware of how it was formatted initially but it is currently pushing the first two lines of each page all the way to the left margin.  I have checked everything I know to check for the format setting
    and have been unable to find anything out of the ordinary.  Anyone have any idea what causes this?
    I am using Word 2010

    It may be possibly due to the indentation setting of your document.
    To change it, choose the below option in your word file
    Home => Paragraph => Indents and Spacing => Indentation => Left (0 pi)
    Try if this work outs.

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • How do i use home.html in the first Jboss example

    how do i use home.html in the first Jboss example? i got the example to work through the command line method. i also got the CD example to work.
    the documentation does not tell you how to use the home.html file. the file suggests that i can call the servlet because it has this line:
    <form action="InterestServlet" method="POST" >
    from my knowledge of servlets, i should be able to put the home.html file in the same directory that the servlet is in, and as long as a web browser can access it in that location, then this should work... right?
    can someone tell me specifically what they did to get it to work? i CANNOT FIGURE OUT what the servlet URL is. my first guess would be http://localhost/servlets/InterestServlet . This doesnt work. Does anyone understand where i am coming from??
    I am using ANT, and the normal install of the latest JBoss. i do not have a web server running because the JBoss server says in the console "[INFO,WebService] Starting
    [INFO,WebService] Started webserver with address: null port: 8083
    [INFO,WebService] Codebase set to: http://thor:8083/
    [INFO,WebService] Started" and so i assume there is a web service there?????

    ADDENDUM:
    i still cant figure out my servlet question, so please help, if you can.
    i just figured out that i need to download the JBoss Tomcat/Catalina server. I got it running except that the Catalina web server only is working when i run it standalone, and i cant figure out why. It keeps throwing this exception:
    [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
    [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
    java.lang.NullPointerException
    at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Unknown Source)

  • How to get the first day in the month from a domain date ?

    Hi,
    I like to know how to get the first day in the month from a domain date?
    Thanks
    Stephen

    Hi Gokul...
    Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
    Its similar to the above one but instead of writing case statement you can achive the following.
    data : w_res type i,
             w_data type d,
    w_res = w_date mod 7.
    w_date = w_date - w_res.
    write w_date.
    This works.
    Regards,
    Siddarth

  • Apple Mail - how to get the first word in a sentence to auto-capitalize

    How to get the first word in a sentence to auto-capitalize
    Anwar

    something to look forward to then, because we get used not to use our shift button any more, since iPhone and iPad do it for us. entourage and other ms stuff do it. pages does it too now (put it on in the auto-correct in preferences). bizarre however some loose the capitalization when you copy the text. pages to stickies or mail does not. that's good !

  • How to get the first 4 chars form a var ?

    Hi guys,
    How to get the first 4 chars form a var ?
    i.e  temp type num20 value '00000000000012345678'.
    how to move the first 4 chars to another var?
    thx in advance.

    hi
    use OFFESTS..
    example:
    var1 = '12345678'.
    var2 = var1+0(4).
    now var2 conatins '1234'.
    thx
    pavan

Maybe you are looking for

  • Disable return button

    I have created an action link on main report that opens second report in a new window and second report has a return button on it by default and when i click on it its is taking me to main report in new tab, Is there any way we can disable return but

  • Using a second computer with an ipod set to manual update

    I want to prevent my ipod 60GB video which is set to manual update on my G5 from being updated when I plug it into my powerbook. The powerbook assumes the ipod is available for auto update. How do I mount the iPod without iTunes automatically replaci

  • Address bar drop down randomly changes from large block to compressed ones. How do I change it back?

    I woke up the other morning and the drop down for my address bar, which had previously had a generous block for each address in memory, had changed. All of the block for remembered addresses had been compressed to half the size they originally were.

  • Saving a BufferedImage as part of another file

    Hi mates ! I have a program in which the documents it produces are based on images . I want to save the documents in one complete file containing both the image and the other data. the problem is less to store the data then reading it . at first i th

  • Adding Date/Time on photos?

    I have a Canon SD800IS camera and it does not seem to allow me to put a timestamp on the actual photo unless it's in some specific high resolution portrait picture mode. Is there some way iPhoto can put the date on my photos? It's amazing my expensiv