Can Grow Fields in Group Header Section Overlap
Does anyone know of a size limitation to can grow fields on a group header section? I have 2 fields in a group header section of my report. They are defined as varchar(3000) and varchar(6000). However, on my test case, the contents of each has lengths of 1,113 and 572 respectively. The fields are listed vertically in the group. The one that's listed on top, overlaps the one on the bottom.
field_varchar(3000)
field_varchar(6000)
Thanks in advance for any help or information you can provide.
Thank you SO MUCH! That worked!! I should've thought of that myself - but I'm pretty new to Crystal.
Similar Messages
-
Forcing a new page and using CAN GROW in a group header section??
Two Questions:
1) Is it possible to force a new page at any given position of the report?
I have a summary report with drill downs. My problem is that the vendor name and address (group 3 which is split into 3 subgroups GH3a GH3Bb GH3c) is sometimes at the end the page and the rest of the information (detaila and detail b with GFs) continue on the next page.
Can I specify a specific time or position when to page so that if this happens I can make the vendor name print on the next page?
I know of the keep group together option in the section expert but that keeps the detail together with the group heading - which is not the problem I am trying to resolve.
2) Can the group header and group footer sections be set to CAN GROW?
Thank you,
JSIf a field exists in a section and the field is set to can grow, the section will grow with the field.
CR2008 allows you to page after X number of records in the details section. See section expert, paging tab (Details Section)
If you are not using CR2008 you could calculate the number of records per group and new page after this based on the number of records. -
How to add a field object to group header section in crystal report document?
Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName, CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject(); fieldObject.DataSourceName = dbField.Name; fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai
Hi Jaikumar
As per the SCN Rules of engagement, one question per thread please.
Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
Also, consult the Developer Help Files:
Report Application Server .NET SDK Developer Guide
Report Application Server .NET API Guide
Re. your second question, please create a new discussion.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Can the fields grow with the section expanding?
Post Author: KennyG
CA Forum: General
Can the fields grow with the section expanding?There are several fields in one section of my report, all the fields are formatted with "Can Grow" checked and bottom border showed. In design mode, all the bottom borders stick to the bottom of the section. However, when print, the section may expand as some fields grow, but the rest fields can not expand automaticly with the section, so the bottom borders will not be at the same height as before. How can I deal with it? Is there any option about this?
Any suggestion would be greatly appreciatedPost Author: MikeA-ICE
CA Forum: General
One thought I have is to insert another section just below the one where the growing fields are and put a single line or individual lines under those fields. Move it up to the top of that new section and move the break between the existing section and the newly added one tight up against the bottom of the 'can grow' fields.
Another possiblity lies in the fact that the "Can Grow" option has a formula attached to it. I don't know if it will work or not but maybe an If/Then formula could tell field B to grow if field A grows. I've never tried that but it may be possible. I'd think the first suggestion would be the one to try first.
Mike -
Data Concatenation - Looking to have result in the Group header
Dear all,
Few months ago, I try to concatenate cells under a Group,
I succeed using the formula gave by Raghavendra
Initialize:
whileprintingrecords;
stringvar i:="";
Place the above formula in group header and suppress group header section.
evaluate:
whileprintingrecords;
stringvar i;
i:=i", "name field;
Place the above formula in detail section and suppress the details section.
display:
whileprintingrecords;
stringvar i;
country field" - "i;
Place the above formula in group footer and right click go to format field and check the option "can grow" in common tab.
My today issues is that I'm still looking for concatenation but I need it in the Header of the Group, not in the footer
As far as I understood
- Crystal Report is reading line by Line, so I can't retrieve the value in the Header before the value are calculate.
- Moreover I've issue on initialize the value
I thougth an GlobalVar Array can work, but I can't find the way to do it
My request is, I've have this DataSet
Paris | Louvre
Paris | Eiffel
Sydney | Opéra
I'm looking Group on City to have in the Header, the value concatened
Paris | Louvre, Eiffel
Sydney | Opéra
Thanks in advance
Edited by: Alexandre VANNIER on Dec 2, 2008 2:09 PMif i have manual running totals that need to display in the header i do the following
i create the group - ie- jobid
i either insert a sub group below or create a 2nd group with the same field
then i create a 3rd group with the same field
i place my reset in the 1st group
calc in 2nd
display in 3rd -
Repeat Group Header on Each Page in Subreport won't reflect when generate by JRC
Hi All,
I have a report that contain several Subreports. Inside the Subreport, there are Group Header section. I have checked the option of "Repeat Group Header on Each Page". It works fine when I preview in Crystal Report. But when I using JRC to generate the report result. The group header only display on the first page of the group details.
More, Crystal 10 Common Monthly Hot Fix (English) already installed.
Any idea?
Thanks a lot for your help!
DonaldHi,
Doesthe JRC engine uses CR10 jars or XI\R2 jars? Can you possibly try it with latest set of Eclipse jars? You can download it from Diamond.
Thanks
Aasavari -
How to get SYSDATE in the header section dynamically when we run the report
I have one more issue may i know how can i get the sysdate in the header section when i run the report.
as we have the requirement like this
In the header section
Run Date : ("sysdate").
How to get the sysdate dynamically in the RTF template, when i go across the google i found that header and footer section did not allow form fiields .
So is there any way to do it.
Thanks in Advance.
Have a Nice Day.You cannot insert form fields in the Header section, but you can just insert the code to achieve this. For example: insert this in the header section to view the sysdate: You could format the date as you would like..
<?xdoxslt: sysdate(‘YYYY-MM-DD’)?>
Since you are new to BI publisher, search the forum, review the Report Designer's guide for BI publisher. You will find that most of your basic questions are answered there and there are examples as well.
Thanks! -
Filling an array from a field in the details section
Hi.
I'm a Crystal newbie. I'm using Crystal 11 Dev. I have some basic understanding of programming but I am clueless as to the organization and syntax used in Crystal scripts.
Here's what I need to do. (I don't expect anyone to solve this for me, but just a starting point would be great.) I have a field in the details section, let's call it field-A. The details section is under group field, let's call it groupedField-A. For each groupedField-A there are zero to many field-A's which get looped through and displayed in the details section. Instead of just listing the values for field-A in the details section, I would like to display them in a string seperated by commas.
I figure I need to create an new array for each new groupedField-A, then add the values from field-A to the array as the details section loops through them. Then, I figure I concatenate the array values into a string in the details section or maybe the group header or footer.
Will this work in Crystal? If so, I need some help with the syntax. OR, is there another way to approach it?
Any ideas would be greatly appreciated.
Thanks
Chuck W.hey Chuck,
instead of using an array you may wish to use a string running total. an array is limited to 1000 values whereas a string running total is 64k.
details section formula:
whileprintingrecords;
stringvar srt:= srt + + ",";
group header section formula for reset:
whileprintingrecords;
stringvar srt:= "";
group foot section formula for display:
whileprintingrecords;
stringvar srt;
srt[1 to length(srt) - 1]
hope this helps,
jw -
How to place aggregated fields in the page header or group header
Hi,
i have a report where in i have to display a header based on the aggregated value of a field
currently the field has values like
row1 blank
row2 blank
row3 Cookies
row4 blank
I wanted to know how to get the maximum of these rows in the page header i.e. it should come as Cookies for this case.
Is there any way to get this? it is easy in the footer where i can do a maximum of this field and get the value but not sure how to get this in the group header.How do we group maximum at the page header or group header?
Require your help on this at the earliest.
Thanks
ShilpiHi Shilpi,
>
Shilpi Sinha wrote:
> currently the field has values like
> row1 blank
> row2 blank
> row3 Cookies
> row4 blank
>
Do display these things in a subreport(i mean adda subreport in detail section). And Create a formula in the subreport itself with shared varible for assiging the maximum value ..
Then in the main report , create one formula with same shared variable and just display in Header secton..
Regards,
Salah. -
How can we use IF ELSE statement in Header Section
Hi All
I have requirement to display a bill address in header section based on a particular status ,would some body please share that is it possible to use if else in header section .
Thanks in advance
Thanks
Pratapyou cannot place your if conditions within form fields in the Word header. But you can directly type the tags instead.
Regards
Nishka -
Repeat Group Header On Each Page with Underlay Following Sections
How to overcome the following problem?
1. I am using Crystal report 13.0.5.891
2. I have designed the report with Group Header as [Underlay following section]
3. I have checked the group to repeat on each page
4. Number of lines in the group header may vary
5. Number of lines in details may also vary
My objective is to print the separator line placed in group footer, after the
header lines or after the detail lines which one is taking the maximum lines.
This is not happening, and I am getting the following output, which is not meeting my requirement
Where the "LINE IN GROUP FOOTER" should appear after "Group 1 Header Line 6" in the second page
as the report ends there, but in the output, the line is coming just after the end of detail record.
like following
As a result of this, the next record of the group is overlapping with the first record and creating a mesh
------------------------------------------------------------------------------------------------------------------------------------ PAGE 1 OF 2
Column Heading 1 Column Heading 2 Column Heading 3
Group 1 Header Line 1 Detail Record 1 Line 1
Group 1 Header Line 2 Detail Record 1 Line 2
Group 1 Header Line 3 ----------------------------------------------------------------------------------
Group 1 Header Line 4 Detail Record 2 Line 1
Group 1 Header Line 5 Detail Record 2 Line 2
Group 1 Header Line 6 Detail Record 2 Line 3
Detail Record 2 Line 4
Detail Record 2 Line 5
======================LINE IN GROUP FOOTER========================
PAGE BREAK
------------------------------------------------------------------------------------------------------------------------------------ PAGE 2 OF 2
Column Heading 1 Column Heading 2 Column Heading 3
Group 1 Header Line 1 Detail Record 3 Line 1
Group 1 Header Line 2 Detail Record 3 Line 2
Group 1 Header Line 3 Detail Record 3 Line 3
Group 1 Header Line 4 Detail Record 3 Line 4
======================LINE IN GROUP FOOTER========================
Group 1 Header Line 5
Group 1 Header Line 6
Thanks in advance.Thanks for you response.
I have updated the crystal report to 13.0.13.1597.
Still I am getting the same issue. I am generating the report in PortableDocFormat and exporting the byte array to download from the web browser. The application is developed in ASP.NET 2012 .net version 4.5.
I am also uploading 2 images of the final pdf that I am getting, for your opinion.
The report appeared in the first image is ok, where the first group has 2 child records and the second group has 1 child, but whenever I am changing the mapping in the database, where the first group has 1 child and second group has 2 child, my report is not working. as it is clear from the second image
Also after installing the new version of CR, my existing codes are not working, and giving the following exception in the line where ExportToStream is written.
Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.
I have modified the existing code to overcome this exception. -
Special summary field in the group footer section.
Post Author: Razzle00
CA Forum: General
I have a Crystal Report that reads a customer file grouped by custid. In the group footer section I need to place the value of the category field from each customer record in a seperate field on the report to match the section text label.The output of the report would look something like this for each customer id (1 page per cusomter id)....
Customer Table Example:Custid Category Section
101 C 1101 B 3101 D 6101 A 2 230 B 2230 D 3 230 E 1115 A 5115 C 6
Each page of report example output:************************************************<pageheader>
Customer Number: 101
<Details><groupfootersection>
This customer has the follow for each section:
Section 1: C Section 2: A Section 3: BSection 4:Section 5:Section 6: D
<Pagefooter>************************************************
How would I create a field that could diplay the category for each section in the groupfootersection of the report?I realize this could be done in the detail secion of the report for each record, but I do not have the optionto use the detail band. It has to be done in the groupfootersection so that the fields can be placed in variousplaces depending on customers preference.
Thanks,
RazzleA group footer will dis[lay contents of the last record. You need to sort records to ensure that the last record contains link to your dynamic image.
Ian -
How to store running sum of group header fields
HI All,
I am bit confused how to do this so writing the post here. I have a group header which gets the amount spent by cost centre by account number
the group contains the following fields
[Account Number] [SDESCR] [sum of coscentre1] [sum of costcentre2] and so on.
The end result i get as follows
Account number Description Coscentrenumber1 CostCentrenumber2 and so on
100 cash at bank 6000 7000
200
and so on
now i want
Total Sumof(Costcentrenumber1) Sumof(Concentrenumber2)
how can I achieve this ? am confused how to store the value of [sum of costcentre1] into a shared variable and use this shared variable in page footer to display the total ?Let me be more clear I need the out out something like
Account number Description Costcentrenumber1 Costcentrenumber2 Costcentrenumber3
100 6000 7000 800
200 4000 5000 300
Toal 10000 12000 1100
the account numbers are placed in Group header so that we group all the transactions by account number. Say for example when i said account number 100 above in the backend
it is as follows
Account number Costcentrenumber1
100 2000
100 2000
100 2000
In the crystal the above logic is placed in Group header by creating Group Name fields
so that end result in the report it is shown as
Account number Coscentrenumber1
100 6000
Now in the report at the end i want the sum by Costcentrenumber.
as 10000 shown above.
Hope am clear. -
Can contributablelement be used to populate a META tag in the head section?
We're currently using UCM 10gR4 with SSPU.
We'd like to use a contribution element to allow contributors to add text that would populate the META tags (Keywords and Description) that reside in the HEAD section for a node.
In most cases, there is a 1-1 relationship between nodes and Content Items (placeholders).
I've already built a solution for this using Custom Section Properties, but the preference is to allow the contributor to review/update the meta values with another contributable element. Then, the text entered can be reviewed within workflow and the element is more prominent to the contributor.
The next best solution would be to use a metadata field to update the meta tags.
Any suggestions?
Thanks in Advance,
Todd Mbingo!!!!
Ryan, that was it! The measly little escape characters! Now it's working like a charm, which makes my day!
Here's the recap of the fragment, if others find it useful.
Intent: to allow contributors to enter content that would appear in the Meta tags for a particular page. This content will also go through workflow for the appropriate approval, as well as be more prominent for the contributor to actually enter the content!
Here's the fragment code. "Content" as it appears in the code is the defined placeholder name. MetaKey and MetaDesc are elements added to the Region Definitions (as plain text). The conditionals at the end of the fragment handle the case if these areas are blank.
Thanks to all for your responses!
Todd M
<!--$currentPageNodeId=#active.nodeId-->
<!--$ContentID=Content-->
<!--$metaKeyword=ssIncludeXml(ContentID, "wcm:root/wcm:element[@name='MetaKey']/text()")-->
<!--$metaDescription=ssIncludeXml(ContentID, "wcm:root/wcm:element[@name='MetaDesc']/text()")-->
<!--$if not strEquals(metaKeyword,"")-->
<meta name="KeyWords" content="<!--$metaKeyword-->" />
<!--$endif-->
<!--$if not strEquals(metaDescription,"")-->
<meta name="Description" content="<!--$metaDescription-->" />
<!--$endif--> -
How to display the last value of a field in a group in the group header
I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record). I can not use the group footer, which would be the natural place to find the last value. It must be in the group header because there will be a subsequent group within the unit group. In other words, the grouping is as follows:
Unit Group Header (Display last quiz score in unit)
SubUnit Group Header (Display other detail summaries)
Detail Record (including quiz score)
SubUnit Group Footer
Unit Group Footer
While there is a minimum/maximum summary function, there is not a first/last function.
Fuskie
Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...Hi Fuskie,
One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
Patrick
Maybe you are looking for
-
How to add one more character in selection [JS] [CS2]
Hi All I am wondering the way to add one more character in my selection. I have a script which adds the xml Element and parent xml Element in selected text so far so good, but further my expectation is to cut this text with tag and paste it into anch
-
Business Process Engine Error and Adapor Monitor JPR error in PI 7.0 Server
Hello, I have installed PI7.0 Server on windows server. When I use SXMB_IFR tcode I got RWB screen and RWB Business Process Engine is in red. though I have configured automatic workflow customizing through SWF_XI_CUSTOMIZING tcode. Still i am getting
-
Seeburger Module Runtime Error when I am executing the 810 signal
Hi, My Scenarios is Idoc to EDI (810), for testing purpose I configured the receiver File adapter with modules, when i send the data from RWB Integrationengine test tab, I am getting the below runtime error "Message processing failed. Cause: com.sap.
-
hi How to change the title in narrative report(title displayed in ie),it took the saved name of the report. but i want to customize that title instead of using saved name.Can i use html title tag in my narrative area.Is that possible? Any suggesstion
-
Retrieving records from the MS-Access database
Hi, I am capturing an user input from a text field into a variable called 'valAuthor' and then using it in the following query statement. stmt.executeQuery("Select * from BksTable where AUTHOR = 'valAuthor'"); But for some reason the records are not