New answers tagged

0

This is a security feature implemented by Microsoft to avoid cross site scripting. Because of this feature, SharePoint changes the absolute URL to a relative URL. The only OOTB way to surpass this is by putting your content in a .txt file, Upload it to some location within your SharePoint and using Content Link. If you still not able to get it then kindly ...


1

When doing a CAML query for the page web URL I use: var fieldsToRead = "<ViewFields>" + "<FieldRef Name='WebPage' />" + "</ViewFields>"; as my CAMLViewFields var web = ($(this).attr("ows_WebPage")); gets the URL for the page. $("#relatedTable").append("<tr>" + "<td>" + "<a href=" + web + ">" + name + "</a>" + "...


1

If you have a fixed set of categories and category links are not generated automaticly I would suggest to: Just go to you list that you want to filter Make sure you have the column that you want to filter on in your view Filter the list by clicking on the column and selecting the correct value Copy the URL and use it in your category tiles list Other ...


0

Why dont you try JSlink/Client side rendering(CSR) concept to achieve your functionality. Get the query string value using the following code var itemId = GetUrlKeyValue('ID'); //get Item Id from query string Write a function and override the view template which will achieve your functionality. Refer the below links for more idea bout CSR, http://www....


1

WITHOUT CODE: I always send them straight to the New Form for surveys: http://sharepoint/site/Lists/SurveyName/NewForm.aspx WITH CODE: <script> function openDialog(){ var options = { title: "Fill out survey", url: "http://sharepoint/site/Lists/survey/newform.aspx", width: 800, height: 500 ...


0

You need to configure your Authentication Zones as per my understanding from your question. Please read the article given below & do needful for yourself. Configure Authentication Zones and Alternate Access Mappings


0

My suggestion would to be to create a Content source and Result Source for the file share location and have it surface in Search Results. If you want a custom view of the documents, you can use a Content Search Web Part to display the contents of the result source. Display Templates would help you in modifying the content view as needed.


0

There might be something wrong with the config so i recommend not to do anything with config but you can follow below steps if there is no risk in it. Delete the web app (and site collection), and all newly created App Pools Re-Create the Web App using the SharePoint Central Administration with new App Pool Re-Create site collection Go into IIS settings ...


4

FileRef should give you the document's relative URL. $select should look like $select=FileLeafRef,FileRef,Modified,CheckoutUserId,AuthorId,OData__UIVersionString FileRef vs FileLeafRef FileRef is for document's relative URL FileLeafRef is for document's name Modified Code url: appurl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('" + ...


3

Looks like you miss the most important root level site collection. Could you please create the root level site collection on qwe web app. this site should be on "/" path. When you go to Create new site collection, Select "/" in the managed path.


2

To go more precise I would like to code it in following manner. if (Request.QueryString.Count > 0) { string urlSource = Request.QueryString["Source"]; if (!String.IsNullOrEmpty(urlSource)) { int pos = urlSource.LastIndexOf(@"/"); String newUrl = urlSource.Substring(0, pos + 1) + "/AllItems.aspx"; SPUtility.Redirect(...


2

If I understood you correctly, then following is your requirement. Checking whether Source exists in query string or not If it exists, then redirect to that URL Example string source = Request.QueryString["Source"]; if (source != "") { SPUtility.Redirect(source, SPRedirectFlags.Default, HttpContext.Current); }


0

@ahmed, Solution by Ahmed worked in my case. Code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script> <script> //Code to add url to the Hyperlink field part of Columna name: LinkURL - var setColumnValue = function (column, linkVal) { var columnObj = $("input[Title='" + column + "']"); ...



Top 50 recent answers are included