Formula to get sum of records per page

Post Author: dreamer_0244
CA Forum: Formula
Hi! I'm trying to create a formula that would get the sum of a field within each page of the report.
Does anyone have an idea on this? Thanks!

Post Author: bettername
CA Forum: Formula
If you want something at the bottom of the page that says "Total sales for this page = £1385.55", then you'd create a formula in the group header that sets a variable to be 0.  Then add to this variable for each record, and then display it in the page footer:
In page header (suppress formula):
whileprintingrecords;
numbervar mytotal:=0;
In details section (suppress formula):
whileprintingrecords;
numbervar mytotal:=mytotal+
In page footer:
whileprintingrecords;
"Page total = "+totext(numbervar mytotal)

Similar Messages

  • Data Merge: Cannot get multiple records per page

    I am working with a client who is trying to do a directory in Indesign. There are about 1,800 people with information like address, title, employer, phone, etc. This info is on an Excel spread sheet. I made a text, tab delimited and a CSV file from the spreadsheet. I set up a two column text box on each page and want these entries to fill the columns. I am only able to get one person's information per page. Multiple records per page yields no different result. I also had the multiple records option grayed out on a couple tries. I have tried this many times, even tried setting up a simple spread sheet with 9 items. No luck. HELP! I'm brand new to this feature.
    Chris

    the data merge function in indesign doesn't make "next record" merges  like word does, but instead merges to fields within fixed text boxes, so  one frame = one data merge result. when doing mailing labels in word,  there is a field called "next record" which then calls in the next piece  of information.
    the "next record" field is a vital field which indesign doesn't have and  i'd like… but that doesn't answer your question. i can see four ways  of doing what you want to do:
    1) do a mail merge in word and use the "catalog" feature and do the  merge in word. format the word file appropriately using stylesheets, and  once the merge is made, save the file and close it. THEN, place the  file in indesign and then change the imported stylesheets into something  which resembles more like what you want.
    2) use indesign's data merge but make sure that multiple record  layout is selected in the first dialog box when creating merged  document; and that when previewing the records, the records appear to be  in one column (even though they are still in separate text frames).  merge the document, and in the new document, select all the text frames  in the page and then run the MergeTextframes_ID.jsx script which can be  found at http://ajarproductions.com/blo…..-indesign/ .this  will have to be done page by page and then rethreaded each page, but  it's a workaround
    3) if the data in the datamerge is a csv, convert the csv to xml. if  the csv is small (less than 100K) there is a converter online where the  contents of the csv is copied into the converter. it is at http://www.creativyst.com/Prod/15/ . The next step is complicated and needs some knowledge of XML. my  advice is to get hold of a book called "Designer's Guide to Adobe   InDesign and XML" by James Maivald, and specifically read chapter seven  and base your merge on this.
    4) visit the third party providers link within the indesign page of the adobe site and have a look at products marketed there... i think teacup software and cacidi software sell products which do more advanced merges within indesign. they're not free though but are designed to handle big catalogues.
    hope that helps.
    colly

  • Limit records per page in the horizontal looper?

    Might sound confusing, but I'm wondering if/how I can use the horizontal looper to show 30 records per page?
    For example, I have a photo thumbnail collection. I want to show 5 columns and 10 rows. Is there a way to get the looper to put a link to the 'next 50' so the user can see the next 50 thumbnails (starting at thumbnail 51 of course)?
    thanks

    I guessing here but there must be a bit of php code that you can edit that limits the number of records to be displayed instead of the default value of 10.

  • Displaying 10 records per page

    hi,
    somebody please help me.....
    i have a list of more than 20 records which i get
    from database and then i put it in session.
    i have to display 10 records per page only and
    on the same page i'd like to have links to page
    numbers to view next set of records.
    example is how googel displays its search results.
    ex. [ 1 2 3 4 5 ]
    THANKS A LOT!

    this can be done using the pagination technique.
    [email protected]

  • Help! Error when data merging multiple records per page

    I managed to get one record per page to display great.
    When I try to insert the text box into my master page and run to create multiple entries per page it gives me only one result:
    Any ideas on where I'm going wrong?

    Before merge
    After Merge

  • Data Merge Multiple Records Per Page Greyed Out

    I am using InDesign cs5.5. I am attempting to create a catalog with the data merge option. I am attempting to do a data merge from the Master Page.
    As you can see in the image, I have inserted my fields from the data source file. All images, original file, and data source file are in the same folder. I am inserting this info on the left sheet of the master file. When I select "Create Merged Document" the "select multiple records per page" is greyed out, however, there is plenty of room on the page for the 8 records I want it to show. See image below.
    After watching tutorials, reading, etc. I made sure that my document does not have facing pages. I deleted my "page 2" to avoid that conflict. I made sure that the placeholder "allows overwrite from the master". I also deleted my "cache"/settings" by doing "ctrl, alt, shift" when reopening the program. I read that it may be because the files need to be on the right hand sheet of the master, however, when I move my info to the right sheet, I get the following message.
    I have watched the tutorial videos, read the entire help section regarding data merge, and have correctly created my data source file. I've tried everything I've seen on the forums, apart from uninstalling and reinstalling. Please tell me that someone can help me figure this out as soon as possible. I'm in crunch time!
    Thanks a lot.

    Thanks Peter. That helped me un-grey the multiple records. I was able to complete a data merge, however, this is what happens.
    As you can see in this image, I have the margins setup the way I prefer, and the data merge previews correctly.
    Once I click to merge, this is the new document I get - it's only putting one record per page (even though the multiple records per page is selected), and it inserts this layout, not onto actual pages in indesign. It looks reall odd.
    And when you scroll down,
    Any suggestions on fixing this?
    Also, my InDesign freezes up when I try and do a merge of my entire sheet (182 items). The images above are when I tested doing just records 1-32.
    Thanks in advance and thanks for being so prompt yesterday. Very helpful.

  • Retrieving 10 records per page

    hi,
    i would like to have the source code for retrieving 10 records per page in jsp. I have a huge resultset and i would like to display 10 records per page.
    your help is highly appreciated.
    regards
    andrew

    hi,
    i would like to have the source code for retrieving 10
    records per page in jsp. I have a huge resultset and
    i would like to display 10 records per page.
    your help is highly appreciated.
    regards
    andrewHey Andrew, this code will help you out. Essentially the pseudocode to do what you want is below. Let's say your jsp is called dbresults.jsp
    Get total number of results from query result set
    If page is called with no index number of current record to display
    Display the records from 0 until a max of ten counting how many we display and keeping track of the current record number.
    end if
    else
    Display the records up to a max of ten from the index number we received in the query
    end else
    tempvar_a is the current number of records displayed minus 10 records and minus the amount of records displayed on this page.
    If tempvar > 0
    Display a previous button with the a href as dbresults.jsp?index=tempvar value
    end if
    else if current record index < total record count
    then there are more records to display so make a next button with an href of dbresults.jsp?index=value of current record number plus one
    end else
    One caveat is that getting the index number in the beginning of the JSP as:
    request.getParameter("VIEWEDROWS");
    will return a string that we have to convert to an int since you will be adding and comparing to this number so do:
    String TEMPVIEWEDROWS = request.getParameter("VIEWEDROWS");
    int VIEWEDROWS = 0;
    if (TEMPVIEWEDROWS != null) {
    VIEWEDROWS = Integer.parseInt(TEMPVIEWEDROWS);

  • 15 Records per page

    Hi XML Pub Team
    I am creating a reports using XML Publisher and RTF template. I want to show only 15 records per page and some text before and after records. Like customer information before records and term conditions after records at each page. I tried all combination but i could not get any right solution.
    If we think about customer statement, i have 5 pages statement for one customer and i want to show these contents on each page "first customer information then 15 records of transactions after that term condition/buckets for each page.
    Please let me know about solutions.
    Thanks
    Ravi

    It will work :)
    use xsl code
    <xsl:if xdofo:ctx="inblock" test="CONDITION_ELEMENT='TRUE'"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if>
    or
    <?if:position() mod 10 = 0 and position() != last()?>
    <xsl:attribute name="break-after" xdofo:ctx="incontext">page</xsl:attribute>
    <?end if?>

  • Display 20 records per page -- Pls help

    I am using sql query which returns some 1000 records, i have to display 20 records per page. I am using an enterprise bean that has finder method which returns arraylist of records. From this arraylist i am displaying in the JSP page. If after selection, if other user updates in the database, This won't reflect in the jsp page. How should i go about?

    oops,
    Implementing a Data Cache using Readers And Writers
    By Billy Newport, EJB Consultant
    http://www.theserverside.com/resources/article.jsp?l=Readers-Writers
    You may have come across a situation where you need to cache some data in your server. You then use this cache to service queries from incoming requests. You will also probably have a thread that listens for cache update events. This thread updates the cache in response to these events.
    This leads to a problem as it's unlikely that both the threads servicing requests and the update thread will be able to use your cache simultaeneously. You may be tempted to use an exclusive lock such as a Java synchronised block to handle this. This will work but it is probably the worst way that you can do this from a performance perspective. This articles shows how you can use reader writer locks to accomplish the same thing using a much more efficient technique.
    Reader writer locks.
    How to detect changes to the database?
    We can place triggers on a table. These triggers can call a stored procedure when-ever a record is updated/inserted or deleted. If we are caching the data in our application server then obviously when this happens we will want to know about it. We can split databases in to two categories when we look at implementing this. Oracle and everybody else.
    Oracle 8i
    Oracle is the most elegant. I'm assuming you're using Oracle 8i. Oracle 8i has a builtin JMS mechanism. We can define a queue in Oracle. Our pl/sql (or Java) stored procedure gets attached to the trigger. The stored procedure enqueues a message on the Oracle queue. The message would describe the event that happened. Our application servers will run a thread inside the application server VM that subscribe to and then listen to this queue. When a legacy system or an application server modifies the database then our triggers will call this stored procedure. It then enqueues the message. If the transaction is commited then the message is commited and sent to the listeners. If the transaction is rolled back then it is not commited and not sent. If the transaction is commited then all our application servers will receive the message. They can then use the message contents to see what happened and update the cache accordingly.
    Oracle 8 includes a full JVM. You could as an alternative use a Java stored procedure to multicast the event or send the event any way you choose. This isn't possible using Sybase or DB2 as they don't include the java.net package in the VM inside the database.
    If you're using an older version of Oracle then there is a way to send messages over an Oracle connection from the server to a client. Check your OCI manual for details. This message will be sent though regardless of the transaction outcome unlike the Oracle AQ solution.

  • No of records per page in report

    Hi all,
    I want to display information of no. of records per page + page number+ number of pages
    How to achieve it??
    Thanks and regards.

    Hi Use the below formula
    Use the below Formula
    = 50" - "Page()" - "NumberOfPages() Here i have written 50 rows so in order to restrict the page to have only 50 rows do  as below
    1. Create a variable like no of rows=floor(rowindex()/50)
    2 ) the formula using the floor and rowindex functions divided by 50 (50 is the rows per page that you want)
    3 ) put [no of rows] on your grid
    4 ) highlight that column and click on break
    5 ) click on the column you just did a break on, go to properties, and turn on "start on a new page"

  • InDesign mail merge:  changing the "record per page" function

    I am a new InDesign user and having a problem that I have spent several days trying to correct.  Briefly, we are “attempting” to create our product catalog by importing our QuickBooks data (as a csv or txt file).  
    I think I have isolated the problem to the “records per page” setup. 
    For whatever reason, when I open the .csv or .txt file (Window > Utility >Data Merge),
    From the Data Merge Panel, I am selecting the source file and the “Create Merged Document” box starts. 
    However, ID is defaulting to one record per page.  When I open the Multiple Record Layout tab I get “… optiion disabled because single record is selected…”
    I have spent several days reading every post I could find on this and I am going brain dead.  Can anyone help me here ?
    Thanks in advance for your time and attention.

    Hi Jeffrey,
    Thank you for taking the time to put the video capture together.  Unfortunately, it is hanging up about one-third of the way through...   
    What it does show is opening a clean sheet, opening Pages, and then opening Data Merge....
    As you can see on the two screen shots below, I don't even get the Data Merge option on my Pages dialog...?
    So, I'm wondering if I have a problem with my ID install or have some how corrupted a setup or default file.... Hmmmm
    Thanks again, appreciate your help.
    Message was edited by: Everwood Farm
    I re-installed ID - probably didn't need to do this - and deleted the cache and setup files which was the culprit.  Now works perfectly ....  go figure :-)

  • Data Merge, its is possible to display 5 records per page?

    I have no problem doing data merges.  They always seem to only show one record per page, but is there a way to be able to display more records per page?

    Read the help for a full explanation, then come back here with specific questions if you still have problems...
    Basically, you set up a single instance of field placeholders on you page, then select multiple records per page in the merge options. You cannot specify a number directly, but ID will reprduce as many records on the page as all elements will fit using the spacing settings you set up, so you might want to add an empty frame the size required to get your five instances with zero spacing and group it with the field tags.

  • IN XML PUBLISHER REPORT WHICH SHOWS 5 RECORDS PER PAGE REG:-

    {color:#0000ff}Dear All,
    Conditionally, i want my XML Report has to be Display only 5 Records per Page..
    If there are hundreds of records in XML file.
    Please, could u help me out..
    Waiting for ur reply..
    Regards,
    Sarfraz.
    {color}

    For 11i, pl see the XML Publisher User Guide at http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html on how to achieve this
    HTH
    Srini

  • I want to diaplay my records from the databasewith 10 records per page. i l

    i want to diaplay my records from the databasewith 10 records per page. i learned that it can be done through pagination . Please can anyone there help me and give me the code of how to page my records in my jsp pages
    I have small code ,but its not working....
    below is the code....
    public ResultSet codeResult(int i){
    if(dataSource!= null){
         try {
                             con=dataSource.getConnection();
         stmt=con.createStatement (ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
         int maxRows=stmt.getMaxRows();
         System.out.println("the maxRows is:"+maxRows);
         System.out.println("the I value is:"+i);
         if((i < 0) || (i > maxRows)){
              i=0;
         stmt.setFetchSize(i);
         long t = System.currentTimeMillis();
         rs=stmt.executeQuery("select asc_code,countrycode,asc_name,asc_address1,asc_address2,asc_city,asc_country,asc_region,asc_contact_person,asc_contact_no,asc_email_id,asc_fax_no,nso_incharge,nso_email,ar_ap_code from asc_master order by asc_code asc");
    but,its giving all records...
    any one help me on this........
    Thank you,
    D.Nagireddy.                    
                        } catch (SQLException e) {
                             e.printStackTrace();
              return rs;
              }

    hey, here my code for paging. hope it helps...
         public void DueRecordInfo(int page,int MAX_PER_PAGE)
              con = new DBConnection().getConnection();
             try
                     Statement stmt = con.createStatement();
                     String sqlcount = "SELECT COUNT(*) FROM INFO WHERE TO_DATE(DATEUPDATED,'Month DD, YYYY') < ADD_MONTHS(SYSDATE,-6) AND OBSOLETE LIKE 'No'";
                     ResultSet rscount = stmt.executeQuery(sqlcount);     
                    rscount.next();
                    total_row_count = rscount.getInt(1);
                  lowerbound = (page * MAX_PER_PAGE - (MAX_PER_PAGE))+1;
                  upperbound = lowerbound - 1 + MAX_PER_PAGE;
                  String sql = "Select * from "+
                                    "(SELECT row_number() over(ORDER BY TO_DATE(DATEUPDATED,'Month DD, YYYY') DESC) AS RN,ID,SPECNO,REVISEDNO,DATEREVISED,TITLE,ORIGINATOR,DCBNUMBER,DCBLOCATION,OBSOLETE,DATEOBSOLETE,WORDFILE,PDFFILE,DATEUPDATED FROM INFO WHERE TO_DATE(DATEUPDATED,'Month DD, YYYY') < ADD_MONTHS(SYSDATE,-6) AND OBSOLETE LIKE 'No') " +
                                    "WHERE RN BETWEEN "+ lowerbound + " AND " +upperbound;
                   ResultSet rs = stmt.executeQuery(sql);
                  while (rs.next())
                         id.add(num, rs.getString("ID"));
                         specno.add(num, rs.getString("SPECNO"));
                         revisedno.add(num, rs.getString("REVISEDNO"));
                       daterevised.add(num, rs.getString("DATEREVISED"));
                       title.add(num, rs.getString("TITLE"));
                       originator.add(num, rs.getString("ORIGINATOR"));
                       dcbnumber.add(num, rs.getString("DCBNUMBER"));
                       dcblocation.add(num, rs.getString("DCBLOCATION"));
                       obsolete.add(num, rs.getString("OBSOLETE"));
                       dateobsolete.add(num, rs.getString("DATEOBSOLETE"));
                       wordfile.add(num, rs.getString("WORDFILE"));
                       pdffile.add(num, rs.getString("PDFFILE"));
                       dateupdated.add(num, rs.getString("DATEUPDATED"));
                         num++;
                   con.close();
                   rscount.close();
                   rs.close();
                   stmt.close();
             }

  • Limit the number of records per page in webi

    Hello All,
    How do i limit the number of records per page in webi?
    i was asked to have not more than 20 records per page.
    In " NUmber of Vertical records per page"(Quick display mode) the default value was 100, i am trying to set it to 20 ...but its not updating....its still taking 100.
    I am on BO XI 3.1 Sp2 fix pack 3
    Please let me know a way to accomplish this.Any inputs appreciated
    Thanks

    It can be done as follows:
    1. create a variable at report level as:
            v Test = Floor(RowIndex()/20)
    2. Added this variable in the Block as a new column.
    3. Select the v Test column, Right Click and set as section (also you can apply break).
    4. Go to structure mode select section\break and go to properties tab and select the property "Start on new page".
    Regards,
    Rohit

Maybe you are looking for

  • I am unable to download my Photoshop Extended product!

    I have registered my abobe photoshop extended serial number but I am unable to download it to my computer. Is there a download link? How do I download my photoshop extended onto my laptop?

  • How to Automate Compressing PDF files in a Watched Directory

    I want to automatically compress PDF files as they get placed into a watched directory. I would like the compressed files placed in another directory and have the original file either deleted or place in another directory. If Acrobat Pro X can do thi

  • InputSteam HELP......

    Hi, THis is my problem.... I have BLOB field in Database that has tiff image... I am getting that as an InputStream from database using ResultSet.getBinaryStream(); How can i convert that InputStream to a File or is there another way to store the blo

  • Help with installation problems for PE 12; error while installing Shared Technologies. Suggestions?

    Help. I've tried to install PE12 multiple times without success due to shared technology installation failure. The install gets right to the end and then fails when trying to launch and uninstalls. Per the help suggestions, I downloaded the ASA, whic

  • Help to go from AHCI (1 SSD) to RAID (2 SSD)

    Hi guys I'm having trouble to create a RAID volume AND install Windows 8.1 on it. I can easily create the RAID volumen, yes, but I don't know how to install the OS. I do not have installation DVD's from MSI or ISO, only the hidden recovery partition