Tag Info

Hot answers tagged

9

All you need to do is pass the Source parameter on the Query String. When the EditForm closes, it will always redirect to the page indicated in that parameter. For example: http://mysite/Lists/EditForm.aspx?ID=1&Source=http://mysite/default.aspx


6

This blog post from Microsoft is highly linked to and describes what you want to do. I've used it before, these days I typically use jQuery and SPServices. Setting lookups typically requires you to pass in the Lookup ID value or the ID;Descriptor. Here's an actual example from a site of mine, it's setting a person/group field, not a lookup though. You ...


3

I just realized that you are using the Search API. The example below is for basic SharePoint REST API. The following works for search: Created>2014-01-01-T00:00:00 So for your case: var queryUrl = "http://mydomain.com/sites/blabla/_api/search/query?querytext='ContentType:Factsheet ...


2

The XSLTListViewWebPart can read querystring parameters, you could try this: .../Forms/AllItems.aspx?FilterName=Title&FilterMultiValue=*something* FilterName is a column. Hope this helps


2

You need to replace L&M with L&M One way to do this is to use HttpUtility.HtmlEncode


2

As far as I know you can't, there is no built in OOB solution for this (at least not in 2010). What you can do instead is to use jQuery and some JavaScript, like this: $(function() { var fields = {}; $('.ms-formbody').each(function() { var name = $(this).html().match(/FieldInternalName="([A-Za-z0-9]+)"/); if (name) fields[name[1]] = ...


2

Use %26 instead of &. It helped me. Like here: <Edit>_Layouts/project/custom Form.aspx?PageMode=Edit%26WFTask=1</Edit>


2

Problem solved by adding a Choice Filter webpart on the page (hidden) with the same values that you use in the querystring. The 2nd filter webpart captures the querystring value.


1

My first guess is, have you specified redirect url while registering your app in appregnew.aspx page? For more info check this link Basically what is happening is when you use bookmark to navigate to your app, the context token has expired. So you need to redirect to sharepoint site first to re-authenticate. Hope this helps.


1

Will this work for you? <asp:LinkButton runat="server" ID="lbJan" OnClick="lbMonth_Click" Text="ClickMe' CommandArgument="1" > protected void lbMonth_Click(object sender, EventArgs e) { string redirect = "<script>window.open('/Pages/Page1.aspx?sID=" + e.CommandArgument.ToString() + "' );</script>"; Response.Write(redirect); }


1

There is the Method String queryString = Request.QueryString["search"]; If the url would be like .....search=45 this would return 45.


1

in this technet article, a technet community support member answerd: We are unable to use FilterMultiValue work with multiple filters in this way and you may need programmatically effect He also posted a link to a blog, which shows how it can be done I hope this will help you Regards, Retech


1

I've just implemented this on an external web site using jQuery and _gaq.push(). Fairly easy to implement and quite handy to use fiddler and/or console to se what output you get. You'll get tracking of PDF download as a bonus! Example project There are a number of ways how to implement this, but there are a few prerequisites. In order to get this to work ...


1

Use HttpUtility.HtmlEncode on the value received from the drop down. Like var encodedDropDownValue = HttpUtility.HtmlEncode(DropDownList4.SelectedItem.Text.ToString()) this will encode your special characters to a format that you can add to your CAML query


1

I want to be able to show the same list item in different info path forms. IE one for initial creation, one for updating, one for the director to review, one for looking back on. Theoretically, this should have been controlled through GUI of Infopath Webpart properties pop-up dialog that has "Views:" drop-down list but practically it has always only ...


1

I actually found an answer to that problem. Remove all querystring parameters. Then remove the corresponding filters. Now, add another webpart: a querystring filter. Set it up to use the parameter you need. Finally, connect both web parts (the querystring filter and the one displaying the list). Make it so that the querystring filter sends filter data do ...


1

You could probably get it done by connecting it with a "Query String (URL) Filter Web Part" although I don't have a 2007 VM handy to test-drive it and I don't remember the CQWP being able to receive value from another webpart. Alternatively, if a little bit of coding can be done, you can extend the CQWP to retrieve a query string value and consume it ...


1

It sounds like you're using the Query String Filter web part, but with the URL's in the format you've given list address?FilterField1=Filter&FilterValue1=Value you don't actually need to add the Query string Filter web part - its will work on any normal list view without it.


1

You really got two questions here, but I'll take a stab at 'em both. 1.) Your misery sounds very similar to what I've experienced with forms and Related Lists. That ID= parameter is frustrating. I've found the fix to be to use sp2010-related-list-prefill to get that ID to populate correctly. As for the ID param interfering with display of other items on the ...


1

Yes very easy even, via SharePoint Designer: Go into your page use the Insert menu, choose Empty data View. Click the in page on the "Choose data Source Details" and choose your target list. From the Data Source windows choose fields to show and via the button "Insert Multiple Item View". Then choose from the Design your required. Now you should have all ...


1

Filtering using contains isn't implemented in the OOTB SharePoint ListViews, so you have to create your own web part or probably better use search.


1

instead of & use &amp; this will surely help


1

the ampersand should encode into %26


1

The getTagFromIdentifierAndTitle function returns after it finds the first matched element, so yeah, it would only set the first lookup. I would try jQuery to do this as jQuery will return an array of matched elements. Mark Rackley has a setLookup function which you can find here


1

No there is no support for that in with standard SharePoint The standard only specify that everything between '?' and '#' or end-of-url is the query string, but it's commonly aggreed that the format of the query string is 'ParamName=value[&ParamName=value]...', so the '=' in the querystring isn't specifying a condition it's only separating the ...


1

If nothing is happening, then it's likely your query string code block isn't working properly. Look into his SPGetQueryString operation. $(document).ready(function() { var queryStringVals = $().SPServices.SPGetQueryString(); var yourVar = queryStringVals.theQSParam; $().SPServices.SPFilterDropdown({ relationshipList: "{LISTID}", ...



Only top voted, non community-wiki answers of a minimum length are eligible