Is there a way to show a dynamic information datatable report in an order defined by user in jsp? - html

I have information stored in mysql database which i am showing in a datatable report. I want an advanced functionality wherin user gets to select which columns he wishes to see and also gets to select the order of columns in which he wishes to see the report. Is this even possible ?
At present, i have reached to a point where user can define the columns he wants to see and every time he logs in, he gets to see those columns when the report loads.
Currently the challenge is showing table columns as per user defined order.
I want a road map to achieve the goal of giving user the facility to define the order in which he wants to see the report and see only those columns which he wants and in the order which he likes to see every time he logs in and uses the software. What do i need to do in my front end and backend ?

Related

Best Approach for Bookmark Drill through in Power BI

I have a single session date(Day) chosen on the Dashboard home landing page ( page 1) via a dropdown date slicer. The chosen date is a selected date measure defined as:
SelectedDate = cALCULATE(max('Date'[DayTextLong]),FILTER('Date',SELECTEDVALUE('DateSelector'[DateId],MAX('DateSelector'[DateId])) = 'Date'[DateId]))
DateSelector table is a standalone disconnected date table that is a cutdown list of dates for dropdown to select a day for slicer. There is a connected DATE table in this data model.
On a scorecard on the Dashboard home landing page ( Page 1), for a daily amounts on sessions I have a bookmark( as cant drill through on scorecards), to a details table and on that page 2, I want to show the details of which customers. This is from a table that contains a request date and I need to filter the table by the selecteddate measure . How can I show a summarised table visual on Page 2 that filters from the Selected Date measure chose on Page 1?
I was trying to create a measure (Request Date Boo) that would set a measure to 1 or 0 for the relevant records to show from Session Requests table , which is just Session Name, Customer Name and request date , and then put a visual filter on for page 2 to say where Request Date Boo=1. This fails with an error around single value not being found as it telling me I need to aggregrate the request date.
I want to do this properly and wondered what is the normal way of showing a visual on page 2 of a Report , where you want to use a date and apply a filter to another table in the data model using that date.
Hope the question makes sense.
For what I understood, you have a filter on page 1, that must be kept when you navigate to page 2.
I've got three options:
Put the same date filter slicer on page 2 and allow it to sync with the others. In this way, when you navigate between pages that share synced slicers the filters will be kept. (this was also suggested by a comment)
Use the drillthrough functionality (docs here). This is a bit more complicated and does not create a "standard" page but it allows you to navigate to a detail page, based on a set of configured fields, when you navigate to this page you can also keep all the filters that were set before reaching this page. (This is a bit complicated to explain, the best thing you can do is to try it and see if it suits your needs)
Use What If parameters (docs here). I've never used for something like that, but if you can use them to choose a date you may use them to solve your problem.
All considered, probably the first solution is the easiest and most common solution for this kind of problem

Access 2016 drop-down list appearing in Reports and Queries

In Access 2016 I have a table called 'Orders'.
I also have a Form (also called 'Orders') that we use to enter order information. On the form, one field in particular ('Company') is a drop-down list. The control source is a second table called 'Companies'. And the Row Source is a SQL Query:
SELECT [Companies].[ID], [Companies].[CompanyName] FROM Companies ORDER BY [CompanyName];
So, when the user is entering an order into the Form, he/she can select the company name from this drop-down list and it in turn updates the Orders table. All basic stuff, and it works fine.
Next, I created a query (also called 'Orders') and it is based off of the Orders table.
When I run the query in Access and view it as a Datasheet, I was surprised to notice that the Company field (IN THE QUERY datasheet) is a drop-down list. Not only that, it even lets me change the value - right here in the query! If I view the SQL for this query, I can see that it is a SELECT query. In my mind, a SELECT query is read only. So my questions are - What's a drop-down list doing in a Query, and WHY does Access let me edit the values directly in the query? Isn't this supposed to be read only?
Next question:
After verifying that all of the data I need is in the Orders query, I then created a report (called 'All Orders') and the control source for this report is the Orders query. (not the table).
When I view the Report in Design view, there's the drop-down list again. Why? I am just looking to add the Company name that the user selected when they completed the form. I realize that the form Control for entering that data (on the FORM) is a drop-down list. But here I am building a report and I just want the VALUE to appear here. Not the drop down control? (I know that when I print the report or view it on the screen, the drop-down boxes go away and all I see is the actual text). But my question is - WHY is Access showing me a drop-down list control on a report? and in a select query? The query and the report are no place for editing data. I just want the value that was selected.
That's because you've defined the lookup list in the table. If you do so, it propagates to queries and new reports and forms, and will be the default way to view the data everywhere you've placed it.
Open your table in design view, and change the display control for your field back to text box. Note that any forms and reports will need to be edited or recreated, for queries the change should propagate.

