adding checkbox to ssrs tablix that will be manually clicked - checkbox

I have created a stock taking report in SSRS 2008. I have also added an extra column in the tablix.
The extra column I added is a column I want to have the option to manually click on the checkbox if item is in stock.
I have tried using the wingdings option using the below expression:
=iif(Fields!Expr1.Value,chr(252),chr(251))
However the result I get is not the desired result, because I get about 6 winging characters back instead of the check and uncheck boxes I required
How could I go about fixing this ?

One option is to use an Indicator, but I've preferred to use images for similar situations. Embed the two needed images in the report and switch between those dynamically. (You can make standard images of your characters in MS Paint or Paint.NET.)
Images have the disadvantage that they don't print with high resolution, but they do render on most devices (not .csv) and you don't need to worry about installed fonts on the server.
As far as fixing your immediate problem, try changing the "Markup Type" for your placeholder (Placeholder Properties -> General -> Markup type.) It sounds like something is trying to generate HTML when it shouldn't be.

Related

Google Data Studio: Filter inheritance options missing

I've asked this question on the Data Studio community page with no response, and haven't been able to find the answer elsewhere.
I need to stop 2 charts on a page from inheriting the page level control that I have set. From searching around, it appears that there used to be an option to disable filter inheritance, which would achieve exactly what I need. However, that option seems to no longer be available.
I've tried manually setting chart level filters that include all of the information I need, but they still seem to be overridden by the page level controls I have set. I've tried creating calculated fields that hard code the information I need, but they are also overridden by the page level controls regardless.
The comparison that I need to make is between an individual store's customer churn, and the average churn for all stores. The report is an overall report for all stores, with the ability to choose an individual store from a dropdown control to narrow down the results, so I can't set it up with chart-level filters as that would defeat the whole purpose.
Does the filter inheritance option no longer exist, or does it not apply to controls? Is there another way around this that I'm missing?
Thanks in advance! :)
Screenshot of the filter inheritance options missing:
No filter inheritance
Example Data Studio report:
Example report
UPDATE: I have figured out a temporary workaround, which is to set up a separate data source that does not include the fields referred to within the controls. However, this is not a workable solution for reports with a number of pages and a number of controls added, as it effectively requires a new data source for every control that I need to exclude (and sometimes that isn't possible).
Group
One way to ensure that the two specific charts (referred to as Excluded_Charts in this answer) are not influenced by Controls (in this case a Drop-down list and a Date range control) is to Group all charts except Excluded_Charts, which would result in the two charts operating independently from the rest:
Right-click on a blank space in the Report
From the drop-down click on Select > All charts and controls on page
Ctrl+Click on both charts in Excluded_Charts to exclude them from selection
Right-click on one of the selected charts
Click on Group from the right-click menu
Additionally, to make sure that the Date range control does not affect Excluded_Charts select both charts in Excluded_Charts and change the default date range from Auto to Custom.
Ungroup
To reintegrate Excluded_Charts back with the rest of the charts in the report:
Select the grouped charts (selecting a single grouped component will highlight all grouped components)
Right-click on one of the selected charts
Select Ungroup from the right-click menu
Additionally, remember to change the default date range of the Excluded_Charts back from Custom to Auto.
Editable Google Data Studio Report (Embedded Google Sheets Data Source)
I seem to have found a solution - the issue is that I was looking at filter inheritance rather than controls. Controls can be limited in scope by grouping them with the charts you want them to apply to.
Thank you very much for your help #Nimantha! I would have never figured this out if you hadn't pointed out that I was referring to filters rather than controls.

PowerApp - image not showing when stored in SQL Server

I'm doing a Hello World data app using Power Apps. It's simply displaying and editing a list I am connecting to an Azure SQL Server. I have a a table with column called UserImage, which is a Image data type. When I go into edit mode I can add an image and I can see something getting added to the binary column. I've tried converting the image to text (thinking a url or something textual might be going in) but it's funny encoded characters. I was wondering if anyone had any ideas. The images don't display in list or view mode.
As you've noticed, the Gallery control in PowerApps doesn't provide any sort of special empty display message. You can easily add an empty message if you want one, though. Just add a Label control outside of the Gallery and bind the Visible property to CountRows(Gallery1.AllItems) = 0 (with Gallery1 replaced by whatever the name of your gallery is, of course). This will make it so the Label only shows when the Gallery is empty and you will be able to style the Label however you want.
Reference: I work on PowerApps. :)

Opening RDLC Layout in Visual Studio shows <<expr>> instead of value

