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.

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

SharePoint Calendar view with Query String Filter

I need to create two custom columns inside SharePoint Calendar List and I need to apply Filtering to calendar view with regards to custom columns for the users. I need to apply the same using default ...
0
votes
0answers
26 views

Url query filtering links not working in modern Sharepoint?

In classic SP tacking a url query onto a page containing a list was a handy way of filtering the content: page.aspx?FilterField1=<internal field name>&FilterValue1=<value> This no ...
0
votes
1answer
1k views

Replace Source query string value without redirecting

is there some way to replace the Source query string parameter in SharePoint without redirecting the user? All the examples I find use location.href="new url"; which causes the page to immediately ...
0
votes
2answers
50 views

Querystring filter on documents

I have a list of documents who have a property (Related document ID) that I want to filter via query string Example: site.com/document?PolicyID=1 should view only documents who have the related ID =...
8
votes
1answer
921 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 ...
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
30 views

osssearchresults.aspx page have problem on handling URL query string

I am setting up a SharePoint 2016 on-premise (Enterprise) environment. Right after I setup the first Search Service Application, I create a new site collection with Enterprise search center template. ...
2
votes
1answer
749 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 ...
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....
0
votes
3answers
28 views

How to catch null or undefined query string parameters in SharePoint?

Grabbing query string values is easy in SharePoint with some javascript... var xid = GetUrlKeyValue("ItemId", false, location.href); But what if ItemId didn't exist in certain instances, how can you ...
0
votes
2answers
166 views

How to pass and capture query string parameter to newform in modal dialog?

My modal dialog for newform is not capturing the query string value I'm trying to pass to it. Alert on main page confirms the qs value for XID is set correctly. var xid = GetUrlKeyValue("ID", ...
0
votes
1answer
57 views

How to extract part of url parameter for search

Background I have a site that stores archived data extracted from an old application environment (Lotus/IBM Notes). The data is stored as lots of individual .pdf files, 1 per record from the old ...
0
votes
1answer
15 views

Suggestions for context menu link with querystring value to NewForm results in Page Not Found

Trying to set up a custom action for a library to send querystring parameters to a NewForm on another list using the Navigate to URL option. Without a querystring value the link works; displays ...
0
votes
1answer
47 views

Add list item in querystring in URL, ID needs to be hidden

Trying to add a list item, specifically the ID into a url in the DispForm.aspx. The customer does not want the ID displayed. I got the link in the display form, I figured out how to split out the ID:...
2
votes
1answer
394 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.
1
vote
1answer
983 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 ...
0
votes
2answers
241 views

Passing query string to Survey list newform.aspx

Is it possible to send query string to newform.aspx of the survey form so it's pre-populated? (I am using SP 2010) The question in survey list is created is ServiceTicketNumber and then renamed the ...
2
votes
1answer
170 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 ...
1
vote
0answers
78 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 ...
0
votes
1answer
101 views

Extracting SharePoint data on daily basis

I want to export my SharePoint document library data on daily basis and csv file need to be save as naming convention as "Dataname_yyyyMMdd". As per my below script, it need to export data from the ...
1
vote
2answers
584 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 ...
0
votes
1answer
354 views

How to split string condition on array with powershell script. Exporting SharePoint library data on csv file

i am trying export library data into CSV file. i had used string functionality on my script to get content. my script was working fine but i am getting output in single string (or) one column. My ...
1
vote
2answers
572 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 ...
2
votes
0answers
63 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 ...
3
votes
2answers
3k 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
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 ...
1
vote
2answers
878 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-...
0
votes
0answers
383 views

Prefilling fields in NewForm.aspx with query string doesn't work

I have two lists. One describing projects, one project per row with several columns. The other one is a slightly modified task list, with every task assigned to a project from the other list using ...
2
votes
1answer
335 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 ...
4
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 ...
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 ...
3
votes
4answers
858 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? ...
1
vote
2answers
1k 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
0answers
29 views

Opening a page from Email link does not populate the form with data, in that page

On performing some action(approve/reject a request) an email is generated with a link in it. On clicking the link, a SharePoint QA page opens that contains a form. All that works well! My issue is, ...
2
votes
0answers
163 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 ...
1
vote
0answers
46 views

Date range filter in OOTB for SPListview

I am working on a project in SharePoint 2013. Currently I am trying to implement list view filtering using OOTB QueryString parameters. I have found the following params have been working a treat ...
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 ...
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]....
0
votes
1answer
104 views

How to make forms in ModalDialog (IsDlg) respect Source and redirect accordingly to a 'thanks' page after submit?

Has someone already solved the conflict between IsDlg and Source query string parameters to allow a redirect after form submission in a SP.UI.ModalDialog? Per chance even when an InfoPath form is ...
1
vote
1answer
423 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 "...
0
votes
1answer
248 views

Is it possible to combine contentclass terms in a Rest call?

SharePoint onPremise - 2013. I'm attempting to use the following string, and get errors. 'contentclass:"STS_Web" OR contentclass:"STS_List_DocumentLibrary"'; It works perfectly if I specify a single ...
2
votes
2answers
4k 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
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 ...
0
votes
2answers
435 views

Passing multiple queries from a Web Part in order to filter a view

I am aware that using URLs like http://site/Lists/MyList/AllItems.aspx?FilterField1=Title&FilterValue1=ExactTitle&FilterField2=Year&FilterValue2=ExactYear will display a filtered view ...
-1
votes
1answer
430 views

Query string filtering by custom field

i added a custom action in sharepoint designer which is a url link to a document library. On this document library page i have added a query sting filter webpart, to filter data based on a list ID. I ...
3
votes
1answer
2k 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/...
0
votes
1answer
548 views

Filter SharePoint view on basis of URL parameters

I'm developing my site on SharePoint 2013. I've created a view called Advance view. I'm passing 6 parameters to that view in query string(URL). My requirement is if I pass only 3 parameters in query ...
0
votes
1answer
54 views

Migrating string to Sharepoint Online in Workflow

I moved a workflow to our Sharepoint Online enviroment from on prem. I am having a hard time figuring out the correct format for the URL string. The first image is the original string The second is ...
1
vote
1answer
276 views

How do I add the title of a list item to a custom action URL?

I'm trying to build a custom action button that links to a page with a query string URL. I've tried "?Project={ItemTitle} but that doesn't work. I can get the ID by adding "?Project={ItemId}" but ...
0
votes
2answers
159 views

2010: Query String URL Filter doesn't filter until postback

I have a Query String URL filter sending a value (ProjectID) to a task list which filters the tasks down to match the query string. On page load, however, all tasks are displayed, making it seem that ...