Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [query-string]

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.

18
votes
1answer
5k 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]....
8
votes
1answer
792 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 ...
5
votes
3answers
3k 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
2answers
13k 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 ...
4
votes
0answers
726 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 ...
3
votes
4answers
679 views

JavaScript - Rearrange String order?

var date = $(this).attr("ows_Date"); My current code displays a string output: 2017-01-02 Is there a Javascript code where I can move the first 4 digit to the back? How do i turn it into 01-02-2017? ...
3
votes
2answers
12k 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 Products....
3
votes
1answer
1k views

SharePoint REST orderby ArticleStartDate not working

I am trying to run a rest query to return the top three items from within a folder in a pages library, I have the code working however when I try to add an 'orderby' or 'top' parameter to the query it ...
3
votes
1answer
342 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
2answers
3k views

How to pass multi select filters with query string using webpart connections

Sharepoint online currently has the function to do a multiselect on filtering of particular column when you are using a list webpart. I was able to use a query string webpart to filter one value, but ...
3
votes
1answer
1k views

How to add multiple condition filtering in query string to list view

I've gone through some articles, knowing that I can use querystring to filter a list web part: https://msdn.microsoft.com/en-us/library/cc751316.aspx https://stackoverflow.com/questions/24702889/...
3
votes
2answers
2k 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 ...
3
votes
2answers
8k 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 ...
3
votes
1answer
1k 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
4k 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
1answer
6k 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?
2
votes
1answer
94 views

Updating maxQueryStringLength value in SharePoint 2013

I'm getting the following response from SharePoint search after submitting a long (> 2000 chars) queryString. The length of the query string for this request exceeds the configured ...
2
votes
1answer
249 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
639 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
381 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
1k 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 ?...
2
votes
1answer
112 views

Replacement of QueryString web part in SharePoint Modern UI

Is there any replacement of QueryString Web Parts in Modern UI? SPFx is the last option.
2
votes
0answers
54 views

SharePoint 2013 List View Threshold with Query String Filter

I have done some research and I think I am ok, however I cannot take the risk of not knowing for sure. I have just developed a site that will host 8000 events per year (8000 List items) and there ...
2
votes
1answer
287 views

Add filters/refiners to CQWP webpart

I am on SharePoint Online environment, As a high level summary, we currently have pages that use a PageQueryString as a filter for a CQWP. However, from the results that are displayed within the web ...
2
votes
0answers
142 views

Return QueryString(ID) as an integer

I actually have a custom dispform with a XsltListViewWebPart. This list has a column called RootId. I need to filter data from this list based on the ID set in the page's URL. I can query the ID in my ...
2
votes
0answers
540 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>"...
2
votes
2answers
3k views

Querystring parameter in content search webpart ignored when using refiners

I've put a content search webpart on a page together with some refiners. The items in the content search webpart are filtered by a query string parameter (name: tag) path:"https://abcdefgh.sharepoint....
1
vote
2answers
984 views

How can i use QueryString with Sharepoint list programmatically?

I want to pull datas from list with queries. I want to use many queries with C# code. And there is QueryString in C#. I want to use it. So how can i do this.
1
vote
1answer
1k 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,...
1
vote
1answer
2k 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"])); But ...
1
vote
1answer
338 views

Modal-Pop up showing a List of Related Documents filtered by individual List Item in a LVWP

I have an item list called "MyPeople". I have a document list called "MyDocs". I associated documents in "MyDocs" to list items in "MyPeople" via Lookup field. On my Site page, I have a LVWP for "...
1
vote
2answers
3k views

Source Querystring Parameter

I am trying to use the Source QueryString Parameter once the user makes changes to the Edit Form. Here's the Source URL I am using: https://mysite/sites/hhc/finance/ap/Lists/APInvoiceForm/EditForm....
1
vote
2answers
789 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
993 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
346 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
892 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 on ...
1
vote
2answers
2k 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
2answers
338 views

extract data from SharePoint document library to CSV using powershell

i am trying extract data of SharePoint document library to CSV file using powershell. I am getting data correct on CSv file. But one column i.e "Description" have more text data on it.So when run the ...
1
vote
2answers
472 views

Control redirect on saving new Document Set with NewDocSet.aspx

Does anyone have any experience with controlling the redirect when creating a new document set with NewDocSet.aspx? Our client would like the ability to create a new document set and be returned to a ...
1
vote
3answers
268 views

SharePoint Designer 2007 QUERY STRING to populate current user name in NewForm.aspx

I am trying to create custom NewForm.aspx. This form should auto populate current user login name display name and email details in the form when user load the NewForm.aspx. Note : Without using ...
1
vote
1answer
401 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
1k 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
547 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
3k 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
3k 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
570 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 scope ...
1
vote
2answers
6k 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
530 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
6k 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
0answers
50 views

SharePoint 2016 javascript reference 403 forbidden

This past March we installed a SharePoint 2016 instance on our 2012 server and have been using it without issue for 7 months now. Last week I came into work to find the list views functionally stopped ...