Tag Info

New answers tagged

0

The purpose off the app web is to store data used by your code logic. Lists created here are not intended to be seen by end-users. End-users will however interact with these data through App part you developed that use JSOM to get/set data into these lists. You can still consult them for debug purposes by browsing their direct URLs or by PowerShell on your ...


0

I guess you have two options: To use a third party tool like ShareGate for this. I have used it and it works great. Use Provisioning Framework by PnP. P.S. If you have a publishing site, then you are left with option 1 for now.


0

have you tried saving your source site collection as Template ? Try saving it as Site-Template by adding the site in your network locations as described in This Link. Let me know if it was useful to you. Thanks. Edit for Publishing Issue : Try enabling the "SaveSiteAsTemplateEnabled" to True from SPD. Follow This. This entry shows for the ...


1

Have you added the SharePointContextFilter attribute to your CalculateHolidayTime action? You are correctly passing the SPHostUrl as a parameter - the filter is the bit that takes that SPHostUrl and adds a sharepoint context to the session (or reads an existing one). This is all assuming you've used the Visual Studio 'app for SharePoint' template which ...


0

The problem was that sp.js and sp.runtime.js files were being referenced locally(ofcourse not the suggested way), which won't work well if SPO has update on those files. After adding the new CDN reference and removing the local reference it works fine.


0

In server-side, you may register your custom action (and thus a ScriptLink custom action) on the list itself (see https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.usercustomactions.aspx). I've never done that, but it seems you can do the same with JSOM: see https://msdn.microsoft.com/EN-US/library/office/jj246201.aspx and ...


0

I have implemented this in my workplace, and the most flexible way is to (unfortunately) add the alert on an announcement standard list manually. The reason is that even tho there are methods to use the AD group as a recipient for automatic alerts, you will have the result that nobody can remove the alert you have set. It will look like one alert set on a ...


1

A simple way is to create a list with a Subject and Message field. Attach a workflow to it, which fires on new item creation and supply the required email. This way you would have all the emails sent in the list and can be archived for future reference. Edit: The subject and message can be selected using the Lookup for String dialog.


0

Not sure whether this will solve your problem , but i normally find it easy to pass the Querystring paramaters using below code: url:'@Url.ActionWithQS("CalculateHolidayTime","Holidays")', This will make sure all the tokens in the current page querystring will be added to the GET request.


0

Sounds more like a pure "MVC and lost sessions" problem. You may check: http://stackoverflow.com/questions/1923956/asp-net-mvc-jquery-load-sessionstate-missing-keys https://support.microsoft.com/en-us/kb/316112 In all cases, you should first check cookies sent by the browser when the Ajax call fires (with F12 tools or Fiddler or else): are cookies ...


0

Well it took a bit of a time to figure out how I can create content organizer rule with CSOM as I dint wanna create some 100 manually on Office 365. But finally the QUEST is complete now and I have a wonderful csom c# and Powershell code to do the job. What's the trick: If we navigate to Content Organizer Rules from site settings, We can notice that its ...


2

There are many ways to get logged in user name SPWeb site = SPControl.GetContextWeb(Context); SPUser user = site.CurrentUser; string strUserName = user.LoginName; or you can use SPWeb web = SPControl.GetContextWeb(this.Context); string userName = web.CurrentUser.LoginName; or you also can use string userName = this.Context.User.Identity.Name;


1

Another simple out of box solution will be to create Group by view for your FAQ list. Steps will be as below Create a custom list with Column "Question" and "Answer" and name the list as FAQ Add your Question and Answers in this list Now create group by view on column Question Here is video tutorial on creating group by view: ...


2

