Add a user clickable check box in SSRS report - sql-server

I am creating a report that for the most part is populated automatically by using variables, parameters with my datasource and dataset. I am trying to add in another column that will have a checkbox, where when the user pulls a report he or she can manually go in and click a check box for various rows. The clicked check box is done by the user and there is no need to send or retrieve data with this check box. Is there a simple solution to where I can add a checkbox for the user to check (and uncheck) various boxes?

SSRS does not deliver this kind of functionality. You would need to have a flag for every displayed row somewhere in your database and add two images to your report, a checked and one unchecked "checkbox" image, show those images on each row (source over expression) based on the flag of the row. Add an action to the image, that executes a storedProc and flags or unflags the row (pass an unambiguous id as parameter).
This is rather dirty, but would work.

Related

How do you remove a dimension in a Google Data Studio report?

How do you remove an obsolete column from a GDS PostgreSQL-based report?
I updated my base SQL to remove some columns, but when I click the "Fields->" button to list all columns, it still lists the removed columns/dimensions. And for some reason that I can't determine, the "Remove" option is disabled so I can't even manually remove them
This is a huge problem/bug because if I then click "Create Report", it throws an error message, presumably because it's trying to access a column that no longer exists in my base SQL.
Am I missing something there, or is this just a buggy interface? How do I remove a dimension?
I can remove dimensions and metric by clicking in the right side of the green container, right next to the ellipsis.
Whenever you add/remove any column/field in the data source. You need to click Refresh Fields to refresh data source fields.
When you refresh data source fields:
Removed fields in the data set are removed from the data source.
For more details, visit Data Studio official documentation on Refresh data source fields.

Insert data in ADF table cell by cell

I am working on ADF application.
I have table and I need to insert data into it cell by cell and column by column in order.
For example:
on start, all cells should be disables except only one cell (the first cell at YearworkDegree column)
if user entered value for that cell it should open below cell.. etc
after finishing YearWorkDegree column it should open first cell from the second column MidtermDegree and so on.
Is there a feature in ADF I can use in that case, or should I think in JavaScript to handle that case.
You can set the properties of one field to be dependent on the other and set partial page refresh between the two - so when you change the value in the first - the second on becomes enabled.
That being said - doing this is going to cause a lot of chattiness to the backend server (on each field change).
So you basically need something like tab navigation between cells but in a different order (downwards). There is no integrated functionality for this in ADF, you have to do it by yourself by writing a custom JS handler.
Please check this example
You can then modify it for your needs (making only the current cell enabled for editing, etc).

Tabbed Reports in SSRS

I have been working on reports in Sql Server Reporting services and I am trying to create a tabbed report.
I wish to have a main report which read in parameter details from the user then in the report there are tabs to other reports which use the same parameter details entered by the user on the main report.
Anyone got any idea how to go about this ? Have tried creating subreports but it doesnt quite create that overall feel of a tabbed report.
There is no native feature for tabs, but you can create that functionality with a combination of existing features.
Add textboxes along the top which will be your tab names.
Add a hidden parameter which will track which tab is selected. Have the first value selected by default.
Add an action to each textbox which goes back to the report with a specific value passed to the parameter.
Add an expression to the border properties of each textbox so that you can visually see which one is selected. For example you can remove the bottom border for the selected tab.
Add a visibility expression to everything else on the report so that the items only show up when their tab is selected.
Now each time you click a tab, it will refresh the report and show that tab highlighted along with the content it contains. It's a lot of steps, but it's the best workaround I've found for this feature.

Opening Button to open form based on combo box selection

I currently have a MS Access database of members.
I have a form that has a combo box which is populated with just the first and last names of members. (using a test database for now)
What im struggling with is how do i create a button that opens another form i have created but using the selection in the dropdown box to populate the fields in the newly opened form.
When a user from the dropdown box is selected an open is clicked i want it to open the profile form populated with their details.
pictures and access files can be found on my ftp server:
ftp://ftp.legends-gym.co.uk
User: ftpuser#legends-gym.co.uk
Pass: ftpuser
Regards
I can't access ftp site from work so can't see what you've got thus far however, the key bits you want to look at here are:
Add a button to the form and the On Click Event to open your profile form. Something along the lines of docmd.openform "frmProfile", acNormal
You need something to pass the member you've selected in the combo box to the profile form. One way might be to use OpenArgs so have a look at that
You then could use the passed variable in OpenArgs to select the data you want to fill out your profile form.
EDIT...
OK, I've had a look at the file now. Here is what you need to do to fix your problems (and a couple of extra bits which aren't causing an issue but will improve the look and feel).
On the Format of the Home form and the Member Search form, set Navigation Buttons and Record Selector to false. - This removes the unnecessary elements for a "single" form, you're not looking at records.
On the member search form, remove the binding to the members table. - You don't need to bind this form, as the recordsource of the combo is pulling the data required separately. if you look at your form before you change it, you'll notice you've got 1 of 10 records...
Also, remove the filter criteria and set filter on load to No - You were filtering the wrong form.
On the combo box, remove the after update event. - I'm not sure what that was trying to do but its completely unnecessary.
On the command button, add an onclick event which has the following code DoCmd.OpenForm "Profile", acNormal, , "ID = " & Me.Combo361 & ""
Save everything and enjoy. :)
You weren't far wrong with the filter, but it's actually a WHERE clause when opening another form - sorry, my bad misdirection. What you were doing was filtering the original form - ie the member search form. Also, you don't need to put ' quotes around the ID, it's a number not a string.
If you have problems I can probably host this fixed version somewhere for you to download.

Update database with Microsoft Access 2003

Hi guys i have a form with 3 tabs in it and every tab is supposed to update different table, can anyone tell how to do it with a button for every tab? Pretty much like a form built with HTML?
Access forms generally use bound data controls, which are quite different from HTML forms. If you want to use bound controls, place a sub-form on each tabsheet. Set the record source for each subform to the table you want to update. Then drop some fields from the table onto the subform.
If you want to use unbound controls, arrange some controls each tab as desired. At the bottom of each tab, place a button labeled Submit. In the CLICK event handler for each button, write code that does one of these two things:
Gather the values together, create an INSERT or UPDATE statement as appropriate, and have the database execute it with DoCmd.RunSQL.
or
Create an ADO or DAO recordset object for the row you wish to update or add and then write your values into the fields for that recordset.

Resources