Suppress time field in Crystal Report Footer - sql

I have a crystal report - Version 8.5. In report footer, I have a field which is time field (format will be "00:00"). I need it to suppress, if the time is "00:00", but not if its anything else like "9:30" or "15:00" etc.
Any suggestions, because I've already tried everything else like suppress if ctime(field) = ctime("00:00"). Any other suggestions?. I Cannot change the output of the sql query.

Follow these steps:
Right click the Time field
Select Format Field...
Select the Common tab
Click the x+2 button to the right of the Suppress checkbox.
Enter the following text: CurrentFieldValue=Time(0,0,0)

Related

RDLC: change Now format

I have a Problem with a RDLC,
if I see the Now value before Render, it is in DE format
(03.11.2015 12:07:16),
when I show the Now Value after .render is 11/3/2015 11:56:44 AM
why change settings????
Report Language has to be set.
<Report>
...
<Language>=User!Language</Language>
</Report>
Hi there is another way from inside the Visual studio editor.
When you select the field in the property windows there is the language setting, from the combo box you can choose the language that you want or set a parameter that id passed to the report, as you can see from the picture.
right click on the box containing the date , then select option "Expression" finally you must put something like:
=CDate(Parameters!dateStart.Value).ToString("dd.MM.yyyy hh:mm:ss")
"Parameters!dateStart.Value" change it to your data source
finally you click on "accept"
The reason for the change is because the server format , Where is the application , has a regional configuration

Creating a form where user inputs start and end dates of a report

I am working on MS Access 2007.
I am trying to create a form where the user will input 2 dates - a start date and an end date. I want these dates to become the boundaries of a report.
For example if the user inputs 01/03/14 and 10/03/14, I want Access to create a report of the data (eg Selling Price) between these two dates.
How can I do this?
There are a few ways to perform this.
The easiest, and most straight forward, in my personal opinion, involve creating a form where the user(s) will be entering Start/End dates, using a query that captures all of the information necessary for your report (including your date parameters), and the report with your query as the recordsource.
Form
Create a form with 2 text box controls: Name them whatever you like (StartDateTxt, EndDateTxt, for example), and a button control.
Query
Now, create a query, that retrieves all of the correct information you need for this report. I know you said selling price, for starters.
For the date fields you want to narrow down your search by, you need to put them in the WHERE clause or the Criteria field in QBE. It might look something like:
[Forms]![YourFormName]![StartDateTxt] and [Forms]![YourFormName]![EndDateTxt]
Note: Referencing fields can sometimes be tricky.
Report
Next, you need to create a report. If you're new to this, you can use the Report Wizard located at: Create - Reports section - Report Wizard.
You can select your query from the dropdown list on the first prompt, and add the fields you desire/need. Click next: Here you can sort your order of appearance on the report. Click next: Then you can justify your layout - if you aren't familiar with the differences, you can play around with them. Click next: Select a 'theme' to be applied to your report (font/colors, etc). Click next: Then you can either preview the report or Modify the report's design. (Really, you can do either, by clicking either button and clicking print preview or design view.)
If you click on Preview the report - Access should ask you for any parameters your underlying query requires.
Back to the form.
Right click on your button control. -> Properties -> Event -> OnClick -> click the [...] icon to the very right of the row. Select code builder.
VBA
In-between Private Sub and End Sub, you're going to write
DoCmd.OpenReport "YourReportName"
You can also check to make sure your report isn't already open.
Dim ReportName As String
ReportName = "YourReportName"
If CurrentProject.AllReports(ReportName).IsLoaded Then
DoCmd.Close acReport, ReportName
End If
DoCmd.OpenReport ReportName, acViewPreview
I hope this helps you/answers your question.
Edit: If anyone wants to edit/add on to this either by means of clarification or another alternative approach, please feel free. Just let me know.

Show / Hide Fields in Pentaho Report Based on User Input

I'm trying to show / hide fields in a Pentaho report based upon user input.
For example, I would like to offer a checkbox to the user saying "Show Product Count" -- if the box is unchecked, it will not include that column in the report.
Is there a way to do this in Pentaho Report Designer, perhaps using Parameters?
Thanks for the help -Monica
Yes, you have half the answer. Have a Yes/No Parameter "ShowProductCount"
Then on the conditional fields, go to the visible property, click the + formula icon and enter:
=IF([ShowProductCount]="Yes"; TRUE(); FALSE())
Simple! :)
There is more to this that the above answer. For example, if you don't want a field to show on the report, you pass the value mentioned above by Codek but the field will not show but the space for it will. The field has to be in a BAND and the band layout has to be set to ROW. Also, on the field you want to not display or display based on user selection, you have to set that field's style properties under size & position - invisible-consumes-space = false.

SSRS not displaying data but displays data when query runned in tsql

I have a SSRS report that do not display data in preview mode. However, when I run the same query in SQL Server 2008 R2 I can retrieve the results
What could cause this?
I also used Set FMTOnly to off because I use temptables.
if you use "SQL Server Business Intelligence Development Studio" not "Report Builder" then on reporting services (where is you table):
click View -> Properties Window (or just press F4)
select the tablix
on properties window find "General" and in the "DataSetName" choose your "Dataset"
On tablix fields set values from your "DataSets"
Or just do like here(from 8:50): http://www.youtube.com/watch?v=HM_dquiikBA
The Best solutio
Select the entire row and change the font to arial or any other font other than segoe UI
default font
default font
no display in preview
no display in preview
changed font first row
changed font first row
first row is displayed in preview
first row is displayed in preview
changed secon row font
changed secon row font
data is displayingig
data is displayingi
A workaround should be:
1) Select the parameters and click on View Report (you will not see nothing or some cells will display content and some not)
2) Click on Print Layout (next to the printer)
You will be able to see content. If you have expand/collapse functionality and then you will not be able to interact with the UI.
I faced similar issues. If you remove/delete the parameter, open the dataset definition and refresh the fields, the parameter should be recreated. Then run the report. It worked for me.

how to give condition on crystal reports field

i am having invoice table..
in this table i have added CHANGEADDRESS field, for anyone can change the clients address and on report it wil show Old address as wel as Changedaddress..
if there is changedaddress, it wil show the changeaddress field in reports
but
IF thers is no changed address, it should not show the changedaddress field in reports..
plzz help out for the condition
Right click on the changedaddress field on the report canvas then goto format field. On the common tab, next to the suppress option there is a formula editor icon (labelled X-2) - click it. In the formula editor you can now enter:
isnull({table.changedaddress}) or {table.changedaddress} = ''
Click save and close and you're done.