Access - preview what an update query will change

I am using Access to update values within a sharepoint list.
I have the sharepoint list linked as a table, and an excel file with the changes also linked in. These are linked by Purchase Order Number.
I can do an update query and it will update the appropriate values into the sharepoint list. However I would like to "Preview" my changes before I commit them.
What I would like to do is:
Show the purchase order number (key that is common to both lists)
Show the value currently in the sharepoint list
Show what it will be updated to
Then finally tell it to go ahead and make the change
I know this is a basic question but searching doesn't seem to come up with anything similar.
Simply use a select query with the SAME criteria and send the results to a continues form with a “update” or “cancel” button. If the user hits ok, then you run your update/insert query as opposed to the select query that is displaying the data in your current form (or even report).

Selecting multiple parameters for a report, how to create multiple pages per item in parameter list?

I have a report that is a form per order number selected prior to running report. I want to make it so that you can select multiple order_nos from a list (populated by a query that runs first). Right now, it throws an error saying ANY or ALL must be used. I think it is trying to use both order_nos as the parameter for the report. I want it to create the report using just one of the order_nos at a time, and just replicate the report several times. Is this possible?
The attached photo shows what I tried to do and the error thrown.
Error
If you want to create completely separate outputs then you will need to do this by creating a data driven subscription for your report.
The subscription will execute your report iteratively for each record produced in a preset master query that you create.
Each record in your master query should return all the order no's you wish to execute the report for.
However, if the report needs to remain interactive, and the order no's is only decided at runtime. Then i suggest you keep your report as is. Put a grouping on your tablix based on order no then apply a page break per group instance.
This will produce a single report output with each order no appearing on a different page.
As said above if you want a completely separate output (multiple excel/pdf file outputs) then you will need to use a data driven subscription.
If you need detailed steps on how to do either of the above then just let me know here and i can include steps.

How load the subreport data in a single database hit in SSRS?

I am using SSRS, the situation is that I am loading users in the Main report and I have created a sub-report to display the user addresses (there can be multiple addresses per user).
Now after adding the sub-report the report becomes considerable slow. My guess is that this is due to the fact that the Main report needs to fetch data for sub-report for each user in the list.
What I want to achieve is to load all the data for the sub-report in a single database hit and then just filter the records in the application. Is there a way to do this in SSRS reports?
If any other information is required then please let me know.
Thanks for your time.
If you want to do that then you should use grouping to achieve it. For example, have as your dataset query some Sql like:
SELECT User.Name, Address.StreetNumber, Address.Street, Address.City
FROM User
INNER JOIN Address ON User.Id = Address.UserId
ORDER BY User.Name
Then on your tablix add a Group (right-click on the handles on the right of the tablix to add a group) to have a row showing the user details then in the Detail group add the addresses (you can add more detail rows if needed to format it nicely again by using the tablix handles).
This will show the user then show all the addresses for the user, then show the next user and so forth.
you could consider using a shared dataset and enable caching on the properties (to be done on the SSRS itself)