In crystal report i want to increase field string value
in crytal report field expolorer a filed named field1 string value is [8]
i want to increase it to [20]
is der any solution?
Kindly it's urgent please help
Similar Messages
-
Crystal report - how to split a field into more fields
Hello,
I`m new to Crystal reports and I`ve got a trouble. I have field which contains an address - street, city, zip code. The example is:
STEHLIKOVA 977 165 00 PRAHA 620 - SUCHDOL 165 00.
What I need to achieve is to split this string into three separated fields. I`ve trouhg a couple of forums but haven`t been able to find a proper answer. The problem is that the addresses differ so I can`t use an absolute defining of a start position. Looking at the DB (HEXA code) the parts in the string are divided by two dots:
STEHLIKOVA 977..165 00 PRAHA 620 - SUCHDOL..165 00
I`ve been able to work out this solution:
stringVar array x := split({cparty.STREET_ADD},"..");
Local numberVar i;
Local stringVar outputString := "";
For i:=1 to Count(x) do
outputString := outputString + x[i] + Chr(10)
outputString;
It splits the string into three rows:
STEHLIKOVA 977
165 00 PRAHA 620 - SUCHDOL
165 00
And I don`t know how to find the end of each row so to be able to separate the strings and report them as three different fields.
Would be anyone so kind and help me out with this?
Thank you.
PetrHi
Actually using a for loop is not necessary here. All you need to do is to add several formula fields: one for street, one for city and one for zipcode. In @street field you add formula:
stringVar array x := split({cparty.STREET_ADD},Chr(13));
x[1];
Then you drag such formula field to details section of your report and watch preview to check if everything looks alright. Repeat for every formula field that you'd like see in your report.
In @city you add almost identical formula but you change index, i. e. instead of x[1] you need to use x[2]. Then for @zip x[3].
You may need to check if your address has all three parts - for example if you want to use formula in the second part of your address field you may need check first if there are at least two parts after split:
stringVar array := split({cparty.STREET_ADD},Chr(13));
numbervar c;
c := count(x);
if 2 <= c then
x[c];
Var 'c' is used to store the number of elements in array after split. Then I'd like to check if the part (second) actually exists. So I try to check if number of part that I want to refer to is not bigger than the number of elements in array after split (here stored in var 'c').
Actually the code presented above is not enough since you have no guarantee that you'll always get address structured in the very same way. For example in demo PL database I have zip code and city in the same row after split with Chr(13) as delimiter.
You'll need to experiment or ask someone to prepare correctly structured data coming from B1 to your report.
Kind regards,
Radek -
Crystal Report Bursting based on a field in the report
Hi,
I have a crystal report with Invoice Number as a field in it. I need to burst the report with following as the output.
1. Destination: FTP server
2. Format : PDF : One PDF for every invoice.
I was trying to use Publication through Infoview. I would like to know how to achieve this.
I do not have any parameters in the report or any group of users/recipients. Hence, I have not created any Profiles.
Thanks in advance.
GirishAdd your CR report as source document and then choose to have Dynamic recipients for your publication. Use there as source for the recipients' list the same report you want to burst. As Recipient identifier select the field that contains the invoice ID.
In the personalization panel go to the Filters area and select in the Report field drop down your invoice field from the report. In the Dynamic recipients mapping drop down select again the field containing the invoice ID.
Select the appropriate settings in the destination and format panels and let at least on BO user subscribe to the publication .
After that you can run the publication.
Regards,
Stratos -
Hi,
I have a crystal report and a field called source.
The source field can contain more than one records.
When I export it to ms excel then source field is shown in three rows in excel.
Name
Source
Batch No
ABC
A0001
K1
K2
K3
But now I want to export to excel in the following format
Name
Source
Batch No
ABC
A0001
K1
K2
K3
The Name and Batch No field are in Group Header and Source in detail section.
Also the Source field can vary in number i.e. there can be any number of Source.
And I only want this type of output when exporting to MS Excel.
Is there any way to do this?
Please reply.
Thanks.Try this:
1) Create a formula with this code and place it on the Details Section:
whileprintingrecords;
numbervar x := x + 1;
stringvar col1;
stringvar col2;
stringvar col3;
if x = 1 then col1 = {Source}
else if x = 2 then col2 = {Source}
else if x = 3 then col3 = {Source};
2) Create another formula and place this on the Group Header:
whileprintingrecords;
numbervar x := 0;
stringvar col1 := "";
stringvar col2 := "";
stringvar col3 := "";
3) Create three separate formulae - one each for the three Source columns and place these on the Group Footer:
E.g. for first Source column:
whileprintingrecords;
stringvar col1;
E.g. for second Source column:
whileprintingrecords;
stringvar col2;
Drag and drop these formulae beside each other on the GF.
4) Move the 'Name' and 'Batch No.' fields from the Group Header to the Group Footer
5) Suppress Group Header and the Details Section.
-Abhilash -
Crystal Reports 8.5 and Barcode field on Postscript printer
Hi, I have a Crystal 8.5 document with a barcode Code128 inside (Azale font). If I print the document on a PLC printer using Azalea Truetype font the Barcode are printed. If I print the document on a PostScript printer the barcode are not printed. If I change font with PostScript version and I print on a PostScript printer the barcode are not printed to.
If I print the same document with Crystal 2008 the barcode are printed in both case.
There are some problems in Crystal 8.5 for Postscript print ?
thanks FilippoCould be, all I can suggest is you go to the download page and install all patches available for CR 8.5. Click on the Businessobjects tab above and the Crystal Reports and then the link to get downloads.
IF that doesn't resolve the issue you may want to get the latest print drivers for your printer. If that still doesn't fix the problem then you have no option but to upgrade and try again. Cr 8.5 is 10 years old, no new updates available now.
Thank you
Don -
Crystal Reports XI Web Elements - populate WESelect element values from database field
<p>Hi,</p><p>I am using Web Elements with Crystal Reports XI. I need to know how to populate the ElementValues and ElementDisplays arguments of the WESelect function from a database field. </p><p>In the function expert when I click on the ElementsValues and ElementDisplays values a drop down appears which will let me select a field or formula. However, when I try saving and leaving the formula workshop an error message is generated.</p><p> "A subscript must be between 1 and the size of the array".</p><p>I assume this is because the WESelect function is looking for the "|" separator in the ElementValues and ElementDisplays arguments.</p><p>Please advise.</p><p>Thanks</p>
hello,Â
in the webelements.zip download you should find a DCP report which shows the method for "rolling up" data using a subreport and passing these to a select control using shared variables.
basically a string running total rolls up the values at run time and character separates them for use by the controls. for any type of select (drop down menu etc.) controls all of the values have to be made available before the main report is run so that's why you use this techique. you can think of it this way...instead of having an asp page that runs a database query and then populates a javascript array for the control, the subreport rolls up the values and passes them to the control.
other types of controls that you wish to place directly on a group header or details section can be run off of main report fields or formulae...e.g. you can place a checkbox control on the details section without having to roll up the data in advance.
by just putting a field name in the parameter for a select control, you will only get one value per control.
i hope that this makes sense as it takes a bit to get used to at first,
jamie -
Crystal Report can't add Currency field when connect to SAP Infosets.
Hi,
I created a simple Crystal Report which connect SAP Infosets.
Everything is fine except I add a "Currency" field into report. Three errors returned.
Fail to retrieve data from database -> Database connector error :'Syntax error in program SAPLHRPADINA1' -> Database connector Error: 'RFC_CLOSED'
Do you have any idea?Hi,
can you run a InfoSet query based on the InfoSet ?
Can you create a QuickView on top of the InfoSet ?
ingo -
Crystal Report 11 Not Interpreting HTML Field
Post Author: Shakeel Ahmad
CA Forum: General
Hello Everybody!I am using the Crystal Report 11 and some of the fields displaying on the report has HTML data (<table> and other tags), but this field is not maintaining its formating even though I changed the Text Interpretation property of the Report field to HTML.For Example, I have the following data in a field<table cellspacing="1" cellpadding="1" width="200" border="1"> <tbody> <tr> <td>First</td> <td>Second</td> </tr> <tr> <td>Third</td> <td>Fourth</td> </tr> </tbody></table> But its output on the CR11 is
FirstSecond
ThirdFourth
The majour problem is for the <td> tag. Thanks for any solution to this problem.Post Author: Shakeel Ahmad
CA Forum: General
Actually it dont interpret the <td> tag, that why It combibes the output of a single line while it interprets the <tr> tag like <br> that why it breaks up the line. The spaces cant solve the problem cuz we cant count how much spaces should be printed after text of a <td> for proper formatting.likesdklfjsadkfksd askdjfksdjfsdfjdks askdjfkdsjfkd -
Crystal Reports Viewer 2008 and parameter fields
Hello,
I saw this product on the main Crystal Reports site this afternoon and decided to download it to try it out. I have a number of users who would benefit from being able to preview their report results prior to actually running the report. This seems like the perfect product. I have a large number of Crystal Reports which were created in Crystal version XI. I also downloaded the free 30 day version of Crystal Reports 2008 yesterday to see what new features are there.
While testing Crystal Reports Viewer, I tried to run one of my reports which needs a parameter to run properly (account number). This type of parameter is needed for probably 98% of this business' reports.
The problem: Crystal Reports Viewer does not prompt me to input the parameter. In my actual Crystal Report, I had the box "Save Data with Report' left unchecked, as the account number frequently changes. However, if that box is left unchecked, Crystal Reports Viewer will give me the error message "No Saved Data. This report file does not contain saved data and cannot be viewed. To get data into the report, please open and re-save it in the Crystal Reports designer application with the "Save Data with Report" option selected."
Thinking that possibly it was the version of Crystal Reports in which the report was created (XI), I downloaded the free trial of Crystal 2008 and created a very simple test report with one parameter for account number where the account number is retrieved from our database. And I am having the same trouble.
The "Help" section of Crystal Reports Viewer tells me that I can select my parameters in the parameter panel. I do not see anything in my parameter panel other than the words "Current Data Set Last refreshed: 04/12/10 2:58 PM". The help tells me that I can "select the parameter directly in this panel by entering a new value", but there is no option to do so.
Any help would be appreciated.
thanks,
NoelWhat I've learned is that I was originally using Crystal Viewer XI and upon opening it I received a message indicating there was an update.
I ran the update which put me on Crystal Viewer 2008.
Since then I have not been able to refresh my screen to bring up the parameters.
See the attached forum for another post concerning this same issue.
Paramter Prompts in Crystal Viewer -
Crystal report Chose from List or drop down value in parameter from UDT
Hi Experts,
I had face a issue while creating a report for my client in crystal report , I had create a report and in the parameter field I want to select the value from the chose from list or drop down value from the User define table.
In parameter had written field as : Code@Select * from dbo. [@UDT] ; but in the report filled I am not able to select the value.
Please Help me ! Thanks in Advance. :HI
Welcome to the Forum...
You cannot put all the values in a single parameter field so you need to select each field for each parameter...
Better you post it in this link for more reponses:
Reporting and Printing -
Open a crystal report from WAD with passing the variables values
Hi,
I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking WAD (web template) as a source to crystal report or crystal report called in WAD.
Please suggest something on same.
Thanks
Take care
Vishal sharmaHello Vishal.
Did you find a solution for this problem?
I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
Have found an answer to this issue? If yes, please kindly inform how have you solved this.
Best Regars
Armando Santos -
Crystal Reports 10, Want to pass values from subreports to main report
Post Author: playmkr278
CA Forum: General
Is there a way to just share values out of subreports.
The reason I ask is that I am having problems pulling the correct information in one subreport so I'd like to use 2 subreports to pull out Billable hours on one and Billed Hours on another and then add them together to display on the main report.Post Author: Jedit
CA Forum: General
Yep there is!
In your sub report
I the formula editor create a shared variable then create the same variable in your main report.
EG
IN your SUB
Create new formular called tothrs etcu2026..
whileprinting records;
shared numbervar tothrs: sum({table.fieldname}]
In Your Main Report
whileprinting records;
shared numbervar tothrs
this passes the value from your sub to the main, check help for different types of format as the one above is only for a number there are others for time & date etc..
hope this helps!
I have been doing a similar exercise myself but got stuck summing the parameter values in my main report, if you solve this let me know?
Please see http://technicalsupport.businessobjects.com/cs/forums/thread/6210.aspx -
Crystal Reports XI - How to pull same column value with different select...
I have a report with many (around 30) sub reports and it is giving serious performance issue. I am currently finding out a strategy to improve the performance. I see that most of the sub reports are taking same parameters from main report except for one parameter which is different for each sub report and hard coded in them and pulling up the same column value from a oracle database with a different select criterion. I am trying to find out a way using either of command/crystal formula/SQL expression which can do the same job for me and give me performance improvement. I tried to take the parameters from the main report in one sub report and mapped them to parameters being transferred to the command and then drag and drop the field for which I need to display the value but due to some reason it is not returning values when I am trying multiple commands...I need some help in selecting a strategy for this issue resolution and some guidance....Any help would be highly appreciated....
My version is 11.5.8.826. First of all I need to make it clear that I have 6 set of sub reports and each set has 5 sub reports. So if I can resolve the issue for one set, I resolve it for all. The sub reports are doing nothing but fetching a column value using a simple SQL SELECT query and appending to the right of a box in main report. The issue is that all these queries embedded into the sub reports are using same SQL except for one parameter in the "where" clause and they are fetching same column value from the database and fortunately all of them are returning same number of results. So at the end these results create a table when run. The only way I can stop using sub reports is by creating a table in the main report and use some object(formula/command/SQL expression or whatever) to fetch that column value using the same filter conditions. But please take a note that I need to use and append the same column value from a database table and use different filter conditions and append them to the right so that at the end they create a table...as long as I get the table in the output with a decent performance , anyone will be least bothered about what I used inside the report.....please ask me as many questions to get more lights on the issue....
-
Passing single/multiple values to stored proc parameter from crystal report
I tried below solution posted on this forum to pass either a single value or multi-value to a sql server stored procedure parameter (varchar datatype) from crystal report XI R2.
In my crystal report , I am displaying all the available parameter values to the user and the user will select either a single value or multi value.
This worked when I select single value and when I say show sql query in my subreport I see the following:
{CALL "XYZ"."dbo"."storedprocedurename";1('Product 1')}
But this did not worked when I selected multiple values and when I say show sql query in my subreport I see the following:
{CALL "XYZ"."dbo"."storedprocedurename";1('Product 1,Product 2')}
I think it might work if it is as below:*
For multiple values:
{CALL "xyz"."dbo"."storedprocedurename";1('Product 1', 'Product 2')}
Please advise.
Solution Posted on this forum is as follows:
Hi,
As you must be aware of that a crystal report created of a stored procedure will allow only a single value for inserting a multiple value as a parameter in your report and pass those values to your stored procedure please follow the below work around which will be helpful for you.
Symptom
In Crystal Reports, you want to pass a multi-value parameter to a stored procedure. The problem with doing so is that Crystal Reports considers the multi-value parameter to be an array.
How can you pass a multi-value parameter to a stored procedure?
Resolution
Here are the steps to pass a multi-value parameter to a stored procedure:
1. Create a Crystal report, and add a multi-value parameter.
2. Since the multi-value parameter is treated as an array, create a formula that uses the JOIN function. Create a formula as below:
//Formula: @JoinFormula
Join ({?Multi-value parameter array},";")
====================
NOTE:
In the formula above, a semi-colon (";") is the delimiter.
====================
3. Within the main report, create a subreport based on the stored procedure, and include the parameter to be populated with the multi-value list.
4. Link the Join formula in the main report to the stored procedure parameter in the subreport.
Doing so passes a multi-value parameter to the stored procedure.
Regards,
VinayHi Vinay,
First you need to make sure the stored procedure accepts multiple values in the fashion 'a','b','c'.
Then, create this formula in the Main Report:
numbervar i;
stringvar s;
for i:= 1 to ubound({?Parameter}) do
s := s + "'" + {?Parameter}<i> + "'" + ",";
left(s,len(s)-1);
Link this formula to the sub-report's parameter.
Hope this helps!
-Abhilash -
Get the parameter fields defined in crystal report
I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
I have a set of already created .rpt files.
I have written a function in .net to export the crystal report.
Its a generic function and will be called for multiple crystal reports.
I am passing the parameter values to the report by making use of the following function :
ReportDocument repDoc;
repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
Similarly I are setting other parameter values.
The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
field, then it gives error on setting parameters and subsequently fails.
Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
parameter fields?
Please guide how can this be done.
Thanks
SonamNot as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report. I get a headache just thinking about this...
Dim crSections As Sections
Dim crSection As Section
Dim crSubreportObject As SubreportObject
'set the crSections object to the current report's sections
crSections = crReportDocument.ReportDefinition.Sections
'loop through all the sections to find all the report objects
For Each crSection In crSections
crReportObjects = crSection.ReportObjects
'loop through all the report objects to find all the subreports
For Each crReportObject In crReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
'you will need to typecast the reportobject to a subreport
'object once you find it (***you'd go to setting the parameter here - or not...)
crSubreportObject = CType(crReportObject, SubreportObject)
'open the subreport object
crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
'set the database and tables objects to work with the subreport
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Maybe you are looking for
-
I am not able to move my photos from my desk top mac to my new ipad. I have my photos stored in iphoto on my mac. What do I have to do to move these photos to the new ipad? GB
-
When I open calendar, it shows 1am and on. How do I change that?
I have set my preferences in calendar to have my day be 8am to 6pm and show 10 hours, and the week run Sun through Sat. Each time I open calendar, while those perimeters area present (the 8am to 6pm time frame shows by the grid lines being very faint
-
OES and WebCenter Integration And PEP API Issues
Hi All, Currently we want to develop a WebCenter app which will check Authentication Policy in Oracle Entitlement Server using PEP API. We encountered some issues, and have following questions: 1. According to PEP sample API, seems the PEP client app
-
Calling a static method when starting the server???
Hi, i wanted to call a static method of a java class, whenever i start the server. plz give some input on this. thanks and regards siva
-
when checking my LR back up for photos there are just a few , I have backed up everytime LR suggested. Where are the other photos ? thank u