The QueryString collection retrieves the values of the variables in the HTTP query string. The HTTP query string is specified by the values following the question mark (?). Several different processes can generate a query string.

learn more… | top users | synonyms

8
votes
1answer
689 views

What does this code getQueryStringParameter do?

I would like to know what this code does? I am using it almost all the time but I don't know what it does. function getQueryStringParameter(paramToRetrieve) { var params = document.URL.split("?")[1]....
5
votes
3answers
2k views

SharePoint Web Part from App that is NOT in another domain or inside an iFrame?

We created SharePoint Hosted App that offers a Web Part we can add to SharePoint 2013 pages. The problem is that web part installs as an iframe pointing to the apps domain. Two challenges in ...
4
votes
0answers
101 views

Set metadata column value from query string when uploading documents

When users upload files to a SharePoint Online (2013) document library, I would like for a value from the query string to be inserted into a metadata column in the library. I found a number of posts ...
3
votes
1answer
120 views

Connected Web Parts on Document Set Homepage Causing Error

On my document set homepage I have added two list view web parts. These two web parts are connected so the second is filtered based on the first. Environment 1 is selected by default on page load. ...
3
votes
0answers
480 views

Query string filter on an InfoPath lookup field

I am trying to use a query string filter to filter data on an InfoPath form using this guide. The column that I'm trying to filter is a lookup field and it is not available in the list of Consumer ...
2
votes
1answer
2k views

How to get back to an HTML page after editing a list item