When I open a report from Dynamics NAV 2013 in Visual Web Developer 2010, every text box shows a field that looks like
<<Expr>>
Where << and >> are the french Guillemet characters. I find this rather difficult because I have to analyze the properties of each text box, if I am looking for a particular field.
For example in this picture, how do I know which field is the Customer Name, Phone Number or VAT Registration No?
Is there any way to configure Visual Web Developer to expand the Expression like it was in Visual Studio 2008 with NAV 6.0?
Preferably I would like to either see a label instead of the generic Expr or just the old Fields!Some_random_field.Value like it was in Visual Studio 2008.
Ah, another feature of NAV & RDLC :)
You'll find that the Expr text appears when an expression reaches a certain "complexity" -- e.g. from just a field;
=Fields!TotalText.Value
to
=(Fields!TotalText.Value)
The fields in the header are usually always Expr as the values are passed using GetData and SetData (and remain that way from NAV 2009 reports). While this limitation was somewhat removed in NAV 2013, you can only put static values in the header -- they won't change across pages which is useless for multiple SO's or Customers for example.
There isn't a way to show it in the properties box, however the quickest way seems to be to select the field, Right Click, "Expression".
I'd suggest giving the textbox a name other than TextBox to make it easier to identify fields (e.g. "SalesHeaderNo");
So after a bit of research I have found another solution. There is a View Element called the Document Outline [Ctrl+Alt+T] which shows a tree like structure of the whole report. When ever you click on an item in your report, the corresponding item in the Document Outline is selected and vice versa. This is quite useful to keep a better overview over your report and to quickly navigate between the different items.
The only annoying thing is that it also shows empty text boxes, so in a sparsely populated table, you will have a lot of textbox123 items in the outline. It doesn't seem there is a way to filter these out.

In SSRS is there a way to copy formatting between cells?

I am developing several dozen reports in SSRS 2008 R2. I am finding the formatting of cells to be the most tedious and error prone part of the task. I know how to individually format each cell.
Is there a way to copy the format of one cell to many other cells?
I would like to avoid doing search and replace in XML, but I am open to it. My dataset queries are parameterized MDX.
Is it possible to format an entire column at once? Or do you always have to format each individual textbox in a column? Is there a way to specify default formatting for each textbox?
Working on the assumption that you're right-clicking each Text Box and using TextBox Properties to edit the formatting options:
If you go to the View menu in BIDS and select Properties Window, you will get access to all properties of each object at once (in my BIDS it displays below the Solution Explorer on the right).
Assuming you're talking about a Tablix control within a report here, You can format an entire column simply by clicking the column header and editing the formatting options in the Properties Window.
When it comes to say 4 or 5 cells together but not an entire column/row, you can shift-click to allow you to format multiple cells in one go.
I.e. click Cell 1, hold down shift and then click Cell 4. The Properties Window will then let you edit all the cells in the selected range.
Riffing off of GShenanigan's answer, it depends on what you mean by formatting. If it's things like color, font, etc, then you could define a variable, set it to the value that you want, and then set the value of the property for the cell(s) to the value of that variable. For instance, let's say that you're going to set all of the cells' font to Courier New. You'd define a variable called "Font", set it to "Courier New", and then for each cell that you want to have this font, you'd set it's value using an expression which evaluates that that variable's value. Then, when the requirements change and all of those cells need to be Arial now, you change it in one place (the variable) and all the formatting changes.
My solution was to highlight all cells in the table that I wanted to change. Then click View to display the Properties box. Go under the Properties box, in the Number section and change the Format. This worked and reformatted all cells as I wanted.
As a note, I had to paste in the format that I wanted from one of the cells that I had already changed.
Steps:
1. Format one textbox with your desired format
2. Select that cell and check its property window and in "Format" area you will see some code
3. copy that and select other textboxes you want to format with same format.
4. paste the copied value in format area of these newly selected textboxes.
5. Finished.
Highlight cells you want to change and set the font using the Report Formatting toolbar. This worked for me after not being allowed to type in the Properties side pane and having the Properties option disabled on the context menu.
You can format a column or a row depending on what conditions you will require for the formatting.
Let's look at the different scenarios (assuming you are using Visual Studio /BIDS:
If all your columns or rows use similar conditions for formatting
you can select the entire row or column => go to properties window => write an expression for the formatting
If a portion of your columns require use similar conditions for formatting, you can pick those columns by using the control key and clicking on these columns and apply the formatting as explained above
If each cell's formatting is based on individual conditions (e.g., you evaluate the data from that cell to format that cell), you either format particular cells or write an external script code

Conditionally setting visibility-toggling in SSRS

I have a report in SSRS 2008 R2 that lists medications and prescriptions. The prescriptions are hidden unless you click on the medication + box to show them.
Now, in some cases, we don't have any prescriptions listed for a given medication -- they're managed by an external provider, but we want to track their existence anyway. This leaves me with the case where we still have the + box, but clicking on it shows an empty line. Is there any way to conditionalize the ability to toggle the line's visibility? Thanks.
ETA: Ok, I just figured out a partial answer to this. I had a spare textbox available, so I added the text "Show scrips" to it and made that the controlling box for the toggle, and then swapped its own visibility depending on whether there were actually scrips to show. However, this makes the borders go away, as well as the contents. Short of removing all the borders (which might be the proper solution, actually), any suggestions?
Here's a thread that discusses this issue: you basically put the +/- into another column and show/hide that based on whether there's data.

Resources