google sheets checkbox increment counter - google-apps-script

I am making a checkbox inventory counter that auto increments
I have tried many if then statements to increase a cell value when a box or multiple boxes is check. The best I could do was display a number but it disappears once the checkboxes are unchecked. So I would like and cell to auto increase by 1 after the last or all boxes are checked

Related

How conditionally format text color for an entire row based on the value of a separate field in SSRS?

I have an SSRS report and I want to dynamically change the text color for the "entire row" based on the value of the year field. So for instance if the fiscal year is current, make the text green and otherwise black. I found solution to conditionally update the background color for the row and I understand that using textbox properties I can achieve this for one single cell. The problem is that my reports are massive. Is there any way to apply the condition to the entire row or segment of the tablix without the need to copy the condition hundreds of times?
Thanks,
Matt
Just select the row header on the left of the tablix, hit F4 to get the properties panel visible, and set the 'Color' property expression.
What this actually does is set the `Color' property of all the selected cells/textboxes and, by clicking the row header, you have selected all the cells on that row. This means that you can still change individual cells if required.
In short, the Row does not have a Color property of it's own but by selecting the row we can set the entire row in one step.
Additionally, if you want to select a bunch of rows, or cells, you can do this by Ctrl+Left Clicking (or dragging round cells in the same scope) and then setting the properties en masse.
All the above work for most properties such as size, format etc.

SSRS: Position Matrix Cell at Intermediate Column Grouping Level, and also inside a Row Group

I have an SSRS matrix that has one level of row groups and two levels of column groups. I have a textbox that is positioned inside one of the column groups, and outside of the other one, which is what I want. But I also want this textbox to be positioned inside of a row group.
Basically, I would like #1 in the screenshot below to have a row group associated with it so that #2 is inside that row group.
My goal is to conditionally set the row-visibility for the first row. But "row visibility..." is greyed out. As far as I can tell, the way to get the option is to make sure it's inside of a row group.
The reason I want to set visibility is because the user has the option to show or hide charts, and separately to show or hide data. If the user selects both charts and data, then I don't need the first row because the label for the data can describe the chart as well. But if the user only selects charts, then I need that first row.
If there's another approach outside of minimizing the row height, I'm all ears.
Though I'm still interested in whether this puzzle is even solvable, and if not, why not.
Steps to Repeat
A version of this problem can be repeated as follows:
Insert a new matrix in a report
Just fill in dummy values, such as a blank space, into the "RowGroup1" and "ColumnGroup" "Group On" expressions.
Add a parent group to the column group, and similarly just give it a dummy grouping expression.
Delete the second row of the matrix, via "Delete Rows Only"
You now have a matrix with the same problem. Namely, get the second cell of the first row, to be inside of a row grouping.

How should i do to move the checkbox to the same row as the display field?

Web page display
I want to be able to have a checkbox on the action column of every rows of data display.
Code
This is my code. The problem is that the checkbox is creating its own row at the bottom of the row that i want it to be at. What should i do, so that the checkbox is at the same row as "raise it up"?

how do I hide parent row when child rows expanded?

I have a data set that consists of the gross dollar amount on row 1, 1-n number of rows of various details then a last row that shows the gross dollars minus the various row amounts. I am trying to replicate some expand/collapse functionality used in an internal ASP report page where the initial row is the NET value (collapsed). When expanded, the gross, detail, and net rows show up in a "expand up" action.
I have been able to so far get the parent row to show the NET values when collapsed, but I am trying to find a way to hide the contents of the parent row once expanded so that the NET values are not displayed twice.
Is there some kind of "is hidden" property I can use in an expression to hide the data in the cells? not sure how else I can accomplish this. Any help would be appreciated.
thanks!
The only thing I can think of that might help is inscope(). You can use something along the lines of:
iif(inscope("ChildGroup") = TRUE ...
This will test to see if the current item is within the scope of the grouping, which means that you can test if the current group is expanded or collapsed.
See https://technet.microsoft.com/en-us/library/ms156490(v=sql.100).aspx for more information on inscope().
so after much research it appears this cannot be done thanks to SSRS producing a static report once rendered. The inscope function allowed me to set the initial state of the row, but does not give functionality to update report properties after rendering occurs. my only options would be then to create a second parent group (grand parent?) or insert an action that calls the report over again passing in a hidden parameter.
thank you for your help!
I believe you can do this, but you'll need to make some adjustments.
A. You can't put your gross dollar amount in the row you'll be using to expand/collapse.
B. Don't use group visibility to expand/collapse. You'll need to use row visibility. (This can get tricky and I don't recommend it if you have nested groups. It becomes unmanageable.)
Row 1: Toggle
Row 2: Gross Dollar Amount, default visible
Row 3-n: Various row Dollar Amounts, default hidden;
Set rows 2-n to toggle based on Row 1.
When you the report initially renders, Row 2 will be visible, Row 3n are not. When you toggle, Row 2 will hide, row 3n will be visible.

SSRS - how to check if a row is toggled or visible?

I have a drill-down report in SSRS 2008 and I want to do some conditional formatting on the main row. For example, if it's not toggled add a different background color and different border.
I haven't been able to figure out how I can check if the current row is expanded or not using an expression.
There is a trick(check the result to see if it's ok for you. this solutions leaves a small space when the group is expanded) :
Add an extra column at the left for expand collapse.
Add a second row in the group with color.
Set expand/collapse only to the first row textbox
In the expand/collapse column set the second row textbox visibility to hidden.
Set the first controls(only at the textboxes) visibility to visible and the second to hidden, except the column with expand collapse. Set the first row textbox as the toggle item
Set both rows height to 0 (althought is will be automatically set to a very small value)
Now your report should look like the image below