Wondering if someone can advise on the following please:
In SSRS I have a date from and date to parameter - If I enter a date where the year is less than 30 it will prefix it with 20 I.E 01/01/19 and tab off will change it to 01/01/2019 but when we enter a date with a year of 30 or later it prefixes it with 19 so 01/01/30 changes to 01/01/1930.
As this report will always be in the 2000 - 2999 range they have requested that when you enter the year and tab off it always prefixes it with 20. Is there a way to do this?
What and where is the default width and height of the SSRS portal? For some reason when this loads it has the scroll bars on the side and bottom. This doesn't look too great and also when a report loads that has scroll bars on the report the IE scroll bars hide them so you have to move those up and down to get to the report scroll bar if that makes sense? The users are hating this.
I understand I can manually zoom in and out to make the page fit, but that isn't a solution for everyone using these reports, they will become frustrated. They aren't being used on small monitors either so shouldn't need to load with a scroll bar on the actual screen.
There's not an easy way to change the behavior of the date box. You could change your date parameter to a text field and handle the formatting when you use it. It wouldn't change when they type though.
WHERE D_DATE = CAST( CASE WHEN LEN(#DATE_PARAM) = 8 THEN LEFT(#DATE_PARAM, 6) + '20' + RIGHT(#DATE_PARAM, 2) ELSE #DATE_PARAM END
As far as the scroll bars, does your report have extra space in design mode? You can control that by grabbing the right or bottom edge and making it smaller or using the Page Size property of the report. There is also an Interactive Size property that may also be increasing the size of your report.
Related
I'm new to SSRS reporting and having some problems with indicators. I am trying to use an indicator to show how long a reservation has been open based on the number of days between the current date and the RequirementDate (which is a field in the dataset).
What I want logically is this:
If number of days is less than 6 months old, show green
If number of days is between 6 months and 8 months, show yellow
If number of days is greater than 8 months, show red
Also, I'm not sure where I would enter this kind of formula, as I am doing this from the Indicator Properties window.
To set these options go into the indicator properties. The easiest way to do this is to right click on the center of the indicator and click Indicator Properties. Then click on Value and States.
Setting the Green, Yellow, and Red ranges is straight forward for your use case. Just fill in the start and end values with the range of days you want. To set the expression you want for the value click on the fx button next to the value field and use an expression like this one to calculate the days between a date and report runtime.
=DateDiff(DateInterval.Day, Max(Fields!RequirementDate.Value), Now())
This is in Crystal Reports 2008 version 12.2.0.290
I am working on a report a previous employee created. I want to change one of the groups but the window size is too small to see the full field name and I don't see any way to resize it or to see the entire field name. Many of the groups are different only by the right most portion of the field name for example Here are groups 1-4:
SUMMARY_AGED_ACCOUNTS_RECIEVABLE_1
SUMMARY_AGED_ACCOUNTS_RECIEVABLE_2
SUMMARY_AGED_ACCOUNTS_RECIEVABLE_3
SUMMARY_AGED_ACCOUNTS_RECIEVABLE_4
Since I can't see all the way to the right it is an annoying process of trial and error.
Secondly in design and previous views the section chooser area to the left is too small and truncates the field name in a similar manner. Is there anyway to resize these portions of the program? Is there another area of the program where I can choose groups and see the entire field? You can see what I mean in the screenshot below.
I have a query with about 30+ columns and i want the columns header to all appear in 1 row but right now it is displayed in 3 different rows and same goes for the data.
I have tried increasing the width of the report in the Main section,header and even trailer but the change is not being reflected on the paper layout when I run it.
Is there any other way to increase the width?
Thanks in advance for any possible help
Go to object navigator.
select main section in the paper layout tab.
double click or right click on the main section to open it's property inspector.
then select width and write your desired length (e.g 20)
I am using a ZedGraphControl in a WindowsForms project in C#. The ZedGraphControl is V5.1.5.
The data in the control is static and I add it all before the form is shown. The X axis of the data consists of numbers indicating seconds offset from the beginning. in other words from 0 to some number of seconds.
I want to initially show the last 5 seconds, but provide a horizontal scrollbar so the user can scroll back and forth. I set the "graphPane.XAxis.Scale.Max = maxX;" where maxX is the largest X value in my data. I set the "graphPane.XAxis.Scale.Min = maxX - 5;".
The data starts off displaying the way I want it, but when the user scrolls the horizontal bar, bizzar behavior occurs.
As you drag the thumb of the scrollbar to the left, the beginning of the data shown in the grid moves to the lower values as expected, and the thumb of the scrollbar moves to the left, but the right edge of the thumb stays at the right of the scrollbar and you cannot move back to the right. It is as if the data to the right of the viewing range gets truncated as you scroll left.
I cannot find any reason for this nor any way to control it. Does anyone have any ideas about this behavior?
Ok, found it myself.
I found a fine article that describes scrolling:
Add a ScrollBar
In it the author specifically says "the scrolling will be wacky because the scrollable range has not been set".
I used the sample "Manually Setting the Scroll Range" and the part that I was missing is setting the zedGraphControl1.ScrollMinX and zedGraphControl1.ScrollMaxX properties. Once I defined these values everything started working as expected. I also found that in my case, the value of zedGraphControl1.IsAutoScrollRange had no effect, but I left it set to false to be consistent with the example. This would probably have an effect if the dataset is dynamic.
I would like to set up a view controller with a 2-component picker where each side contains the same 7 objects. Each object carries the same value for both components. The user would make a selection from each side, enter a value in a provided text field (and optionally tap a "Calculate" button). A calculation would occur using that value and the values from the two picker component objects that were selected and the results would be displayed in a label.
For example, each picker contains the letters a - g. Each letter carries the value of 1 - 7 respectively, for each side of the picker. The user selects "b" and "d" and enters 10. The calculated result of 10 * 2 / 4 = 5 is displayed.
It sounds simple enough. I've found tutorials for doing calculations using values associated with a 1-component picker as well as working with 2-component pickers, but nothing for doing calculations with 2-component pickers. My experience with Xcode is somewhat short. So, feel free to go into detail.