I have a link on an HTML page that opens an Editform.aspx with a particular listitem ID, in a new window. After making changes, I click 'OK'. How can I close the editform.aspx (by default, this ...
2
votes
2answers
5k views

Filtering querystring results by date range

Simply, How do you filter results returned using querystring that fit within a given date range. For example I have a custom property RMExpiryDate and the value could be any date, lets say for ...
2
votes
1answer
9k views

How can I pass a Parameter via Query String to populate a lookup field on a New Item Form/DVWP?

I have two lists: List A: Products List B: Requirements I'd like to have a nice Create Requirement page launched from the Product Listing page. I have a DVWP/Multi-Item View displaying all ...
2
votes
1answer
55 views

Can I filter a search result by result source directly in the search box? (SP 2013)

I'm looking to create a searchString for a search box that limits the results by a result source I've made. Just like you would filter by a managed property. Eg.: {search center url}?k=Author:w16375. ...
2
votes
1answer
133 views

Content Search Web Part - Query String

I would like to filter CSWP results based on query string. I have CSWP in a page ItemDetail.aspx, the query is Path:"http://sp03:2016/Lists/Announcement%20Custom/" contentclass="...
2
votes
1answer
272 views

Query variables from URL hash javascript

I have a content search webpart that needs to show a list of events. It will page through month by month. The default month on the homepage will be the current month. Each time the user changes the ...
2
votes
1answer
6k views

How to edit an existing item in InfoPath Web Part with SharePoint 2013

I have a page with nothing on it but a Infopath Form WebPart which I want to use to be able to edit an existing item in a SharePoint list. I have the ID of the item being passed in on the query string ...
2
votes
1answer
286 views

Ribbon buttons aren't enabled when I use query string parameter with filter

I have a problem adding filters with parameters in the lists. I added a query string parameter. It is used in a filter. When I select one item in the list, most ribbon buttons (edit and delete, ...
2
votes
2answers
732 views

Filter Document Library items using query string

I have document library (Images Type) and when using the following quick filter paramters nothing happens ?FilterName=LinkTitle&FilterMultiValue=*%d8%b3%d8%b9%d8%a7%d8%af%d8%a9*; I tried this ?...
1
vote
1answer
441 views

Autofill Survey via Query String

I have SharePoint 2010 site and I need to send my users a Survey. I would like to add the corresponding ticket number to each survey via a unique query string ~/site/List/Survey/NewForm.aspx?...
1
vote
1answer
246 views

How to add multi-key querystring to custom content type's custom form url?

I have a custom content type, inheriting from the WorkflowTask content type. I've configured the content type to point to a custom form, but the URLs are not working properly. <ContentType ID=...
1
vote
1answer
377 views

Multiple filters with query string

Imagine this situation: a SharePoint 2010 teamsite 2 lists 1 query string filter webpart to connected to the first list the 1st list is connected to the 2nd to filter the 2nd When I click an item ...
1
vote
2answers
1k views

URL : How to add multiple Query String within Source Query String?

I have a simple question regarding the &Source Query String in SharePoint 2007, which normally SharePoint used in on List Item page, when click on "Close" button, it can redirect back to the ...
1
vote
1answer
95 views

Use today's date as the default value for a Query String paramater?

This is what I have so far but I cannot figure out how to set the default value to today's date if the parameter is not passed in the query string. <ParameterBinding Name="meetingDay" Location="...
1
vote
3answers
517 views

Communication betwen sharepoint apps on different pages

I'm developing two client web parts on the same sharepoint hosted app project. Client web part A shows a list of employees of the month(name, picture, etc) Client web part B shows the detailed ...
1
vote
1answer
2k views

Pass the query string value to NewForm.aspx SharePoint 2013

I need to fill a look up value with query string parameter in custom new form in sharepoint 2013. what should I do?
1
vote
1answer
253 views

Sharepoint Search - Managed property name contain hyphen “-” not working

I created one custom managed property name SolutionName-Description and doing the full crawl after that. The issue is it returns no result when I query by this managed property: SolutionName-...
1
vote
1answer
138 views

Search Results Sorting through Querystring

I followed this post on creating a Company Directory which uses the Sort Dropdown in the Search Results Web Part. This is great but is there any way to do this through manipulating the Query string? I ...
1
vote
1answer
906 views

How To Use Request.Querystring In SharePoint 2010 Application Page?

I have the following lines of code: SPList thisList = oWeb.Lists[new Guid(Request.Url.QueryString).Get("List")]; SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"])); ...
1
vote
1answer
1k views

Where is Query String (URL) Filter?

Based on the answers to a previous question I want to use the Query String (URL) Filter, but I don't see it on my site. Is there something I have to enable?
1
vote
2answers
2k views

Unable to filter view using query string parameter

I have two lists one is tasks list and the other is document library. In Tasks list I have created one lookup column of the document library i.e. document is shown with tasks. I have created view ...
1
vote
1answer
293 views

Use Querystring to define result source for searching

I am migrating a site from SP2010 to SP2013. One of page contain a search result webpart. By define the querystring like this: SearchResult.aspx?k=Scope:Hotnews It will return only the defined ...
1
vote
2answers
3k views

Query String parameter - Multi FilterMultiValue on different columns

Is there a way to combine FilterMultiValue on different columns? ex ?FilterName=HomeCountry&FilterMultiValue=Norway;Global&FilterName=HostCountry&FilterMultiValue=US;Global I want to ...
1
vote
1answer
431 views

Appending Google Analytics query string to outbound links in SharePoint 2010

I am looking to append Google Analytics query strings to outbound links but SharePoint 2010 strips it out when you save the page. Is there a way to add those or do I have to use javascript to append ...
1
vote
1answer
4k views

How can I pass a Query String variable into the CAML of a jQuery script?

I'm using Marc's SPServices jQuery library - the SPFilterDropDown script - to filter the items in a Lookup multi-select field on a New Item DVWP. It works fine if I stick some static text in there - ...
1
vote
1answer
63 views

Query String (URL) Filter Web Part

I am developing a portal in SharePoint 2013 in which I am using Query String URL filter web part, the function of web part is to filter the web parts on the bases of years. I gave the default Year ...
1
vote
1answer
204 views

Displaying Query String (URL) filter result on Page

I have a Query String (URL) filter on my SharePoint 2013 page that is currently passing a string parameter which I then use to filter a list. This list is displayed in a view on my web part page. I ...
1
vote
0answers
79 views

Is to possible to use > (greater than) condition in Query String

I need data greater than April 2014 so I need to put filter in the query string. Is there any way to use > sign ? I need something like this: filterField1="MonthYear"&FilterValue1>"...
1
vote
1answer
35 views

Inserting data from ListA object to 'new Item' form of ListB

I have 2 lists, candidateList and emailList. In ListA, and object has various fields such as candidate (lookup field) and a textBody. When viewing a ListA object I have added a button to email. When ...
1
vote
0answers
49 views

How to keep two search web parts on same page

I have a search results web part and a content by search web part on the same page. Searching functionality works fine here. But when I enter the search keyword in search box, search results web ...
1
vote
0answers
421 views

Pass a query string parameter from the parent URL to a page viewer web part

This may be a simple question for SP2010, I am trying to get the query string from a page url and pass it to the url of a page viewer web part. https://mysite.com/subsite/default.aspx?TeamID=X The ...
1
vote
0answers
58 views

Documents inside a folder not showing when a filter is applied in query string?

I create a webpart to show the Document List on a certain page, and then I applied a filter on a column content to show only certain documents. But in that way the folder structure is lost and all ...
1
vote
0answers
43 views

Query String Webpart Timeout

I added a Query String (url) Filter Webpart to my page. It added quickly. But when I try to configure it, it seems to spin forever. It finds the parameter I want to filter on, and when I click done ...
1
vote
1answer
517 views

Search box web part query suggestion display

2 questions pertaining to the search box web part display: 1) I have configured the search box web part to show query suggestions. My issue is when I type for example "ca" I not only get suggestions ...
0
votes
1answer
127 views

add query string to url

I wish to add Query string to current url of site when i click on button. I dont know how its done in SharePoint but know how to do in asp.net like below string url = HttpContext.Current.Request.Url....
0
votes
2answers
313 views

Have got a problem with making a CAML Query by String contains “&”

Hello i have got a problem with making a CAML Query by the string which contains sign "&". I have Got a "L&M" firm and when I choose it on DropDownList it make me error: How to use this ...
0
votes
1answer
99 views

Sharepoint Rest API max querystringlength exceeded

We are trying to post a really long query string, that exceeds 2048 characters to sharepoint REST API. I am making a post to the below API http://sitename/_api/web/sitegroups?$select=LoginName,Id,...
0
votes
1answer
3k views

SharePoint App “SPAppWebUrl” query string is missing after using “SharePointContextProvider.CheckRedirectionStatus”

When using a direct link(bookmark) to a page in my provided app the "SPAppWebUrl" query string is missing and the SPContext.CreateAppOnlyClientContextForSPAppWeb() is null. This happens after the ...
0
votes
3answers
2k views

SP2013: querystring to search by managed properties

I need a way to let user dynamic query with several managed properties filters. There is a page with two dropdown menu "FoodCategory" and "CookCategory". We have two managed properties in same name ...
0
votes
1answer
863 views

AllItems View of Query String: can I group using value in query string?

Can I somehow how a query string to show a group of documents within a given library. Not one single item, but the AllItems like view. So within the library I have a grouping type of id value in a ...
0
votes
2answers
69 views

Query string parameter to remove menu block in aspx popup

I am using the following URL to display a popup: var xVersionUrl = xAppWebUrl + "/Lists/dlWerkinstructies/Forms/DispForm.aspx?ID=" + xItemId + "&VersionNo=" + versionId When clicked on the link ...
0
votes
2answers
109 views

Filtering by QueryString doesn't work in SPD 2013

I have an external list, I have setup and use querystring to filter list in SharePoint Designer 2013 like this posted: http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-...
0
votes
1answer
211 views

Obtain QueryString From Modal Dialog Parent Page (SP 2010)

I have an application page that opens a modal dialog. Users are provided a link to this modal dialog via email, when they click on the link it will take them to the modal dialog and populate the ...
0
votes
1answer
100 views

Query String opening page

I have web part with link buttons. How do I open a new page when I click on a link button and also use a query string for sending my variable id?
0
votes
2answers
1k views

How to access QueryString values with CQWP in MOSS 2007

I need to show some data from library based on querystring passed in URL. I've placed Content query web part on page and trying to access querystring using PageFieldValue but it is not working as it ...