SSRS report objects rendering - sql-server

I have a SSRS report which contain two Tablix objects with different format, one for horizontal and another one is vertical. Both are using the same procedure. The objects are hiding based on one report parameter what the user selecting "Horizontal/Vertical".
My question is that when the user selecting one format and viewing the report, both the objects will render the same time or only one based on the selection ?

Some processing occurs, but not all.
I believe any report processing (calculations) will still be executed even when an element is invisible - see Adriaan Stander's answer here
If you inspect the HTML that is generated you will see that the HTML from the invisible elements is not there. From my experience with .Net and the visible/invisible setting I believe this would avoid the HTML processing both on the server side (the HTML is never generated) and on the browser side (there isn't any extra HTML to display).
Basically, any caluclations (SUM, AVG, etc) will still be executed, but the actual HTML rendering will not happen.

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.

ExtJs Grid lines posting unwanted field / column values

Need your help on below issue I am facing while posting grid lines to server
In my ExtJs (6.0.1) application, I have Grid with Store (Ext.data.Store) and Model defined. I have fields definitions in Model. The number of fields defined in Model for grid lines are less than the fields / columns returned from the server. I have included only those field definitions which are mandatory and are required to be displayed in Grid.
Data gets loaded in Grid successfully without any issues. However, while posting the data, i.e. Saving the grid lines after editing, I noticed, columns / fields are being submitted which are not part of the field definition in Model. I don't want that, I want to submit only those column / fields which are defined in Model. I think, when data is loaded in Grid, the Model definition is modified to include extra columns returned from server.
Can anyone please, suggest why this is happening ?
Another issue is that, if I edit any one of the column value in grid using POPUP window, it updates the values of other fields which are either empty string or 0. For those fields, values are being set to null, which is causing exception on server side as its expecting either Empty String or 0, and instead getting NULL.
I have tried many alternatives, however, no success. Please HELP !!!
This is happening because Sencha decided so, citing performance reasons. In ExtJS 4.x, the model was required and had to be kept up to date. Nowadays, it is only seen as a loose guideline. If you want extra fields not to be submitted to the server (well, the server could safely ignore these posted values...), you have to add them to the model explicitly and add persist:false.
If I load data into a grid, and edit the record in a popup window with a form using loadRecord and updateRecord, the values that have no corresponding form fields are not overwritten. If one uses getData and setData, on the other hand, the values are overwritten. This is by design, because getData/setData is intended for raw processing, while loadRecord/updateRecord is intended for record editing.

adding checkbox to ssrs tablix that will be manually clicked

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.

Page header on two subreports of different length side by side (ActiveReports)

I have a report that contains two main subreports, each taking a vertical half of the page, so they go side by side. Each has their own page header which I emulate by using a groupheader and seting the RepeatStyle property to OnPageIncludeNoDetail. However, both may have a different length, and I want the rightmost subreports to show the page header even if the report has no more data to show. In other words, if the right subreport takes less pages than the left report, I need for it to keep printing the header data on each page until the leftmost report ends. This is failing right now because once the subreport on the right is finished, it assumes the header needs not to be printed anymore.
I've tried adding a page break at the bottom of the subreport on the right, but as I don't know how many pages either of the subreports have, I don't know whether I should enable it or not until too late (or at least I didn't find a way to do so).
BTW, I'm using AR3 but upgrading to AR7 is supposed to occur at some point of the future...
Once a subreport ends and is no longer being put on each page it won't be possible to get it's page header rendered on the next page. I think your best option here is to use a parent report to include the pageheader information as only a parent report will continue to render as long as either one of the subreports render.
Note: It doesn't need to be the same parent report you're using now, but you could be another in between the current parent report and the two subreports to deal with the page headers.
I would suggest that you use groupheader/footer in the subreports instead of pageheader/footer and set the repeatstyle property of groupheader to OnPage.. Pageheader/footer in subreports are not supported because Subreports are not page aware.
The pageheader/pagefooter of the main report with render fine as scott mentioned.
I found a way to do this although it is not flawless. But the problem may be only on AR3 and hopefully fixed on AR7.
What I did was move the right subreport's header on a separate header of the master report. So now the master report has a page header, then the new group header (let's call it ghPage), and lastly the group header that originally contained both subreports.
Then, I set ghPage's property UnderlayNext to true, taking care to leave the necessary blank space to let ghPage fit in.
That's it, and it seems to work, but... when the left side subreport takes less than the right's page header high, this last section appears cropped to the left's height.

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