You can use JSOM by javascript like two different ways: Using sp.js _spPageContextInfo.userLoginName Or you could use REST function getCurrentUser() { var endpointUrl = _spPageContextInfo.webServerRelativeUrl + '/_api/web/currentuser'; return $.ajax({ url: endpointUrl, method: "GET", contentType: ...


0

Follow this example : Source code is avaialbe : Hope this helps


1

You can use below JavaScript code to get the start date and end date of current week. Date.prototype.getWeek = function(start) { //Calcing the starting point start = start || 0; var today = new Date(this.setHours(0, 0, 0, 0)); var day = today.getDay() - start; var date = today.getDate() - day; // Grabbing Start/End Dates ...


1

Please check the link below where you can find a step-by-step sample of using CSR to show your SharePoint List View using Accordion control: http://www.sharepointnutsandbolts.com/2013/01/using-jslink-to-change-ui-of-sharepoint_20.html


1

I hope this link could help you, all you need is Accordion Menu. ACCORDION JQUERY


2

You can use jQuery UI accordion for this. See: https://jqueryui.com/accordion


1

In SharePoint Online, we cannot backup and restore contents as what we do in SharePoint Server 2013. Instead, the backup and restoring features are reflected by the following features: version, template, recycle bin and some third party solutions. You can save a web as a template but these are low fidelity duplication tools rather than a backup tool. ...


0

You can use any of these tools: Metalogix Avepoint Sharegate Metavis There are other tools as well. With the explorer view, you can not migrate metadata.


1

You can use "Manage Content and Structure" and use the functionality to copy an item.


1

Enabled SharePoint Server Publishing Infrastructure feature on the site collection level and then the SharePoint Server Publishing feature must be activated on the site level


0

In SharePoint online, RefinableStrings are the only elements to map the crawled properties to the custom managed properties if you need those to be as refinable and different datatype other than text and Boolean.But once the mapping is done, you need to re-index either the specific library/lists or the entire site before the results show-up in the refinement ...


0

Little improved version of accomplishing this via jquery $(document).ready ( function () { if (window.location.href.indexOf("EditForm.aspx") > -1) { $(".ms-formbody").css({ "font-weight":"bold","font-style":"italic"}); $(".ms-formbody span").css({"font-style":"normal","font-weight": "normal"}); } } ...


0

It seems limitation with the SharePoint Online , Page viewer web part. Following links may help you. Link 1 Link 2 Try this seeting mentioned in link 3. Link 3


0

As it's been said, a 3rd Party tool will greatly ease your task. Check out Sharegate. It allows for migration straight to O365 from 2007.


1

The general guidance from the PnP group is no, there are other supported approaches to do the desired customizations without modifying the master page. That being said, they say if you are going to do it, you have to understand the risks of doing so. As soon as you break away, you aren't getting the updates and new features as they are implemented.


1

It is available in Powershell too, if you have downloaded the SharePoint Online module. Not sure what or how you want to use the data, but it is available that way. http://www.microsoft.com/en-us/download/details.aspx?id=35588 Get-SPOSite -Limit All You can also use a search query to look at all STS_Site content classes.


1

You have use 3rd party tools to migrate from 2007 to office 365, their is no ootb method available for this. 3rd party tools will migrate content, metadata,permission n some extent of customization. But if you have full trusted code (solutions), this will not migrate and msft don't allow full trust code in 365. You have to rewrite the code in app model. ...


1

I found the following link and an older StackExchange question pointing out that you can do it using CSOM but you can't do it with REST API.


2

To be very clear: You can't migrate a server solution to Office 365/SharePoint Online unless you have taken these step in development the first time. And you have a 2007 solution which means it's highly unlikely that it’s the case. The suggestion is to develop the things you really need and deploy it for the cloud. Your content should be migrated using a ...


0

Make sure your custom master page has the all related scripts like <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script> <script type="text/javascript" src="/_layouts/15/sp.js"></script> <script type="text/javascript" src="/_layouts/15/sp.init.js?rev=jvJC3Kl5gbORaLtf7kxULQ%3D%3D"></script> ...


2

You can create your own file control in HTML and hook it up with the below script. I use an asynchronous loop to iterate through the files. //Enable Multiple Upload Script $('.attachmentButton').change(function(event){ //alert("change"); //startUpload(self, function (){ reloadPage(); }, event); $("#WSOutput").html("<b>Please wait while ...


1

Answer is here: https://technet.microsoft.com/en-us/library/cc262779(v=office.14).aspx In case the link dies here is the text: To remove a workflow association from a list or document library Verify that you have the following administrative credentials: You must be a member of the Site Owners group on the SharePoint site that you are configuring. Browse to ...


0

You can start by creating a custom list, and then adding columns to match what is in your spreadsheet. Then you can use the grid/datasheet view in your SharePoint list (click on "edit" in a normal list view, or use "quick edit" in the ribbon). then just copy and paste from your Excel spreadsheet. The quick edit view can be a little fussy when it comes to ...


0

As long as you are able to save the document on your computer in any capacity you should be able to then go into your Document Library (or whichever library you wish it to be stored) then select "new document" and then use the existing file option to find the file on your computer.


0

You can use the following JSOM to check if the number field is set to show as percentage. var ctx = new SP.ClientContext(appweburl); var factory = new SP.ProxyWebRequestExecutorFactory(appweburl); ctx.set_webRequestExecutorFactory(factory); var appctx = new SP.AppContextSite(ctx, hostweburl); var field = appctx.get_web() .get_lists() ...


1

The Features property only returns Features that have been activated. Web.Features property


1

There is a global default function RenderItemTemplate function makeFieldReadOnly(ctx) { if (ctx.CurrentItem.MakeReadOnly == false) { // we don't want this field read only /*global RenderItemTemplate*/ return RenderItemTemplate(ctx); } else { // make fields read only } } The global comment is to calm down JSlint.


1

Depending on what type of field you want you can return something like this: return SPClientPeoplePickerCSRTemplate(ctx); // It is for default rendering of people picker. Same can be done for other type of fields from below. Text': { 'View': RenderFieldValueDefault, 'DisplayForm': ...


1

This functionality is already developed. :)


2

Yes, it is possible to get it. You can use REST calls to get the required information. The following code shall help you: I have created respective arraylists to store the subsite, document library and folder information. Once the information is collected in the arraylists we can display it as per out requirement. Get subsites: $.ajax({ url: siteUrl + ...


0

Office Delve isn’t implemented to ”follow” a person or site, which you do your Office 365 SharePoint Sites. Instead, Office Delve let you see your colleagues who have started using Delve. Clicking a person’s name let you see the relevant Delve content this user have interacted with, which is the closest thing to “following” you get. You can also search for ...


0

It might be because of "Following Content feature" was not activated in the site level. Go to Site Settings, click on Manage Site Features under Site Actions section. Activate the Following content feature now you can be able to see the Follow option in the team site.


0

I understand when viewing a SharePoint Online list, an error indicates that the number of items in this list exceeds the list view threshold. For on-premise SharePoint, the list view limit can be set on the Resource Throttling page in Central Administration, just as you mentioned. However, for SharePoint Online, the list view threshold is 5,000 which cannot ...


0

It looks like this does work. I left it for a few days and then updated a list item to kick off the workflow. Permissions were updated as expected. So for anyone else reading this, updating item permissions via workflow does work as an approach but you may have to patient when waiting for the updates to the workflow to take effect.


0

It will all depend on the configuration of the information architecture. IF your root site is driving navigation the users will need to have access to part of the site otherwise subsites will not work correctly. Try to give the "all users (membership)" the Limited access to root site (you will need to create that permission level as you cannot use default ...


0

A small change in code and it worked.. <script type="text/javascript"> //var siteUrl = '/projects/'; var oList = null; var web = null; var clientContext = null; function retrieveListItems(sender, args) { var filterValue =document.getElementById("ctl00_ctl41_g_1c91c2d4_fbbb_4792_8507_ba589e5be222_SpListPicker_SelectionBox"); var ...


0

Use this function that allows fetching a cached script: jQuery.cachedScript = function( url, options ) { // Allow user to set any option except for dataType, cache, and url options = $.extend( options || {}, { dataType: "script", cache: true, url: url }); // Use $.ajax() since it is more flexible than $.getScript // Return the jqXHR ...



Top 50 recent answers are included