Q: Can the input variable that is query based be searchable similar to the native SCCM Web Reporting interface? i.e. Can the Collection ID be searched using a wild card rather than having to select one from a drop down only?
Background: Let us assume that we want to mimic the old ASP report prompts as best as we can. Let‘s also assume that we want a list of PCs and User Name OS for the PCs.
There are a few ways to do this depending on exactly what you are trying to do.
A basic SQL query looks like this:
join dbo.v_RA_System_SystemOUName ROU on R.ResourceID = ROU.ResourceID
R.Name0 = @PC
A basic prompt looks like this:
CS.Name0 as 'PC Name'
Option 1: Free From Text Box
Results look like this
Option 2: - Use a Prompt to Filter Results of Another Prompt
· Keep the existing queried prompt
· Create a new prompt called Filter
· Set the default values of the new prompt to %%
· Change the Prompt Query to add the following line:
cs.name0 like @filter
When you run the report you will get something like this.
Notice that when I enter the data in the Filter section of the Prompts, it filters out the results in the drop down.
Option 3: Multi-Value
R.Name0 in (@PC)
Here are the results. Notice that I combined both Options 2 and 3!