SSRS Interactive Sorting by fill color - ssrs-2008

I have a report that users would like sorted by fill color. Is it possible to do an interactive sorting expression to accomplish this? Or is there a better way to go about this? When the report runs there are conditional formatting rules in place that either make the fill yellow or grey. Want to get all the yellow items to the top of the report. Any help would be appreciated.

You can apply the same formatting rule to the interactive sort. So if you have the formatting rule as =iif(Condition,"Yellow","Gray"), then in the Interactive Sort, under Sort By expression write =iif(Condition,1,2).

Related

Change text in textbox based on value

Is there a way to change the text in a dashboard based on a value?
At its most basic, I want to be able to plug in the word 'increased' or 'decreased' based on a change from year to year for a report.
If you mean the free-floating Text object from the same menu as vertical / horizonal containers, Blanks, etc. then you can only use parameters and a few "special" values like Workbook Name.
However, you can use a worksheet as a textbox instead. Just make sure you clear the default formatting (borders, etc.) and put your calculated field that resolves into "increased" / "decreased" on the Text mark. In the same way you can add up or down arrows using CHR() function and set custom colours (by creating two calculated fields that resolve into "increased" and "" and "decreased" and "")

suppress line conditional in crystal report

I've a vertical line that i want to suppress with a condition.
Unfortunately I don't see the condition option by a line.
When I use an empty textbox, all the other text is moved down.
Is there conditional another suppress option for a line?
You can't conditionally suppress a line in CR. I know of two options to get around that:
Put the line in its own section and then conditionally suppress the section.
Put a textbox over the line and then conditionally format the background of the textbox by right-clicking on the textbox -> Format Field -> Border tab -> check Background check box -> click "x+2" box to enter conditional formula, The formula would be something like if condition then crWhite else NoColor, where crWhite will hide the line, NoColor will show it.
Simple way,
Insert Text object increase the length of the object as required.
Go to Format Object -> select border property and choose Top or bottom lines.
Put some text (like under score or space) for object text and minimize the width of the object so that you can't see the provided data to the object but still border appears as a line.
As it worked for me.
I found an alternative to suppressing a line object, think this might help
CrystalReport1 cr1 = new CrystalReport1();
(cr1.ReportDefinition.ReportObjects["line_object_name"] as LineObject).LineStyle = CrystalDecisions.Shared.LineStyle.NoLine;

How to control formatting and objects in empty filler space when "Keep Group Together" is used?

I have a report where I am using colored boxes to delineate columns. To accomplish this, I've run the boxes from the Group Header all the way down to the Report Footer. Crystal seems to enjoy making the boxes "bleed" up and down the page so that they seem to print wherever they want in the Header and Footer.
I got the idea to use other solid white boxes to control this and it works, except when Crystal adds more filler space when "Keep Group Together" is used. For example, when the next group won't fit so is moved to the next page. This space doesn't belong to any actual Report Section. Unfortunately, if I uncheck "Keep Group Together", I get other formatting problems so that's not an option. Any ideas of how I can get this formatting under control?
The solution seems to be to not span the colored columns into the Report Footer section. For some reason, they're fine when spanning groups and details, but as soon as it hits the RF it explodes.
Instead, I just created new colored column boxes and lined them up in the RF separately. It's behaving itself now.
Try marking your whiteout box Extend to Bottom of Section when Printing.
I'm guessing here: your column boxes are marked Extend to Bottom of Section when Printing, and they're getting extended, but your whiteout box is not.

How to set cell-color according to cell-value on ooo-calc?

I can change the style of a cell using conditional formatting. But there I would be limited to a maximum of 3 cases it can handle.
What I want to do is to get the value of a cell, convert it in a certain way and set the result as the cells background-color.
The simplest example would be cells with values between 0 and 10, resulting in gray-steps between white and black.
Is this possible? Are there ways to set the background-color of a cell automatically?
Thx!
This has been implemented in libreoffice 3.6 (see the release notes)
Format one cell how you want (not one you want to conditionally format).
Press F11 to get the Styles dialogue box
Use the button one from the top right, which is "New Style From Selection"
Type the name you want, e.g. BlackBack
Then do the conditional formatting of the relevant cells, choosing BlackBack
Source: http://www.oooforum.org/forum/viewtopic.phtml?t=61294
Note that you can find "Conditional Formatting" under the Format menu in OOo Calc.
As Joey said: "As far as I can see conditional formatting in OOo cannot do that. Excel has no problems there, though."
It's simply not possible... :-/

How to hilight a section of a TableView cell as part of the filtering process?

The backstory: I am applying a filter to a TableView. It's a simple 'find the rows with this string' filter.
The requirement: I wish to hilight instances of the search term where they occur.
Thus far I can see no means of doing this. ITableColorProvider let's me apply colours to entire cells, but not to a fraction of it.
Clues most welcome.
Looks like the highlighting method is for you
Since 3.5M4, the existing owner draw support for JFace TableViewer and TreeViewer has been extended to allow multiple fonts within cells. For example, this can be used to highlight matching text in search results using a bold font.
alt text http://update.eclipse.org/downloads/drops/S-3.5M4-200812111908/images/multi-font-labels.png