How to change SSRS default multi-value parameter - sql-server

I have a multi-value parameter for States that is populated by a string passed from SQL. The default in SSRS is for the State parameter to look like this:
AL, AR, AZ, CA...
Is there a way to change this so that the default shows just one value, such as "All" instead of listing the entire string? I was able to do this years ago when our SSRS system was built on a .NET framework, but I don't see how to do this straight out of SSRS.
Thanks.

I did this before but you kind of have to play tricks. I cant remember the exact syntax but hopefully this can get you started.
First I had to add an option of all to the datasource query
Select State From StateList
Union
Select "All"
Then there was something that I did to make sure that the all check box was mutually exclusive to checking individual entries. Also it would only work if the All option was checked not if all states were individually checked.
Then in the report query change
Where State In (#StateParam)
To
Where (#StateParam = 'ALL') Or State In (#StateParam)
I hope this helps. If someone knows an easier or more straightforward way I would love to know how.

Related

How to show variable's value in Dialog Name (Einstein Bot)

I need to show the Product's Name in the Menu, I think image says it all:
Click here to see the image
I have a menu, with two options, and the first show a text with a variable, but {!Product} don't works, there is a way of this work?
When I put {!Product} in Message or Question, this works normal...
I didn't find any solution for showing the variable in the title dialog, my solution was to change the message to "Know more about this product", I left a generic message.
Old topic but the answer might help someone.
There's a great article explaining how to get some dynamic information https://www.infallibletechie.com/2021/11/how-to-create-case-from-einstein-bot.html
In your case, I guess you need to
Query your products (the out-of-the-box Einstein Bot query is simple and has a limit of 3 items but you could call a flow or apex to get better granularity on the filter/logic and control le size)
Store the query result in a Custom record list Variable
Query data with a flow
Use a dynamic question and merge fields to display what you want
Top configuration of the dynamic question
Down configuration of the dynamic question

SSRS default values

Ordinarily, this is a very simple thing. My issue is I can't seem to get multiple values, so I'm guessing it's a format issue? In my report, here are the default values:
When I preview the report in VS, it shows up exactly as it should, and obviously, I have the multi-select setup correctly:
NOTE: The values of 2 and 3 are the ID's in the query. This is done to utilize the indexing on these values as opposed to just pulling up a big list of strings, so it's finding the ID but actually displaying the "description" in the drop-down.
After the report has been deployed, I discovered that within the options of the report (click report, go to Manage, then navigate to Parameters) this is where there seems to be the hang up. I can select just 2 or just 3 and there's no problem, it will use either of them as the default. I've tried various formats to use 2 AND 3 but have had no luck and get the error The value provided for the report parameter 'Model' is not valid for its type. (rsReportParameterTypeMismatch). I'm not sure why the default values selection in my first screenshot doesn't take care of this, but for whatever reason, the last screenshot appears to override this functionality. Any idea as to how I might get my 2 values?
I figured it out. Pressing enter to go to the next line, no comma or other separator will get this to work.

Reactive search Datasearch Show suggestions with default Query and/or custom query, only getting results on the first character

I have a reactive search Datasearch component that is running a default Query in order to exclude some results based on an Id. If I use the Datasearch without a default query, I am getting the suggestions just fine. But whenever I add the default query I can see the correct suggestions on the first character but after that it stops giving any suggestions.
I have been looking around in the render rawData and data variables. And I can see there are still rawData vars, but the Data input stops after the first hit. In addition, When I add a custom query, it seems that the suggestions do not really take this in account as it still shows suggestions outside of the subset created by the query.
My question is now, How to get the default query and custom query to work together with suggestions?
It seems that all the other components work correctly with my default query as in only showing results in the subset created by the custom query
Would be really helpful if someone could point me in the right direction on this one, Thanks in advance.
Update:
I want to add that when I look in the stateProvided object. Whenever I add the defaultQuery. The stateprovider stop showing the SearchState after one character in the searchbox. It seems like it's completely blocking the normal behaviour

How to not have repeating elements in this Access-SQL server-Visual Basic 6 (ADO) Form (Master Detail)

As stated above I am using the internal Access visual basic 6 editor along with Microsft SQL server, what I want to function is not having repeated elements in the sub form which is in a table called Order details which has a relation to the main form called Orders.
What im getting is repeated information in the sub form, but all I want is the information to show according to the Order code or Id (Codigo Pedido)... and as you can see here that isn´t happening:
Form:
http://www.flickr.com/photos/63259070#N06/6871552418/
Code:
https://docs.google.com/document/d/1bn71VqxzB1W55sHcKMstCSxnIbmP5cyYWkBVnF1tzVs/edit
I don´t know what to do, should I use parameters, should I use SQL queries, should do some sort of looping structure... Im lost.., So if anyone could help me, even in the most minimal way I would seriously appreciate it
Do not use the text property in MS Access, then you will not have to set focus:
''Me.ctCodigo.SetFocus
Me.ctCodigo = rs.Fields(0).Value
If you must qualify, use .Value, which is available whether or not the control has focus.
I am not sure why you are not using linked tables, you do not mention an ADP, but if you must use ADO, consider binding the recordsets, it will make life easier: http://support.microsoft.com/kb/281998

Report Builder 2.0 Create a dataset with Parameters

I cannot get my dataset to recognise a parameter supplied to it.
I have created a report parameter "ProjectID".
(In Report Parameter Properties, Name="ProjectID", Prompt="ProjectID").
In Dataset Properties|Parameters, Parameter Name="ID", Parameter Value="[#ProjectID]".
When I click on the Filter button in Query Designer, the "Projects with" panel says:
"? ID equals (unspecified)".
But when I run the query I'm not prompted to enter a parameter value, and multiple rows are returned.
I should stress that I'm simply trying to replicate the functionality of a pre-existing report where all this works exactly as expected.
When I diff the rdl files of the two reports there are obvious differences, and I can hack the xml (of the semantic query) so that it works, but I don't really have the understanding of why it's working, or how to replicate the necessary changes via the GUI.
Can someone please give me some pointers - preferably without referring me to the documentation as I've been through this numerous times as well!!
Thanks in advance,
Peter.
p.s. I can post some of the rdl differences if that will help, but wanted to keep my initial post clear and to the point.
OK, so what you need to do is when in the Filter screen of the Query designer, assuming you've already specified a filter in the main pane, such as:
"ID equals (unspecified)"
You need to click on "ID" and a context menu appears with "Edit as Formula", "Prompt" and "Remove Condition".
Select "Prompt", and there you go.

Resources