Multiple URL Queries including Text Fields and Dropdown List - sql

I have to perform a search based on 3 queries in a single URL and so far i have achieved this
...Search.aspx?StartDate=1/9/2015&EndDate=1/9/2015
the third query which i want to include in the above URL is related to a Drop-Down List containing 100 plus options.
code
How should i write the URL to get the required option.

Why can't you do something like Search.aspx?StartDate=xx&StopDate=YY&options=selected1,selected2,selected3 ?

Related

SSRS search text box (parameter) dependent dropdown lists cascading filter - SQL Reporting

I am having a situation where I can't proceed further with my report.
I have 2 parameters and the first parameter is a search text and user allowed to enter multiple search values and then the second parameter will get loaded and in the dataset to get loaded.
ReportParameter1 - user should give text need to be search. It should allow multiple values.
ReportParameter2 - (Multi Selection dropdown) - If we pass single value in ReportParameter1 it is showing related dropdown list in ReportParameter2. If multiple values are given in ReportParameter1 it should load all the values in ReportParameter2 related to the search words but it is not returning any dropdownlist.
Any help will be highly appreciated and I hope the explanation make sense?
Thanks,
For passing one parameter:
passing multiple values:
You'll need to use the IN operator for multiple parameter values.
SELECT party.party_name
FROM apps.hz_parties party
WHERE UPPER(party.party_name) IN(:ReportParameter1)
The other option would be to filter the tablix.
Note: Report processing time will be longer for a tablix filter.

What feature to use when trying to display the grid with text values and urls in sharepoint?

I am new to sharepoint 2010 and therefore, not sure what feature to use to make the following:
I am trying to create some sort of grid with text values as column headers and rows containing URL links but named with some text for clarity's sake.
For example:
Header1
link1
link2
I want to have multiple headers and rows like that.
thank you
You might find looking at a control called the listview using itemTemplate would be benificial. It can allow you to create a look and feel like a business card or a very simple row
Have a look here they show some of the formats they have done
http://blogs.msdn.com/b/mikeormond/archive/2008/01/23/some-asp-net-3-5-listview-control-examples.aspx

How to filter a Sharepoint List Column with a Textbox Control Value using a "Contains" query?

I'm using a data view to display a list (Sharepoint 2010) that has several columns including one that has a Name column. I've provided the user with a text filter on the page to send values to filter the Name column in this list. The problem I'm facing is that the filter only works for exact matches and not partial matches.
I tried to overcome this problem by using Sharepoint Designer to:
create a parameter that uses the textbox control value.
Filtering the Name column with this parameter and setting the comparison to "Contains"
Unfortunately if the default value of the Parameter is blank, the list does not display any data. If the default value of the parameter is set to part of a name in the list, the list displays names that contain that string. However, when changing the value in the text box and searching, the list does not return results. Please let me know if you guys know how to fix this. Any help is much appreciated and let me know if you need any additional information. Thanks!
Managed to find a solution to my problem. I used a custom javascript solution designed by jvossers (http://instantlistfilter.codeplex.com) that involves the list being filtered instantly much like Google's search!
The only downside of this solution is that it only filters the items currently displayed on the screen. Therefore, if you have a data view web part which limits the amount of items displayed on the page, this solution won't help you. In order to facilitate this solution, display all the row items on the page (by increasing the item limit per page to a larger number than your total list rows) and then add this code into a content editor web part on the same page. Worked brilliantly for me. '
By the way if you are using jQuery 1.3.x or higher, you should modify the script a little as described in the disscussion here: http://instantlistfilter.codeplex.com/Thread/View.aspx?ThreadId=49123

How to display search results in a new form

I've created a system and within that system i've a find/search page and a find/search results page. Basically, the find/search page consists of a number of text fields and the more the user completes, the more efficient the search will be.
I'm using SQL server 2005 to store the data and I can easily update/insert/save new data but I don't know how to search for the data ...
I want the user to fill out the fields in the find/search form and for the results to appear in the find/search results page. Can this be done?
It depends on what kind of Data you need to search.
If it's generic text data the best way is to use Full-Text Search
Yes. There are a number of ways you could achieve this. One possible way would be to pass the search criteria to the search results page via query string. Another way which is very similar is to store the search criteria in a session and redirect to the search results page. In either case on the search results page you'd want to take the data and build your SQL query. Depending on what you need you could utilize a full-text search like Kesty has suggested or you could simply use FIELD like '%user entered data%' in your queries. It really depends on your needs.

Retrieving specific fields in a Solr query?

I am running a Solr instance on Jetty and when I search using the Solr admin panel, it returns the entire document. What should I do to get only specified fields from each Solr document returned by the search?
/?q=query&fl=field1,field2,field3
From the Solr Admin home page, click on "Full Interface". On that page there is a box called "Fields to Return". You can list the you want here (comma-separated). "*" means all fields.
http://xx.xxx.xx.xx:8983/solr/corename/select?indent=on&q=*:*&wt=json&fl=ImageID,Imagepath,Category
This link has fl parameter:
fl is a field list, which will display the specified fields from the indexed list.
The best way is to run the query from Admin concole. When we run it, it also provides the actuall SQL query executed. Just copy the query and use it.
About the question: select specific fields from the table. In the admin console look for 'FL' text box. write the field names you want to retrieve, comma sapereted. Hit the 'Execute Query' button.
Top right side the SQL will be available.
Generated Query: ......select?fl=FIELDNAME&indent=on&q=:&wt=json
you can simply pass fl parameter with required fields name in your query.
&fl=field1,field2,field3&query=:
your response documents contains only mentioned fields.