Print Multiple Parameter Value in Crystal Report 2008
Hello and Hi
i want to select multiple warehouse in a pramater , i select and report working but parameter print only first parameter value on report.how can print all selected values on report
Hi
I am assuming you select warehouses WH1,WH2,WH3,.......
You have to create a formula in Crystal
It should look like this
Join({?YourParamaterName},",")
Place the formula on your report.
The last Part of the formula is the "notation break" between every parameter returned. In this case a > , <
Return would be WH1,WH2,WH3,.......
Join({?YourParamaterName},"#") would return WH1#WH2#WH3#.......
Hope you get the idea
If this solution helps, please rate me.
Regards
Burger
Similar Messages
-
How to get Description of parameter filed in Crystal report 2008
Hi expert,
I am creating a crystal report from Query ,which is created in BEX Query designer 7.
In query designer i have some selection variable.
The requirement from clint is that they want to see what value is selected for all variable.
when i tried to put all parameter field in crystal report it is showing only Technical name of value selected not description and also it show only for variable which is single value variable not for the range value variable and multiple selection variable.
can any one help me How to get description of value in report and can it is possible to show Range value and multiple value for a particular variable .
i am using Crystal report 2008 SP3 version.
Thanks and regards
devendraMoved to BEx forum
-
How to set Default DateTime values in Crystal Reports 2008
Hi All,
I'm using Crystal Reports 2008. I have two fields FromDate and ToDate in reports. While running report, FromDate field should be displayed with CurrentDate + 00:00:00 in the UI and for ToDate it should be displayed with CurrentDate + 23:59:59 format.
I have tried the below things, But still I want to set CurrentDate + 00:00:00 time in DateTime field.
"In CR 2008 you would set the time portion to 00:00:00 in this way:
1) Edit the date/time parameter and look for the 'Default Value' option; it would be blank
2) Set this to 00:00:00
This would default the calendar to 12/30/1899 00:00:00. The only worry here is, when you click on the calendar icon you would be presented with the calendar for the year 1899 and it is painstaking to scroll all the way to the current year."
I found one solution in SAP forum and I have added the below lines in Record Selection formula,
{@FromDate} = date(@CurrentDate)+time(00,00,00)
{@ToDate} = date(@CurrentDate)+time(23,59,59)
When I run the report, I still getting the empty values in the input parameters screen.
Am I missing anything? Kindly help
Thanks,
Ramesh Kumar G.See the following for samples:
Java (Crystal Reports for Eclipse) SDK - Business Intelligence (BusinessObjects) - SCN Wiki
BusinessObjects Enterprise / SAP BusinessObjects Business Intelligence Platform 4.x Java SDK Applications
Business Objects / BI Unmanaged Java RAS SDK Sample Applications
Developer Help Files:
Crystal Reports SDK
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Pass querystring parameter value to crystal report
Post Author: hani1426
CA Forum: .NET
Hi all,
I am new in using crystal reports
I want to print an invoice with it's items in a crystal report,I have aseparated page which contains a GridView of invoices and it has a hyperlink field column which parse the ID of the invoice to the page of the crystal report
In my crystal report I am using "Microsoft OLE DB Provider for SQL Server" Connection which connects to my local instance of SQL server express edition and then add a "command" to obtain the invoice details
BUT: when adding a parameter to my command it gives an error which description is: "Must declare the scalar variable @ID"
please how can I add this parameter
thanks for any help
byeI responded to your other thread:
pass parameters from vb.net to crystal report
Please do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Closing and locking this thread.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Print multiple copies of a crystal report
Hi,
We have a crystal report that always has to be printed 2 times.
We don't want the user to have to enter a '2' at the 'number of copies' option when printing the report.
We would like the report to know for itself it has to be printed twice.
I know it's possible to create a 'main report' and have two subreports linking to the same report, so it would print two times.
This is not possible in this case due to already existing subreports.
Another option is to have some extra table with only two records, and use those two dummy records to create a group (so the reports gets printed twice)
This isn't an option too.
Is there no way to using a formula and some counter in the report itself ?
Many thanks in advance,
VincentNo, try setting the default printer to do it. Or you'll have to write an application do it.
-
Printing parameter values in xml report, and displaying it in header of the
Hi All,
Can anybody give me an idea to print the parameter values in the xml report.
My requirement is like, I have 10 parameters in report builder, I have generated the xml file and created the .rtf template and finally registerted in oracle apps. But now, the requirement is to print the parameter values in the report output.I don't see any xml tags in the xml output.
Any suggestion will be appreciated.
Thanks in advance.I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
XML Tag Attributes: myParameter="&<P_1>"
where P_1 is your user parameter. -
Display parameter values in separate sheet in Crystal Reports 2008
Dear all,
I am using CR 2008 SP6 and I want to provide/display the values of the parameters which the user has entered before executing the Crystal report.
Is there any way to display this values, maybe on a separate sheet or area within the report?
Any idea would be great.
Best regards,
Stefanos from Munich/GermanyFor single-value parameters, simply drag them to the report canvas to display them. For more complext cases, see Printing Parameter Selections for Multiple or RangeValues in Crystal Reports</title></head><body><!…
-
Crystal reports 2008 Set optional parameter value
Hi,
I'm working with .net Visual Studio 2008 C# and Crystal reports 2008 (Crystal.Decisions) and when I try to set a parameter to optional and set its value to no value, it returns the error: "Invalid parameter name", here is my code:
foreach (CrystalDecisions.Shared.ParameterField param in Report.ParameterFields)
if (!param.HasCurrentValue &&
!Report.DataDefinition.ParameterFields[param.Name].IsLinked())
switch (param.ParameterValueType)
case ParameterValueKind.NumberParameter:
param.IsOptionalPrompt = true;
param.CurrentValues.IsNoValue = true;
break;
I'm doing this because some of the parameters can be left null, and in this case I don't want to show the parameter prompt.
In past versions of Crystal (such as Crystal Reports 11.5) we had the chance to left the parameter value null and did not showed the parameter prompt dialog, and this behavior repeats in a lot of reports.
thanks in advancedPlease don't post the same question more than once. This is a public forum so be patient.
Install SP4 and test again.
Try these samples:
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
Don -
Crystal Reports 2008 SP3 Additional parameter values are needed
I recently upgraded to Crystal Reports 2008 SP3, and now when I try an export a report from the Crystal Reports Designer, I get the error "Additional parameter values are needed before this report can be saved or viewed with data. Click 'Ok' to enter the missing values or 'Cancel' to proceed without data". I am trying to export the report to Crystal Reports format. The report is getting data from a MS SQL 2005 stored proc. I tried building a new simple report (just took all the fields in the result set and put them in the details section) using the same stored proc, and get the same error when I try to export.
FYI, before I try to export I always preview the data in the report, so the parameters are defiantly set correctly.
This was working correctly in Crystal Reports 2008 SP2.Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Sub report parameter prompt appears when running Visual Studio 2008 with Crystal Reports 2008
Post Author: relliott
CA Forum: .NET
If I build a simple Crystal Report that contains another simple Crystal Sub Report, the report will print preview fine in Crystal 2008. The problem happens when add this report to a Visual Studio 2008 Web Application Project and I build and debug the application, the Crystal Viewer is prompting the user for the parameter used to link the sub report to the main report. This should never happen as the user is not supposed to see this parameter. If I type in some value for this sub-report parameter prompt, the Crystal Report Viewer gives an error message about not finding the field.
I was having the same problem in Vs2005 with Crystal 10 which is why I upgraded. Business Object's official fix for this problem was published under their KB article number c2018840 and c2019047. These hot fixes ended up causing general exception errors in Visual Studio so I scrapped these solutions.
Support had me install SP0 for Crystal 2008 (which did not fix it).
Any ideas?
Any help is greatly appreciated.
Thanks,
Rich ElliottHi Bontrager,
Thank you for posting in MSDN forum.
According to your description, I agree with pvdg42's suggestion, so I suggest you can try pvdg42's suggestion to install the version of
Crystal Reports 10.5 to check this issue again.
Reference:
http://forums.asp.net/t/1236730.aspx?Which+CR+version+is+in+Visual+Studio+2008+
In addition, since this forum is
to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. So if you have any issue about the
Crystal Reports, I suggest you can ask the issue to the
SAP Crystal Reports website:
http://scn.sap.com/community/crystal-reports/content?filterID=contentstatus%5bpublished%5d~objecttype~objecttype%255bthread
as pvdg42 pervious suggestion, it will be better support.
Thanks for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Crystal Reports 2008 parameter panel
Hello,
I'm using Crystal Reports 2008 stand-alone application to design reports. I'm wondering is there a possibility to change information display on parameter panel?
The problem is that I've created a parameter with option "prompt with description only" set to true. This parameter has value and description. When it's prompting for parameter everything goes fine, it prompts with description only, but in parameter panel it's only values (not descriptions) displayed. This is confusing for report users as the value is key (int type) and description is name (string that actually says something to user).
Maybe there is something to be set in Crystal Reports Viewer component properties?
Thanks in advance.Hello Gemi,
I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
It is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
Best regards,
Falk -
Dynamic Sorting on Multiple filed in Crystal report 2008
Hi
I am using Crystal report 2008 sp3 full build with hotfix 3.3 along with ASP.NET 2.0
I have implimented the multi filed sorting using the record sort export and setting the sort order in the report designer.
Now my requirement is such that i would like to have dynamic sorting on multiple fileds while report is displayed in the UI.
Means suppose i have a report with Customer region,name,city,rating,status etc.
Now by using the sort control i would like to have the functionality in such a way that if user
a) first sorts on the region then the records should be first sorted by region
b) then sorts on the city then the records should be sorted first by region then by city
c) now sorts on the rating then the records should be sorted first by region ,second by city and then by rating
Now other user may do
a) first sorts on the rating then the records should be first sorted by rating
b) then sorts on the status then the records should be sorted first by rating then by status
c) now user sorts on the region then the records should be sorted first by rating,second by status and then by region
and so on the sorting criteria changes from user to user through the UI.
Is there any way to achieve the dynamic kind of sorting with Crytsal report 2008 where we can set the order of the fileds at sorting in UI dynamically .The sorting order of the fields are not known at the time of design of the report and its completely depends on the user's need.
Please let me know if you require any information on the same.
Regards,
smithaHello,
Good Day!
Thanks for your answer.
Could you please explain me in detail how to achieve this functionality?
Do i need to create a static parameter?
I get my data set through the command option in crystal report.So i think i need to go by formula in the report.
i am just putting down the steps to follow.Please correct me if i am wrong.
step1 :Create s static parameter with the name SORT.
step2: create the formula as you have mentioned like
(IF {?Sort}='Vendor Number' THEN {Pr_Voucher_Status;1.Vendor_Key}& " "& {Pr_Voucher_Status;1.ap_remt_key}
& " " & {@date}
else
IF {?Sort}='Invoice Number' THEN {Pr_Voucher_Status;1.ap_vchr_invno}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
" " &{@date}
else
IF {?Sort}='Invoice Amount' THEN {Pr_Voucher_Status;1.ap_vchr_amtc}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
" " &{@date})
I could not understand what this formula is really doing .
Could you please tell me what the following names indicates? :
Pr_Voucher_Status :- Table/Command name ??
Vendor Number,Invoice Number etc.. :- ??
Vendor_Key,ap_vchr_invno,ap_vchr_amtc .. :- Filed names ??
use of 1.{} :- ??
step3: place the below formula in the page header to display the sort order
(if {?SORT}='Vendor Number' then "Vendor Number, Remit To, Invoice Date"
else if {?SORT}='Invoice Number' then "Invoice Number, Vendor Number, Invoice Date"
else if {?SORT}='Invoice Amount' then "Invoice Amount, Vendor Number, Invoice Date") .
Note:-My report does not have grouping.Do i need to have grouping?
in this case how the sort control will work ?
As i have mentioned in the first post the order of sorting is completely depends on the user's perspective .
The report is used by the whole organization ..
i mean the people with different roles like Manger,Team leads,modul leads,developers ,testers etc..
the usage of report varies according to the roles so the sort order also.
Regards,
smitha.
Edited by: smitha thomas on Mar 16, 2011 5:01 AM -
Crystal Reports 2008 parameter panel discrepancy.
Hi,
I have a report designed using Crystal Reports 2008. The report has a dynamic parameter called Location which is populated from a table. It is a Value - Description pair so it is:
Value = LocID
Descripition = LocationName.
The Show on Viewer(Panel) attribute is set to Editable.
The Prompt with Description Only attribute is set to true.
In the Crystal Reports stand-alone Designer everything works fine. It prompts with the Description. After making a selection, the Parameter Panel shows the selected items(the Description, NOT the value) correctly. This is the desired behavior.
But when the report is viewed in the Crystal Reports Viewer that comes with .NET 2008 the Parameter panel shows the Value, which is LocID and not the description which is LocationName. This is NOT very useful.
I have tried other third party Crystal Reports viewers as well. They all exhbit the same discrepancy.
How can this be resolved?
Any help is greatly appreciated.
Thanks in advance.
- Rajan.Hi Don,
Thank you for your response. The assemblies and their versions are as follows;
CrystalDecisions.CrystalReports.Engine - 12.0.2000.0
CrystalDecisions.Enterprise.Framework - 12.0.1100.0
CrystalDecisions.Shared - 12.0.2000.0
CrystalDecisions.Windows.Forms - 12.0.2000.0
Thanks,
- Rajan. -
Crystal Reports 2008 - passing a parameter in the Command Object
Hi,
I am using Crystal Reports 2008. I have 4 Command Objects where I have the following queries.
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntFSw from emmain where emtype='SWOR' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntMCiv from emmain where emtype='CIV' and emsex = 'M' and emdateterm is null group by emrace
select emrace,count(empl_id) cntMSw from emmain where emtype='SWOR' and emsex = 'M' and emdateterm is null group by emrace
I want to pass a parameter to all these command objects. I want the user to select a parameter from a list of values. So, I created a parameter object, Bureau. (I get the values for the parameter with this command object: select code_agcy, descriptn from systab1 where code_key = 'UNIT'). I want the user to be able to get the counts for each bureau.
How do I pass the parameter that the user picked to those command objects. I tried doing this:
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null
and emunit = '{?Bureau}' group by emrace
But it did not work. Any help will be greatly appreciated.
Thanks.Hi,
I am using Crystal Reports 2008. I have 4 Command Objects where I have the following queries.
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntFSw from emmain where emtype='SWOR' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntMCiv from emmain where emtype='CIV' and emsex = 'M' and emdateterm is null group by emrace
select emrace,count(empl_id) cntMSw from emmain where emtype='SWOR' and emsex = 'M' and emdateterm is null group by emrace
I want to pass a parameter to all these command objects. I want the user to select a parameter from a list of values. So, I created a parameter object, Bureau. (I get the values for the parameter with this command object: select code_agcy, descriptn from systab1 where code_key = 'UNIT'). I want the user to be able to get the counts for each bureau.
How do I pass the parameter that the user picked to those command objects. I tried doing this:
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null
and emunit = '{?Bureau}' group by emrace
But it did not work. Any help will be greatly appreciated.
Thanks. -
Unable To Print or Access Page Setup in Crystal Reports 2008
I have Win 7 32 bit, and installed Crystal Reports 2008 last week (v12.0.0.683 from the Help window).
Every time I open a report, and from the Preview tab clicking File -> Print, or File - > Page Setup, I immediately receive a Windows message that "Crystal Reports has stopped working". After a few seconds, another Windows message displays "Crystal Reports has stopped working - a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available". Then Crystal completely closes.
I downloaded sample reports from the BO website, and still receive the error, so I don't think it's the report.
When I view the Event Log, I see the following:
Faulting application name: crw32.exe, version: 12.0.0.683, time stamp: 0x47c8be9a
Faulting module name: ntdll.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdadb
Exception code: 0xc0000374
Fault offset: 0x000c283b
Faulting process id: 0x94
Faulting application start time: 0x01cc1fc304e98ecd
Faulting application path: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crw32.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 3cfc99e6-8bb8-11e0-b8ef-00248122792c
I have uninstalled and reinstalled CR 2008 multiple times and continue to receive the same error. I tried updating to SP1 (Version 12.1.0.892 Incremental) but I receive the following error: "A BusinessObjects product at a lower patch level is detected. The installation cannot continue. Please update all installed products to the SP1 patch level, then restart this installation".
Need to print my reports - any ideas?Sorry busy on Support cases and they take precedence over this community forum.
Very interesting....
In a test application I use I have this routine to get the local printers:
private void frmMain_Load(object sender, System.EventArgs e)
if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
foreach(String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters )
cboCurrentPrinters.Items.Add(myPrinter);
cboCurrentPrinters.SelectedIndex = 0;
else
rdoCurrent.Enabled = false;
EnableDisableCurrentControls(false);
//For printers exposed to System account as per MS Kbase
//http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
//Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
Microsoft.Win32.RegistryKey mySystemPrinters =
Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
cboDefaultPrinters.Items.Add(defaultPrinters);
if (cboDefaultPrinters.Items.Count > 0)
cboDefaultPrinters.SelectedIndex = 0;
else
rdoDefault.Enabled = false;
Note the MS Kabse on where the printer registry is. Now the odd part is on one of my test development PC's it won't populate the Default User Printer list, only the Local User Printers. I take this same app to another PC and it works just fine. The register keys are there but for some reason on my Windows 7 64 bit it won't show them, the other strange part is I have full access to both keys. I have not been able to figure out why this happens...
I'm thinking this may be related to your issue.... But I don't have a solution, very strange... I've even gone into regedit32 and set full permissions on the various keys and it still doesn't work...
I have other VM-ware images if I need to get past that part for testing so I never drilled into why, I believe it has to be some Windows/Firewall/Anti-virus configuration or something our IT department pushed into my local Profile.... What that is I don't know unfortunately.
I'll do some looking and testing. You may want to post this on Microsoft forums as well.... Ask about printer permissions.
Thanks
Don
Maybe you are looking for
-
Is my ipod hard drive dead?
since yesterday i have been having problem restoring my ipod. when i restore my ipod through itune the restore goes somewhat fine ipod reboots, apple with progress bar then the plain apple logo and it stays there for 5-10 min and goes to do not disco
-
My iphone4 in Photo stream got 462 pcs pictures but backup to PC Windows base icloud software Photo stream just backup 262pcs pictures, How to backup full pictures to my PC?
-
Add new item automatically during delivery creation(tcode: VL01N)
Hi Business requirement: Sales Order has material X. when delivery is created, system should add material Yautomatically in delivery. Example: Sales Order: Item 10 Material X Delivery: Item 10 Material X Item 20 Material Y We are using 4.6C. We ha
-
Unknown server-error, sign-in not available
Hi. First of all, sorry for my bad english. However, I hope you'll understand my question. Since a few weeks, I cannot sign-in in the adobe desktop-launcher to update my apps or download new apps. Even when I start it from within the browser the sign
-
Color differences between LR and CS4
I've recently switched from PC to MacbookPro and installed latest versions of Lightroom and CS4. I do most of my editing in Lightroom and sometimes export to Photoshop. I noticed that there is a huge difference between the colors in Lightroom vs the