New answers tagged

2

The mistake you are doing is you are using List's UserCustomActions, but here your ScriptLink is the part of SPWeb or SPSite. So you code need to be like UserCustomAction Scriptaction1 = clientContext.Web.UserCustomActions.Add(); instead of UserCustomAction Scriptaction1 = collUCA.Add(); Refer this


0

Use a Content Query Webpart(Content Rollup-> Content Query Webpart). And the details are as follows:


0

Use Content Search Web Part. When setting up the query, point it to the URL of the document library on the parent site. If this information helped, please mark as answer or vote up.


0

You can do it, using both JSOM and the Rest OData API, but you´ll have to validate the data on the client, Sharepoint will not handle it.


0

Try to right click the Project, go to Sharepoint Tab on the left and than uncheck the Auto-retract checkbox.


1

You can either give those users View Only permissions, or you can use IRM (Information Rights Management) to restrict the document. Users with the View Only permission level can only list items in a list/library. They need the Read permission level to open them. More information on the different permission levels here. IRM can be used to help control and ...


0

You can create custom list forms using SharePoint Designer. Open SPD Open your Site Choose your List under Lists and Libraries Choose List Form from the ribbon Define the name and type(new/edit/view) of the new form You should now see your new form at the bottom-right Forms section. Click on your form to edit it Click Advanced Mode in ribbon All the ...


0

I manage to figure out the location of these files after checking around and literally missed the path. The Steps In Internet Explorer, access any library on the site to open up the library in file explorer. Click the Open In Explorer button on the SharePoint ribbon. When the file explorer opens, click on the folder 'Lists' to access the folders of all ...


0

These "files" usually lives in your content database. That's why you can't find the actual files in an on-premise environment. The Views shows a list of items in "prescribed order and selections". This means that you use the views to display list data the way you want, by date, by author, by title, by category. It can be grouped, sorted and filtered in ...


0

Go to your List Settings Page. Click on the "LastName" field you had created. Notice the URL to find the internal name of the field. The URLwill something like "http://...Field=[InternalName]" . This will give you the field name that you can use to access the field.


0

Try the below steps to configure it. Install Windows PowerShell 3.0 from Windows Management Framework 3.0. Install the SharePoint Online Management Shell from the Microsoft Download Center. Click Start>All Programs>SharePoint Online Management Shell. Run Connect-SPOService. For example, Connect-SPOService -Url https://contoso-admin.sharepoint.com -...


2

Users with Read only Permission at Site Level , Library Level will not get Download option. Users with contribute access Permission at Site Level , Library Level and Item Level will get Download option.


0

That snap-in is for on-prem. You should be using the Client OM as mentioned here


0

