I'm attempting to create a Crystal Report which will report on "jobs" which don't have a "document" with a given phrase in the title.
The relevant tables have the following structure:
Job Doc_Job Doc_VO
l_job_id -> l_job_id s_name
l_doc_job_id -> l_doc_job_id
Where "Job" is a unique file (one per client), but there are multiple documents for each job (each contained within a "Doc_VO" table). For instance, we may have a documents for a client named:
Variation 1
Variation 2
Outstanding Variation 3
Variation 4
Outstanding Variation 5
Other Variation 6
I'd like to list all jobs which have a document without "Outstanding" in the title.
I know how to include/exclude all unique documents with "Outstanding" in their title (variations of the below), but can't figure out how to make it so that only unique "Jobs" which have linked documents meeting my criteria are shown.
not({Doc_VO.s_name} like "*Outstanding*")
Using the above line can be used to produce a report like:
JOB DOCUMENT OTHER INFO
Job 1 Variation 2 .....
Job 1 Other Variation 4 .....
Job 2 Variation 1 .....
Job 2 Misc Variation 2 .....
Job 2 Variation 6 .....
Job 3 Other Variation 3 .....
Whereas I'm after:
JOB OTHER INFO
Job 1 .....
Job 2 .....
Job 3 .....
Sorry if the above is unclear, I've only been working with Crystal & SQL for a few months. Please let me know if anything needs clarification or further explanation. Cheers.
Looks like you are getting multiple rows based on the Document column. If you do not need that in your results try removing the column.
Related
I have read this article
How to properly group records when executing a <#list>
about Grouping. I do not understand the last word that we can use the grouping at 2 or 3 levels.
How can I achieve 2 or 3 level grouping in Advance PDF in netsuite using Freemarker?
Here is example
Project A
Project Task 1 Total Qty Total Hrs
Project Task 2 Total Qty Total Hrs
Project B
Project Task 1
Project C
Project Task 2
Project Task 3
A project has task and same task can be part of the parent project. Can someone help me grouping and then printing respective details
Or how to filter by one group, print its detail then go to next group etc.
There is no direct approach to do this, you can first form your data in json format the result you want to show, save that json on a custom field and then you can read that json in adv pdf template.
My first question, so please excuse any mistakes.
We have internal ID numbers for product that we are selling, composed of: [SalesOrder_Num]/[Num].
For each Id No. we offer a Test Certificate to the client. Test Certificate defines the suitable age of product, along with its technical specification. Multiple items (20-30) on sales order can have same technical specification, but different ID number. ID Number also becomes Certificate Number.
We need to print/pdf these test certificates using Crystal Reports. There is a custom made Certificate Window on which technical specs are manually typed, along with sales order number. We also fill in number of Certificates (= [Num]).
What we now want is: Print [Num] of records/PDF with Certificate Number incrementally increasing on each PDF - [SalesOrder_Num]/1, [SalesOrder_Num]/2, ... ... ,[SalesOrder_Num]/[Num-1], [SalesOrder_Num]/[Num].
How is it possible?
Best Regards,
K
Create a REPEATER table with a single column (How_Many) that looks like this:
How_Many
1
2
3
4
5
6
etc..
Now, in your report, add the Repeater Table and add a join condition of:
Order.quantity >= Repeater.How_Many
If the ">=" join option is not available, remove the join to the REPEATER table and create this condition in the Record Selection condition:
{Order.quantity} >= {Repeater.How_Many}
This would cause each order to be duplicated as many times as the value of {Order.quantity}.
If you are restricted to using an equal join, you can also modify the repeater table to include N records for each quantity N:
1
2
2
3
3
3
...
This would cause each order to be duplicated as many times as the value of {Order.quantity}.
If you need to print "N of M" modify the repeater table to look like this:
N M
1 1
2 1
2 2
3 1
3 2
3 3
and use an equal join to the N column.
An alternative solution is to use a 3rd-party Crystal tool. At least one of the 3rd-party Crystal Reports viewers listed here provides the functionality you are seeking (without needing to add a Repeater table to your database).
I use two different excel files in one report. The columns of the excel files are stored in fields. I want to show the columns side-by-side:
Excel Data 1:
ID Name
1 Blub
2 Blub2
Excel Data 2:
ID Income
10 10134
20 134343
So the result should look like this:
ID Name ID Income
1 Blub 10 10134
2 Blub2 20 134343
I tried it with two different Detail sections (I have to use detail sections) and activate the overlaying of underneath sections for both detail sections.
The result looks like:
ID Name ID Income
1 Blub
2 Blub2
10 ....
20 ....
That is because we use a function model of BW that will give us the data back like this:
ExcelFile ID Name Income
1 1 Blub
1 2 Blub2
2 10 10134
2 20 134343
I can not use sub reports and cannot use single fields for each value because there are 100 cells in there...
Does anyone knows a solution?
You have to split your detail row vertically to do that. Something similar already solved by me here. Be careful when you width of data size.
If it doesn't help you enough, feel free to ask with additional questions.
I tried it:
Data looked like this:
After that it looked like this:
I did a Grouping on the names "GS_FC...." so there are two groups in the report. Than I put the Field which contains the name of the Excel File (GS..._TFCF and GS...._NFD) in the Detail section with this settings:
Is this the right thing to do?
I need to display row number sequence of each group.
I have used $V{PAGE_COUNT} and evaluation time as now
The report data that I am getting is
Group A
1.
2
3
4
...........
page ends ......
Group A
1
2
3
4
page ends ---------
Group B
1
2
3
4
5
page ends....
But my requirement is
Group A
1.
2
3
4
...........
page ends
Group A
5
6
7
8
9
page ends .......
Group B
1
2
3
4
5
page ends....
I need all rows of same group to be continuous sequence. And start sequence from 1 when group is changed
You should use the GroupName_COUNT variable in this case.
The quote from the JasperReports Ultimate Guide
When declaring a report group, the engine automatically creates a count variable that
calculates the number of records that make up the current group (that is, the number of
records processed between group ruptures).
The name of this variable is derived from the name of the group it corresponds to,
suffixed with the _COUNT sequence. It can be used like any other report variable, in any
report expression, even in the current group expression, as shown in the BreakGroup
group of the /demo/samples/jasper sample)
More info is here: Data Grouping
I am using Filemaker Pro 12. I want to create a student report that contains results from previous terms. For example, each year there are 4 terms. The report in term 1 contains only the result of term 1. But in term 2, the report contains the results from both term 1 and term 2. This continues until term 4 (end of year) which the report will contain the results from term 1 to term 4.
I created 4 fields ca1_percent, sa1_percent, ca2_percent and sa2_percent in the Results table. My Results table contains all the records of the past results. My relationship graph is shown in the diagram below:
My problem is that I kept obtaining the records (mark_percent) from CA1 only. My fields calculation is shown in the diagram below:
Can anyone help me?
Update:
The result I obtained from above is shown in the picture below. I have populated upto term 3 results.
Just a thought - might an ExecuteSQL() query to fetch the related ids as a value list, then plonking them into a id-1, id-2, id-3 be more flexible?
I solved the problem myself.
Since Filemaker just take the first matched record by default, what I did is to use GetNthRecord(SA1_Results_Match::mark_percent,2) to get the marks for SA1, using 3 to get the marks for CA2 and 4 for SA2.
My TO only need be matched by overall_percent_match which is a calculated field using year & " " & subject & " " & _kf_studentID.