Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28
Post Author: tadj188#
CA Forum: Formula
Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
Background:
1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using subreports. A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report with their respective detail lines). I had multiple subreports and each subreport became one union.
Created and tested, already:
1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
Issue:
1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
Other Ideas Appreciated:
1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
Thank you.
Tadj
export all image of each page try like this
var myDoc = app.activeDocument;
var myFolder = myDoc.filePath;
var myImage = myDoc.allGraphics;
for (var i=0; myImage.length>i; i++){
app.select(myImage[i]);
var MyImageNmae = myImage[i].itemLink.name;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
alert(myImage[i].itemLink.name)
Similar Messages
-
What's def of field group and intermediate data set
what's def of field group and intermediate data set
The drawing panel cannot draw the figures, what's
wrong?You can't have written this much code and then suddenly detected it doesn't work at all. You must now restart from the point where you had a working program. Then you add code is small increments and see to it that it works in each step and you understand why it works. This method is called stepwise refinement and it does wonders. -
How to header and item data of sales order using bapi interface
hi friends,
i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
i need bapi function modules for header adn item data and brief explation on that , how to pass importing and tables parameters to get exact output .
regards
geetha.Use : BAPI_SALESORDER_CREATEFROMDAT2
Sales order: Create Sales Order
Functionality
You can use this method to create sales orders.
You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
Notes
1. Mandatory entries:
ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG Sales organization
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party
PARTN_NUMB Customer number
ORDER_ITEMS_IN..: MATERIAL Material number
2. Ship-to party:
If no ship-to party is entered, use the following: Ship-to party =
sold-to party.
3. Commit control:
The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
4. German key words:
The following key words must be entered in German, independantly of
the logon language:
DOC_TYPE Sales document type, for example: TA for standard order
PARTN_ROLE Partner role, for example: WE for ship-to party
Further information
You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
Parameters
SALESDOCUMENTIN
ORDER_HEADER_IN
ORDER_HEADER_INX
SENDER
BINARY_RELATIONSHIPTYPE
INT_NUMBER_ASSIGNMENT
BEHAVE_WHEN_ERROR
LOGIC_SWITCH
TESTRUN
CONVERT
SALESDOCUMENT
RETURN
ORDER_ITEMS_IN
ORDER_ITEMS_INX
ORDER_PARTNERS
ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX
ORDER_CFGS_REF
ORDER_CFGS_INST
ORDER_CFGS_PART_OF
ORDER_CFGS_VALUE
ORDER_CFGS_BLOB
ORDER_CFGS_VK
ORDER_CFGS_REFINST
ORDER_CCARD
ORDER_TEXT
ORDER_KEYS
EXTENSIONIN
PARTNERADDRESSES
Exceptions
Function Group
2032 -
I have just bought a Macbook Pro and sync data from my old version onto the new one...However when I tried opening the mail client...Message window does not appear. The old Macbook Pro I was using used Snow Leopard. Now with the new it is a Lion. Toruble now when I click onto new message window I have the spinning icon which show it is trying to load. However it fails and Im left with having to Force Quit it. How can I resolve this problem
Tunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
Quick answer if you use iTunes default preferences settings: Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive. Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.
Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later. Discontinued items not available. For items not included in the iCloud list (e.g., ringtones), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid. Apple notes it is your responsibility to back up your purchases.
Select the store on the left side of iTunes.
Click on Purchased on the right side under Quick Links.
You can re-download your available previous purchases. -
I need to back up and sync multiple iPhones to a single iMac. Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others. How can I do this without getting all of the contacts, etc. mixed? Tnx
This might help: http://support.apple.com/kb/HT1495.
-
How can I create a matrix question? Specifically, I need a question in table format that allows each respondent to list a number of events and then data for each event (date, location, number of participants, topics covered, etc.
Hi,
Sorry, we do not support a matrix-question field. Please try the multilines text field (where your participant can enter multiple lines in the input text box) and see if it works for you.
Thanks,
Lucia -
I do not want to have to choose these two controls or tools in InDesign each time I open a new page or doc. How can I make them open automatically?
With nothing open, try pressing the tab key, and/or resetting the workspace.
-
How to select header group with detailed data in one SQL
Dear,
I would like to have a little help from you. My goal is to create a view where data must be in appropriate format. In this format i would like to have for each group one header.
I have 3 tables which they ar connected to each other (representing hierachical data where financial plan breaks across different groups).
CRM_PLAN
CRM_PLAN_ID
DATE
AMOUNT
CRM_PLAN_PE
CRM_PLAN_PE_ID
TITLE
AMOUNT
CRM_PLAN_ID (ref key to CRM_PLAN.CRM_PLAN_ID)
CRM_PLAN_MONTH
CRM_PLAN_MONTH_ID
YEAR
MONTH
AMOUNT
CRM_PLAN_PE_ID (foreign key to CRM_PLAN_PE.CRM_PLAN_PE_ID)
Data looks like:
CRM_PLAN
CRM_PLAN_ID | DATE | AMOUNT
1 | 01.01.2012 | 500
2 | 01.02.2012 | 200
CRM_PLAN_PE
CRM_PLAN_PE_ID |TITLE | AMOUNT | CRM_PLAN_ID
1 | Organization 1 |100 | 1
2 | Organization 2 |400 | 1
3 | Organization 3 |200 | 2
CRM_PLAN_MONTH
CRM_PLAN_MONTH_ID | YEAR | MONTH | AMOUNT | CRM_PLAN_PE_ID
1 | 2012| 1 | 60 |1
2 | 2012| 2 | 40 |1
3 | 2012| 1 | 350 |2
4 | 2012| 2 | 50 |2
5 | 2012| 1 | 200 |3
I would like view which would return data like:
MONTH | AMOUNT
Organization 1 |null
1 | 60
2 | 40
Organization 2 | null
1 | 350
2 | 50
Organization 3 | null
1 | 200
The main question is hot to write an sql as source for view to insert before each group a row with title column value from table CRM_PLAN_PE. Is that even possible? Maybe you could suggest me some other method.
View will be used in oracle form where will be possible to edit data - I will arrange that through insted of trigger.
Regards,
Igor
Edited by: user5528050 on 29.11.2012 2:23
Edited by: user5528050 on 29.11.2012 2:24
Edited by: user5528050 on 29.11.2012 2:25Hi, Igor,
user5528050 wrote:
... I would like view which would return data like:
MONTH | AMOUNT
Organization 1 |null
1 | 60
2 | 40
Organization 2 | null
1 | 350
2 | 50
Organization 3 | null
1 | 200
The main question is hot to write an sql as source for view to insert before each group a row with title column value from table CRM_PLAN_PE. Is that even possible? Maybe you could suggest me some other method. So, you want to have 2 different kinds of rows in the output:
(1) "parent" or "master" rows containing data from crm_plan_pe, such as
MONTH AMOUNT
============== ======
Organization 1(2) "child" or "detail" rows containing data from crm_plan_month, such as
MONTH AMOUNT
============== ======
1 60Sure, you can do that.
One way is to do a UNION of 2 separate queries: (1) to generate just the parent rows, (2) to generate just the child rows.
You could also join the 2 tables and use GROUP BY GROUPING SETS. The super-aggregate rows would be the parent rows.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved (it looks like crm_plan is not involved in this problem), and also post the results you want from that data. You need to post this whether or not you want SQL code in reply. The people who want to help you want to provide good answers, and that means they want to re-create the probelm and try their ideas.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ {message:id=9360002} -
I want to use grouped data from a query column. At the
moment I can output and group the data using cfifs dependant
on months and years. How can I find recordcounts and use the
variables #doct07# #dnov07# #ddec07# #djan08# #dfeb08# #dmar08# so
they keep the values in the cfoutput query? TIA
<cfquery name="qrysales">
SELECT clientinfo.visit
FROM clientinfo
order by clientinfo.visit
</cfquery>
<cfoutput query="qrysales">
<cfset datesbymonth=(month(qrysales.visit))>
<!--- 2007 entries --->
<cfif qrysales.visit contains "2007">
<cfif datesbymonth eq 10>
<cfset doct07=#datesbymonth#>
#doct07#
<cfelseif datesbymonth eq 11>
<cfset dnov07=#datesbymonth#>
#dnov07#
<cfelseif datesbymonth eq 12>
<cfset ddec07=#datesbymonth#>
#ddec07#</cfif>
<!--- 2008 entries --->
<cfelseif qrysales.visit contains "2008">
<cfif datesbymonth eq 1>
<cfset djan08=#datesbymonth#>
#djan08#
<cfelseif datesbymonth eq 2>
<cfset dfeb08=#datesbymonth#>
#dfeb08#
<cfelseif datesbymonth eq 3>
<cfset dmar08=#datesbymonth#>
#dmar08#
</cfif>
</cfif>
</cfoutput>See attached screen shot:
To understand how the optional grouping works look at the attached
example. I put some print lines on two charts that write out to a file.
You will need to change the location. In that example my data comes
in like:
sourcedata[0][0] = 10;
sourcedata[0][1] = "Chris Kwai";
sourcedata[0][2] = 232;
sourcedata[1][0] = 10;
sourcedata[1][1] = "Ice Bella";
sourcedata[1][2] = 291;
sourcedata[2][0] = 10;
sourcedata[2][1] = "Nola Dicci";
sourcedata[2][2] = 567;
sourcedata[3][0] = 11;
sourcedata[3][1] = "Chris Kwai";
sourcedata[3][2] = 312;
sourcedata[4][0] = 11;
sourcedata[4][1] = "Ice Bella";
sourcedata[4][2] = 614;
sourcedata[5][0] = 11;
sourcedata[5][1] = "Nola Dicci";
sourcedata[5][2] = 212;
So for 3 users I have 10 and 11 value. If I do not optionally group my
chart (But I group sum on x-axis) gets two sets of data one for the
category and one for the summed values for each user.
Series Data <undefined>
Chris Kwai
Ice Bella
Nola Dicci
Series Data <undefined>
544.0
905.0
779.0
If I use optional grouping I get three sets of data. One for the
category and then one for each optional group (ie 10 and 11):
Series Data <undefined>
Chris Kwai
Ice Bella
Nola Dicci
Series Data for month 10
232.0
291.0
567.0
Series Data for month 11
312.0
614.0
212.0
This will then draw two bars (10 and 11) for each user.
Does this make sense?
Jason
On 10/26/2011 11:12 AM, Kevin Williams wrote:
> Jason,
>
> Thank you for the quick response! Any chance you can send me a screen
> shot of the group sort icon? I'm sorry, but I for the life of me, I
> don't see it (I'm sure it's staring me straight in the face!).
>
> Also, I'm apparently misunderstanding the optional grouping field--I
> there any documentation you can point me to on what it does (teach me to
> fish)? -
Can Discoverer drill down include summary and details?
Let's say I have a set of bonds in different accounts.
Each bond has an account, product_type, rating_group and book_value.
I show an initial report with account and sum(book_value).
then I want to "Drill to related" to see the sum of book value by rating group.
When I do this, I no longer have the total book value for the whole account. I just have it for each rating group within the account. I want to be able to still see the sum of the book value for all rating groups and also see how it's broken out by rating group.
For example:
I start with this:
Account | Book Value
C-BASS | $1M
Then I drill to related -> "Rating Group" and it looks like this:
Account | Rating Group | Book Value
C-BASS | AAA | $0.5M
C-BASS | AA | $0.25M
C-BASS | A | $0.25M
I want it to look like this (or something like this):
Account | Rating Group | Book Value
C-BASS | All | $1M
C-BASS | AAA | $0.5M
C-BASS | AA | $0.25M
C-BASS | A | $0.25MHi the patch I applied was 5672969
-
Advice pls. re. Users and Groups and shared Data
Before I get to concrete questions, I'd like to explain what I have in mind and would welcome suggestions; ie. is it reasonable or have I overlooked something easier or any pitfalls?
Basically, I've got 3 user accounts (not counting FTP, MySQL, etc) on my Powerbook, which are all mine, just represent different "personas" (private, work, music composition). I've had it like that for years and am perfectly happy. Eg. when I'm working I don't see a desktop cluttered with the latest junk I've downloaded and when I've got my music making hat on I open up iTunes and see my sample collection. So far so good!
But it does have some drawbacks of course, when it comes to sharing data accross accounts (email, contacts, calendar, passwords, etc). For most there's an individual and easy enough solution but I'd really like one single solution and not have to keep doing difference maintenance tasks on different files in different accounts. And just to further compound the issue, I'd really like to have all this "shared data" in one central location for easy sync with my XP box.
My idea is thus; a fourth virtual user (something like "me"), which doesn't appear in the login/user-switching menu, but whose home folder is simply a repository for all this shared stuff I'm talking about. Syncing with XP whould then be a breeze!
I'd then use aliases and/or symbolic links as appropriate, from my usual three accounts, for example, to a single Thunderbird profile or Calendars folder or whatever.
Finally, currently I've got all user accounts set up as admin accounts, mostly so they can all access each other's data. I don't like this though, from a security point of view and would prefer to assign them all to a (new) group "virtual-me", adding each user into this group.
Does all this sound reasonable?
Cheers,
Rich
BeigeG3 400/256/40 OS921, PismoG3 400/768/80 Mac OS X (10.3.9) Atari 1040 STe, 4Mb, 100Mb HD, Zip 100, 4x CDhave sorted it now, no need for a "virtual" user, just added a new group and shoved all the files I want to share accross accounts into a folder in /Users... as i suspected, I was thinking far too complicatedly
-
MIN and MAX date for each range
Hi folks,
I´ve got the following problem:
Given a table
create table t as select 'AT' OM_LANDTEXT, '12345' OM,
to_date('01-JAN-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('02-JAN-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('03-JAN-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('05-JAN-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('06-JAN-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('01-FEB-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('02-FEB-2004', 'DD-MON-YYYY') datum from dual
union
select 'AT' OM, '12345' OM_LANDTEXT,
to_date('03-FEB-2004', 'DD-MON-YYYY') datum from dual;
SQL> select * from t;
OM OM DATUM
AT 12345 01-JAN-04
AT 12345 02-JAN-04
AT 12345 03-JAN-04
AT 12345 05-JAN-04
AT 12345 06-JAN-04
AT 12345 01-FEB-04
AT 12345 02-FEB-04
AT 12345 03-FEB-04
8 rows selected.I need to have the first and last date for om and om_landtext for each date range (where "date range" means a set of consecutive dates with no gaps).
So the ouput should be
OM OM_LANDTEXT DATVON DATBIS
AT 12345 01-JAN-04 03-JAN-04
AT 12345 05-JAN-04 06-JAN-04
AT 12345 01-FEB-04 03-FEB-04Any ideas...?
Thanks for your help!
Best regards,
Gerd
Message was edited by: Gerd
Sorry, I forgot to mention this should be done in pure SQL if possible.
[email protected]This is the plodding, methodical approach I've always taken, which leaves me somewhat in awe of Rod West's solution.
SELECT om_landtext,
om,
MIN(datum) AS min_datum,
MAX(datum) AS max_datum
FROM (
SELECT om_landtext,
om,
datum,
prev_datum,
COUNT(
CASE
WHEN prev_datum IS NULL THEN 'x'
WHEN prev_datum != datum-1 THEN 'x'
ELSE NULL
END
) OVER (PARTITION BY om_landtext, om ORDER BY datum) AS grp
FROM (
SELECT om_landtext,
om,
datum,
LAG(datum) OVER (PARTITION BY om_landtext, om ORDER BY datum) AS prev_datum
FROM t
GROUP BY
om_landtext,
om,
grp;null -
Data gets truncated when flows on the new page ?
I have data from about 5 tables displayed in this report.
There is one row which fetches all the required data and displayed there. This is a repeating frame in a group. The group is then again on a repeating frame which is on a group.
At the end of this in the overall group frame, there is a row which has summary columns.
the problem: When the rows of the innermost repeating frame are a lot in number, such that they exceed the page and overflow to the next page, the extra records do not get displayed. they are truncated and the next record starts on the new page. if i fiddle with the properties of the frames. the other scenario i get is, now i get the same number of rows as before, only, this time the summary row is also displayed at the end of this page. and like before a new record starts on the new page.
I tried many possible comninations with the properties, but i cannot get the data to flow over to the next page.
Any comments as to why this is happening ?Hi,
It does sound like it's probably related to your print conditions. If you have not already had a look, I would highly recommend looking at the restrictions in the on-line help for the Print Object On property.
It's difficult to say without seeing the report itself. What it sounds like to me is that a detail repeating frame has been set to All Pages. Let's say its master repeating frame is the Base Printing Object for the detail repeating frame. If the master only has a couple of lines of data to itself (ie the department name and id or location) then it likely does not have enough data to go to an additional logical page. All Pages for the detail repeating frame means that it will print on and only on All logical pages that the Base Printing Object will appear on. Therefore, as it would only appear on one page, the detail will get truncated to just that one page.
I suspect this is likely to be what it going on here, however, without the actual report, it will be difficult to tell exactly which object is causing the problem. If after reading the doc on this you still have trouble figuring out which frame is causing the problem (it may be repeating or a group frame) then I'd suggest contacting Oracle Support for further hands on assistance.
Hope that helps,
Toby -
Adding Form pages via JS and templates. Stop text from copying to the new page
Hello Community,
Over the past few days I've been getting a crash course in Adobe acrobat, and JavaScript. One of our clients asked us to make a PDF form with fillable fields, and a button that will make a new copy of the form.
I have the text fields, template, and javascript for the button to load the template.
My problem is that text in the fields on the first page is being copied to the additional pages when they are made.
I have been doing a ton of research and found a lot of answerrs talking about having the fields renamed. I have included the bRename part to my JS, and the text fields show that they are a differnet name, but it still pulls the data from the first page.
here is the script I am using. I am also runing Acrobat X standard.
var a = this.getTemplate("New Page");
a.spawn({bRename: true});
Any suggestions would be a huge help. I can provide any additional info needed.You can reset the fields on the newly created page. All of the fields on the page will have the prefix "Pn" where n is the page number of the newly created page. Since your code adds the page at the end, the code to reset the fields that you can use after the code that spawns the template can be:
resetForm(["P" + (numPages - 1)]); -
I tried re-installing firefox with no luck. no matter what i get this:
http://i237.photobucket.com/albums/ff136/BrittRyuu/alliget.png
How can i fix this?Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
>In Firefox 4 Safe mode also disables plugins (Tools > Add-ons > Plugins) and hardware acceleration (Tools > Options > Advanced > General)
Maybe you are looking for
-
Getting null pointer exception when connecting to 10.2.0.4
Hi, We just had some of our Oracle databases upgraded to 10.2.0.4 from 10.2.0.3. Now, I get a 'null' response with a Java stack trace. I can work with the 10.2.0.3 databases fine, it's the 10.2.0.4 databases that error when trying to open the connect
-
FCC error :java.lang.Exception: Column value ' ' too long
Hi all, I am using FCC on receiving File adapter... While executing i am getting this error in CC monitor com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML
-
What is the best app for creating and signing documents on the iPad?
I am a home organizer and I am typically in a clients home when I need to have them sign a contract and I want to become a 'paperless' organizer. I need to take my service agreement, enter their information, have them sign the document and then emai
-
Safari grinds to a halt downloading a large jpeg
I have been trying to download a Wikipedia Picture-of-the-Day 20MB jpeg from the Wiki website. Lovely panorama of Keswick in the UK Lake District. I receive about 10% of it but Safari then stops and I watch with some trepidation as Safari's memory
-
Sqlplus_exec_template.sql Part2
Ok I was able to resolve my first issue with this, which was not having the correct role. It turns out, instead of using runtime user to run this, I needed to run this script using runtime repository admin user. Now, I'm running into another issue. T