I found the solution from someone who was trying to enable the Excel Web Access web part. The solution is to enable custom scripting capabilities. Go to Admin -> SharePoint -> Settings Find the "Custom Script" section Switch these to "Allow users..." (By default the options are set to prevent users from running custom scripts on personal sites and self-...


0

Ok I might be wrong as I use mainly on premise SP2010 and 2013 but I think you need to upload the stp file not the the 'Solutions' library but to the 'List Templates' (ie www.YoursiteURL/_catalogs/lt/Forms/AllItems.aspx)


0

you are getting DocLibSite1 when creating on new app so thats how SharePoint is taking your installed library. It is a custom app which is being created. Second, I dont think you require activate and deactivate feature at this point for an stp file and that is why the options are disabled.


0

One of the methods is to save the first SharePoint online Site as a template and use it in the new account. After that copy and move the content between these sites by mapping the site to a network location. Another option is to try third party migration tool. Save the source site as a template Attach the saved template to the destination site Copy the ...


0

After lot's of googling and efforts I found the below solution. I've added JavaScript in Content editor webpart. I've tested it in IE, Chrome and Firefox browsers. My script is as below: <script type='text/javascript' language='javascript'> var jsGridContainer = null; var jsGrid = null; var viewId = '{9002394D-CBB9-4DDF-98DC-13DAC7C05449}'; //...


0

Follow the pattern of the existing columns in your existing form to add new fields. Or edit the Edit form in SPD and add a new "edit form". That will contain all fields currently in the list and you can copy / paste the relevant code to your original form, then delete the new form.


0

In order to create list in SharePoint Apps Create a SharePoint App Solution in Visual Studio Right Click on Project and Click Add New Item Select "List" from the available templates Now Select Picture Library from the list templates available. In this way you can create Picture library. This step will be same for SharePoint Hosted App and Provider Hosted ...


0

public static void main(String[] args) { try { NtlmAuthenticator authenticator = new NtlmAuthenticator(username, password); Authenticator.setDefault(authenticator); //Authenticating and Opening the SOAP port of the Copy Web Service listsoapstub = SharePointClient.getSPListSoapStub(username, password, ...


0

You can apply this css property on all the th element of the list Suppose you want to disable Title's column filtering and sorting. Then you the below code. SP.SOD.executeFunc('inplview.js', 'InitGridFromView', function () { }); SP.SOD.executeOrDelayUntilScriptLoaded(function () { if (window.InitGridFromView) { var ...


0

You can move sub-sites from one site collection to another site collection by navigating to url https://<yoursite>/layouts/sitemanager.aspx . After navigating to this page select the sub-sites you want to move to another site collection. In Action Menu you have sub-menu as Move. For more reference you can refer SharePoint Online - Move Site and ...


1

If anyone's wondering, solved by implementing CORS on the server instance, allowing the app web to access data. Not the greatest solution as only one domain can be whitelisted per server instance, but it works.


2

You can use Content Organizer feature to route documents to different site collection. Implement a designer workflow to copy the file to Drop off Library after approval. Configure content organiser rule to move the file to target site collection. Learn more about Content Organizer.


2

One of my favorite ways to automate repetitive tasks is to use PowerShell + CSOM. The Client Object Model allows me to run my scripts on top of on-prem SharePoint or Office 365 using the exact same code, so I don't have to migrate it in order to make it run in one or the other. Here is an example of how you use the client dll in a PowerShell script to ...


1

I am not sure if my answer is correct, but I will leave it here to be debunked if I'm wrong. I've reactivated Enterprise features several times, changed tenant settings to allow Custom scripts, checked my tenant version and nothing forced the Content Search web part to appear. So, I suspect that missing Content Search web part could be part of the ...


1

It is impossible for us to know how you've implemented your app, so we can't give you any specific advice. If your app utilizes anything listed in this article, then you're out of luck for the time being. https://support.office.com/en-us/article/Differences-between-the-new-document-library-experience-and-classic-mode-30e1aab0-a5cc-4363-b7f2-09e2ae07d4dc


0

In your ItemStyle.xsl, create a new template and add this code. Make sure you publish it and select the template in the web part properties. <xsl:template name="Announcement" match="Row[@Style='Announcement']" mode="itemstyle"> <xsl:variable name="SafeLinkUrl"> <xsl:call-template name="OuterTemplate.GetSafeLink"> ...


1

Your only option is to use the REST API. The implementation will be a bit tricky because of the complexity involved. See this article for a detailed walkthrough http://johnliu.net/blog/2014/2/19/using-sharepoint-designer-2013-workflow-to-copy-file-via-res.html The REST URL Format is - https://tenant.sharepoint.com/siteurl/_api/web/folders/GetByUrl('...


3

Turns out, the comment is very important. My previous comment was "Checked in during Migration." I believe the extra "." was causing the issue. When I changed the checkin comment to "Migration", it worked. Keep the comment simple.


2

I tried contacting Microsoft for the same requirement but I found this question is already answered by Microsoft support team. The reply from Microsoft Team was like Currently, the sub site limit is 2,000 for Office 365 subscriptions. We can see the limit here: SharePoint Online software boundaries and limits. For any changes, we will update the ...


1

So if I understand correctly you want to track changes to list items, right? Powershell script You can try this script to see the changes on your site collection and then filter the ones applying to the list Workflow as Amal Hashim suggested Alerts on the list:


1

I think 2000 subsite per site collection is just a threshold value. There will be impact on performance if your subsite count is more than 2000. Thats why Microsoft recommends upto 2000 subsites per site collection. https://support.office.com/en-us/article/SharePoint-Online-software-boundaries-and-limits-8f34ff47-b749-408b-abc0-b605e1f6d498


2

If you are working default list forms and you are victim of some unwanted changes and you want to revert the form to original then you can do this by following some of simple steps. Solution-1: Open any existing form that is perfectly working from other list. Remove ListFormWebpart from broken page "<WebPartPages:ListFormWebPart ... to</...


1

I don't think you can achieve this out of the box. Below is a workaround which I think will work Create a hidden list which is used to store the changes Create a workflow that runs on item created or updated Make entries to the audit list along with date and time Now have another workflow that runs every week. You can use Pause Activity for a week and ...


0

I'm a bit late to the party, but I hope this helps someone as I just figured this one out. To get the two different default views that you are requesting in your edited question, you will need to go into SharePoint Designer. First, you need to go into the advanced settings for the list and enable editing of content types. Then, when you go into SharePoint ...


0

Thanks to Danny for putting me onto GetUrlKeyValue I was sending the field name into a URL and querystring to get mylist/newform.aspx?ProjectName=Test2 I was then trying to pull that Test2 into the lookup field (liked to the project list) "ProjectName" in the list "MyList" But even when loading the function for my old script with ...


0

I think you could write a Remote Event Receiver that detects when a document is added, checks how many documents are in the library, checks what views exist, then create a new view in batches of 5000 (e.g. `ID >= 5000 && ID < 10000), since ID is an indexed column. Still, finding more meaningful ways to group and filter data on different indexed ...


2

When you want to retrieve properties for a single item/folder/list/etc and not a collections of items/folders/lists/etc you need to specify properties like this: ctx.load(list, 'Name', 'Url', 'other_property_here'); Basically, you DON'T use Include(), but specify the properties as comma-separated arguments in the ctx.load() function.


2

There is nothing you can do once you go over 5000 items other than deleting items to get under the thresh hold, so it behooves you to plan accordingly ahead of time if a list or library is going to go over the thresh hold. Create indexed columns and create filtered views based off of those indexed columns to return result sets below 5000 items and you'll be ...


0

Unfortunately no, you can't use SharePoint Designer 2010 with SharePoint 2013 and SharePoint 2016. Although there is no SharePoint Designer 2016 But You can still use SharePoint Designer 2013 64x with SharePoint Server 2016. The problem in Sharepoint Desinger 2013 is there is no design view because it's not support HTML 5 tag and CSS in SharePoint 2013. ...


2

To Add OOTB Taxonomy Picker Edit the masterpage and add: In your HTML/page/script editor add JS to set SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () { SP.SOD.executeFunc('sp.taxonomy.js', 'SP.Taxonomy.TaxonomySession', init); }); //Code to initialize the Taxonomy picker control var tagUI = document.getElementById(...


0

You cannot use lookup fields in Column validation in OOTB in formula. You will have to use the client object model(JavaScript, jQuery), or item adding event receiver (custom code) for column validation.


2

No, it wont work with SharePoint Designer 2010 because there is a shift in the code base from 2010 to 2013. However SharePoint Server 2016 is built on the same code base as SharePoint 2013 and the fact that you still can use SharePoint Designer 2013 on SharePoint Online, there are reasons to believe that SharePoint Designer 2013 will function very well ...


0

I think additional overhead of an index and multiple indices don’t give you additional performance gain ** Example For every defined index, SharePoint stores the index value for every list item in a separate table. Having a list with let’s say 50000 items means that we have 50000 rows in AllUserData and 50000 additional rows in the NameValuePair table. ...


0

Add the following code below class definition. [WebBrowsable(true), WebDisplayName("Project ID"), WebDescription("Enter Project Number"), Personalizable(PersonalizationScope.Shared), Category("Project Settings")] public string ProjectID { get; set; } To get the property value in code, you should use the “ProjectID” variable that defined as public string ...


0

Filters can be passed in lists by adding ?&FilterField1=ID&FilterValue=12345 at the end of the url of allitems.aspx


0

These are possible options: Use Rest SharePoint provides most of it's actions as REST endpoints. This could possibly cause some problems regarding the Cross-Origin policies. You can't use request batching here so you may suffer a lack of performance. Reference [Preferred] Use .NET CSOM (serverside) This will work as long as you can access the from ...


0

use Javascript client object model to retrive data from sharepoint list.Sharepoint site should have Anonymous access. Sample reference : JSOM



Top 50 recent answers are included