# Subreport records on page one, remainder on page 2...
I have several subreports that have a limited amount of space to populate. I need to have a SET amount of records from each subreport print on page 1 of the main report, then IF the database contains MORE records than the SET amount specified, I need these remaining records to print on page 2 of the main report.
Please advise.
Thanks!
Can you provide a bit more detail on the shared variable?
Also, count([row_id]) > # didn't work to truncate any surplus records. Instead I used [row_id] > #. Then I created the following:
whileprintingrecords;
shared booleanvar Records;
Count([row_id]) < #
Not sure if this is correct...Basically I'm not clear on how to declare the variable and pass it to the main report for printing purposes.
Similar Messages
-
HELP I am doing a Data Merge and It is only giving me one record per page!
I really need help here. I am doing a data merge and have selected the options for doing multiple records per page but instead it is merging everything to it's own page. Can someone tell me what I am missing?
Why do you say you can't do a multiple record merge to a table?
I've never had any trouble putting placeholders into a table. It's the way I do most of the datamerge that I work with.
My mistake… I was confused with the script, and I must confess I had never tried (until now) to use tables as placeholders, but it works.
My apologies for this uncorrect answer -
Several subreports per report page
Post Author: tconrad
CA Forum: General
I have an extended check stub that includes a subreport. Since there may be several records generated for that subreport, I only want one record per extended check stub. How can I do this?Post Author: tconrad
CA Forum: General
Found it interesting and helpful for other issues. Let me try to explain my issue better.
The report is an extended stub to be faxed/emailed to an ACH vendor. The report has the vendor name, payment date, and check number. The subreport pulls the invoices being paid for the vendor. Each vendor needs a seperate page.
Report Format: Report Header, Page Header contains my Co name, Details contains vendor info above and the subreport, Report Footer is empty, and Page footer contains my Co. address and contact info.
Subreport format: Report header contains text items only, Group Header (group is payment amount), Details has invoice number, amount, etc from database, Group footer is suppressed, Report footer has totals.
Thanks so much for your quick response. -
Is it possible to disable the 'edit layout' link on the record detail page
Is it possible to disable the 'edit layout' link on the record detail page? Not the homepages, I know there is a switch for that, but I thought there was one for the detail pages?
I want to disable this as I dont want users saving their own layouts, they must stick to the related sections defined in the default layout. The problem is that if they are to have access to certain related lists when an opportunity is of a certain type but NOT other types. If they have saved the layout (using the 'Edit Layout' link), and change the record type, they will see related sections that have been set to 'Not available' in the default layout (ie step 4) for that 'type'.Robbo, at this time it not possible to disable the Edit Layout on the record detail page.
-
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();
} -
Need to update a record on page load. How? (ASP/VBScript)
The standard Update Record behavior requires a form on the page, plus a recordset to identify the value to be updated. In my scenario, the value for the record to be updated is already in the URL as the ID. I just don't know how to write it myself and Dreamweaver won't do this.
The page I want to do this on is a record detail page, so there is already a record ID already present in the querystring. The record is new until a user views it, and what I need is something that just writes a simple value to one field in the table for the record being viewed. This is it in a nutshell:
Using the value from the ID in the URL querystring, update the "viewed" field in a specific table with the value of "y".
This would be the first operation as the page loads and then the page would load and show the data that it already does.
I'd be happy with raw code is someone is generous enough to provide that, or perhaps some instructional help on reverse engineering the standard update record code generated by Dreamweaver. Or, if you know of any extensions designed to do this - I'd be interested in that too!
My app I'm working on is in ASP/vbscript.
Subject line edited by moderator to indicate server modelGood point! I wasn't thinking about how that would make the app vulnerable to sql injection.
The function I want to perform is similar to how an email changes from unread to read when you view it. I simple want the records being viewed to take on the status of being read or "viewed". Perhaps I'm going about this in the wrong way, but I've been planning to use a database field as the indicator of whether a record has a viewed status or not. Null value is new, and a value of "y" (yes) meaning the value is viewed/read.
If you have a better recommendation, I'm all ears. -
Setting max record per page property at runtime (very urgent)
We need to display 7 record for first page and 25 for other pages...
we tried a reperating frame max record per page property is a report level property. So it cannot change for pages.
Then We try other way..
we seperated our query to the different frame to do these
But we need to summaries some field at page level and
reset at page has fallowing restriction
"A Reset At of Page will not work for reports that have multiple repeating frames associated with a group that is involved in the summary. One common case of this is a matrix report. As a result, matrix reports cannot have page-level summaries."
So all the ways we tried failed.
How can we do this ... it is very urgent. (we can use any version of report.)
Thanks for your help...repost
-
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: 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.
Christhe 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 -
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. -
How to Control with Maximum Record per Page
Hi Every one
how can I control with maximum record per page with parameter sending from Form
ex.
if I set parameter with value=15 the report will run 15 rows per page ?
Can anyone help me Please ASAP ?
ThankxPLay around with SRW.SETMAXROW , from memory that should do the trick.
Cheers.
N. -
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
andrewhi,
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); -
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
RaviIt 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?> -
How to restrict no of records per page in script
Hi Experts,
I am working on SAP Scripts and I am having one problem I need to restrict 15 records per page.
Please help me out.
LOOP AT IT_ITAB
Call function WRITE_FORM
ENDLOOP.
Is there any ways to restrict in loop?
Thanks in advance
BasuInside the loop,
after the write_form give the following if condition
loop at itab.
...write_form...
w_count = sy-tabix MOD 15.
if w_count eq 0.
CALL FUNCITON 'control_form'
COMMAND = 'NEW-PAGE' .
endif.
endloop.
Regards
Sharath -
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 :-)
Maybe you are looking for
-
Window doesn't close wheh Call Library Function Node set to Run in Any Thread
This is a problem regarding Call Library Function Nodes running in the UI thread or any thread. I have a camera which has its own API supplied as a dll. I have created a set of VI wrappers which each call a function in the dll through a Call Library
-
Boot Camp, Aluminium Bluetooth Keyboard & Mighty Mouse not seen by Windows
I recently installed bootcamp (win xp pro sp2), and am unable to get windows to recognise my bluetooth keyboard and mouse. they work fine in OSX, and i know that the bluetooth drivers are good in windows because i can connect to my phone. I think the
-
Dear firefox i'm having problem with my aurora it flicker all the time please help me
flicker on my aurora
-
I Really want to put some music onto my iPad. I hate having to use my MP3 player while I am typing things on my iPad. I want to be able to do both on the same device. Some years ago, I put iTunes on to a Windows 7 computer and caused the computer to
-
Multiple schema, but instance doc does not have namespace
Is it possible to successfully validate an instance document without namespaces against multiple schema with different namespaces? example: this is the normal xml which is valid with all the namespace: <MyRoot dateTime="040112061834" instanceIdentifi