New answers tagged

0

You need Office Web App for the script to be capable with any javascript.


1

Here's a slightly modified version of the code I created in an older question - this should help you achieve your task. Reference: JSOM - get listitem by file URL function getFileProperties(url, fileUrl) { var ctx = new SP.ClientContext(url); //get context var siteCollection = ctx.get_site(); //try get site to check if context is valid ctx....


0

You can use formula like below [ID]+StartingNumber E.g. [ID]+1000 It will automatically increase every time whenever new item created.


0

Why do you want a calculated column for it? You may use the default ID column, which will automatically get incremented by 1 whenever a new item is created.


0

You can use google Analytics, just need to set the username in customvar, here is an example. Using jquery, jquery cookie plugin, jquery spservices.. In Google Analytics you can use the customvar1 in custom reports.. var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']); _gaq.push(['_setDomainName', 'XXXXXXXXXXXX.com']); // ...


0

The cleanest link you can get for a document can be found when you open the Ellipsis (...) on the document or folder as the URL found in the dialog box formats the direct path to the document. (https://<server>/<site>/<library>/<folder>/<filename>) Teach your users to open and use this link when copying and pasting a direct ...


0

They are just SharePoint pages based on a page layout. If you have already created a new master page you can create your own page layout and add the web parts wherever you like.


0

It turns out that search application's service account password was change so all I had to do is to change the password and everything is good now.


1

I don't think its possible. Workaround.. Add a checkbox next to the date field. Initially disable the Field.. Enable the field if they select the checkbox.


0

Some of the stats can be gathered from PowerShell others you may want to look at usage analytics or 3rd party tools. They can stay in 2010 mode. Analytics in 2013 is handled by the Search Service Application and the Usage and Health Data Collection Service Application, so you need that before your analytics will work. Then configure Usage and Health Data ...


1

One of the prerequisites of Mapping SharePoint to a network directory on a remote machine is to Make sure that The webclient windows service has been started. Go to "Run" (windows button + R )> type service.msc > make sure that the web client service has been started. Note : If you can't find it try to install Desktop Experience feature as mentioned ...


0

In Sharepoint browser, For sites: Site Settings > Site permissions > create a new group or add user to existing group For document library: Site Libraries and lists > Customize "(document library name)" > Permissions for this document library > create a new group or add user to existing group


0

It should read -Identity Enable-SPFeature –Identity "OffWfCommon" –url http://site


2

I realized what was needed to be done. I had to enable Desktop Experience Feature in Windows Server 2012 so that WebClient windows service starts up. Then process of mapping SharePoint to a network drive is the same.


0

use in your custom css !important it's overrides others codes like: .ms-cui-ribbon { font-size: 12px !important }


1

You can find lots of information online, for example: Manage permissions for a list, library, folder, document, or list item User permissions and permission levels in SharePoint 2013 Understand groups and permissions on a SharePoint site Roadmap: Grant permissions for a site


1

If you just want to center the content section of the page, I would use css to re-style the #contentBox as follows: #contentBox { margin-left:auto; margin-right:auto; width:1200px; // this should be set to whatever you want to fix the width of the page at }


0

Check if these users have a unique permission for a specific list within your sub site. to check permission for specific users go to site settings > users and permissions > Site Permissions Also, you might need to run Full User Profile Synchronization service from Central Administration.


0

Yes you can use $htmlEncode(ctx.CurrentItem.Title) which shows original title, instead of highlighted title. However with this approach your titles won’t be highlighted anymore. You probably need to add some extra logic to keep highlighted functionality.


0

I have never seen such behaviour. I suspect the web application you created in Dev is set up on that port. You can check this in Central Administration website.


1

You are on-prem, On your SP server, start a Task-Scheduled Powershell script which sets the Item Level Security. Note: The UI only exposes this for Lists, but with Code you can set this for Libraries as well! with PowerShell: $spList.ReadSecurity=2 # 1=read all items, 2=read items created by user $spList.WriteSecurity=4 # 1=Create and edit All, 2=...


0

First try to delete cookies , and reset IIS , if this is not helped you , Try to check the following causes for this issue Application pool account was missing the “Impersonate a client after authentication” user right The Web config file might have been modified in incorrect format. An Application Pool might have been stopped.(Check all WFE servers within ...


0

Basically, [Today] doesn't include the time value, so the values in the background are like this: [Today] = 40,024 (Serial date value) [Start Date] = 40,024.604166667 (Serial date + time value) This means that you can't check the Time using [Today] The easiest, yet not recommended solution would be modifying the view in SPD. Follow this short guide: ...


0

Thank Amal for your idea, I have done it using Client Side Rendering. Please find the steps below, Create a new view in the Promoted Links list using All Promoted links view Link the below JS code to the list view webpart using JS Link (function () { var option = { Templates: { Item: CustomItem } } ...


1

There is no real time update possible. You can do a polling mechanism (which might require some good amount of coding) or just use JavaScript to activate the Refresh All connection click event. If you use Fiddler you can capture the AJAX request that gets sent by the Refresh All click. Then use that in JavaScript and call it every X seconds. This will ...


0

In my experience database-attach method works best for the upgrade path from 2007 > 2010 > 2013 > 2016. The level of customization is a big factor though.


0

You still have to provision the search service topology to those servers. Each of the 6 search service application components has to be allocated by you through PowerShell as the admin.


1

In the CSS you posted, you do not have the proper capitalization. You want: #suiteBarLeft instead of #suitebarleft


1

You can try adding the CSS directly into the master page Just before </head> Add <style>#suiteBarLeft...</style>


1

Yes and no. You can't create true parent-child relationships, but you can make do depending on your requirements. If there will always be only one parent matching one or more children, you can write a workflow on the child list that will modify the parent item, then write a workflow on the parent item that runs when the item is changed.


0

For others looking for a solution I thought I would post my outcome. I have a form with toggle fields and I needed the validation to align with the choice field. I am not able to use InfoPath as it is not compatible with all our users. The below validation is a result of creating a toggle form using JS and then the conditional validation statement in the SP ...


0

First create a css file and add below inside that <style type="text/css"> #sideNavBox { display:none; } </style> Now your code behind will be if (IsSubSite()) { HtmlLink styleLink = new HtmlLink(); styleLink.Attributes.Add("rel", "stylesheet"); styleLink.Attributes.Add("type", "text/css"); ...


0

There are syntax error. Try updated query <Where> <And> <And> <Eq> <FieldRefName='TypeofEvent'/> <ValueType='Text'> + selectedChoice[TypeofEvent].ToString() + </Value> </Eq> <Eq> <FieldRefName='Date'/> ...


1

Since it is your custom WCF service. Couple of options In case of on premise deploy the WCF service into SharePoint Context (ISAPI) In case of office 365 you can create SAML request for authentication. You should get the credentials from the user and pass it for authentication.


0

I think in your situation migrating from 2007 to 2016, you have following options. Use the 3 red party tool I.e sharegate or metalogix... (They offer free trial as well). This will help you error free migration, also reduced the cost in term of setting up too much sp farm(2010,2013,210) Another Option, if you don't have too much customization, only content ...


2

Ootb this is not possible as every option have their own limitations. You already mentioned those. Now only choice is use third party tools which help you to get this done. You can try sharegate as they not too much costly also offer free trial. http://help.share-gate.com/article/914-promote-a-site-to-a-site-collection


0

You basically can't make changes to a collection (e.g. add/remove) while you are iterating through the collection, since you are effectively changing the very object that you are iterating, while you are iterating it. This is one of those cases were Linq would have been great, except for the fact that SPRoleAssignmentCollection does not implement ...


1

Microsoft says The database-attach method is the only supported method for upgrading And your upgrading path should be 2007 to 2010 2010 to 2013 2013 to 2016 I have a article on 2010 to 2013. Same thing works for 2013 to 2016. SharePoint Migration 2010 to 2013


0

Here's PowerShell script to fix this issue. You need to replace domain\user with the actual domain and user name. Need to do this for all users one by one or may be you can improve it by using a loop to do all at once. Also note you need to use appropriate number for content database. In the example below since I only have one content database hence i am ...


0

there are couple of ways to do this. either convert the Web Application in SP 2010 from Classic to Claims then upgrade to 2013. or create a Classic Web Application in 2013 then upgrade the content database to 2013 then convert the web application. Create Web Application as Classic mode is only possible via PowerShell New-SPWebApplication -name "...


0

Try viewing the calendar and looking on the left side under the small calendar for "calendars in view" See if there are more to add in there.


0

This worked. $spSitecollection="https://xxxx.com" $webs= get-spsite $spSitecollection | Get-SPWeb -Limit all | where {$_.serverrelativeurl -ne "/xxxSearch"} | select serverrelativeurl foreach ($element in $webs) { $relURL="$spSitecollection$($element.serverrelativeurl)" $web=get-spweb $relURL $web #delete existing link $...


0

Never use Domain Administrator accounts for SharePoint. It's not needed. Also, this error must be resolved on a per-service basis. Please edit your question with the services the error is calling out as not all services can be resolved; typically once resolving the services that can be changed, I disable the health rule. You cannot migrate the Admin content ...


1

Check your Search Service Application. There is a setting for the Global Search Center URL. It is likely pointing to the old location.


0

You can do this by breaking the inheritance of the respective pages. If the user don't have permission to the page then they will not see the link it. (Assuming the top navigation is out of the box)


0

You can subscribe people to the list by group or create a simple workflow that is fired off when the item is created. You can more complex with the workflow if you like. If you want to Send a meeting invite for calender see the link. Create the new workflow. Add the send an email task. Look for the users you want emailed to and add them to it. Then set ...


0

Go to your Calendar List Choose "Alert Me" & "Set alert on this list" from the ribbon Setup your Alert


1

So, after all the trials before redoing the site all over by hand, at last the Export/Import SPWeb worked out! First I exported the broken site collection including all versions and user security: Export-SPWeb "BROKEN_SITECOLLECTION_URL" -Path C:\SP\Backup\backup.cmp -IncludeVersions All -IncludeUserSecurity -NoLogFile -Compressionsize 100000000 Then I ...


0

Go into Term Store, select the term and specify a target page for the item, the path to the anonymous page that uses the term. Also Navigate to the hidden list at /lists/TaxonomyHiddenList and check the permissions. If necessary grant read to All Authenticated Users/everyone.


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 ...



Top 50 recent answers are included