Tag Info

New answers tagged

0

Check the values of SPField.ShowInNewForm, ShowInDisplayForm and ShowInEditForm. You can do that with PowerShell. Open SharePoint Management Shell and run the following script $web = Get-SPWeb http://YourSiteUrl $list = $web.Lists["YourListName"] $field = $list.Fields["YourFieldName"] $field.ShowInNewForm If ShowInNewForm is False you can set it to True ...


0

Here is my RestUrl- /_api/web/lists/getByTitle('Questions')/items?&$filter=Language eq '1' Details- In this it is fetching all the items in questions List which is having specific languageId. LanguageId is defined from language list having lookUp in Question list. Question List contains a lookup column ie "language" for language List.


0

Go to the Package and navigate to the the Advanced tab. Add the DLL here. Also as said ny @Evariste in his comment above, remove the DLL from C:\inetpub\wwwroot\wss\VirtualDirectories\80\bin location. This will help you to get rid of the exception mentioned above.


0

The user that is configuring Workflow Manager must meet following requirements. If the machine is domain joined, the user must be a domain user; otherwise the user must be a local user. The user must be an administrator on the computer on which the configuration is running. The user must have SysAdmin privilege on this SQL Server instance, otherwise, the ...


0

I had a similar requirement in SharePoint Online and I have finished the Quest and you can refer it over Create content organizer rule in SharePoint Online using CSOM code. I believe you are required to do almost similar approach except instead of connecting to a SharePoint Online tenant site you need to get connected to the one on premise. What's the ...


1

That may be because your DLL hosting the code is deployed into the \bin folder and not into the GAC. GACed DLL have Full control, while \bin DLL have a limited set of permissions (that can be changed in a .config files). You can ensure your main DLL is deployed to GAC in Visual Studio: select the project in Visual Studio, and change the "Assembly ...


0

If you want to keep on with a CAML query (as you don't know the full path of the folder, but nly its name, as you stated in the comments), try this query instead: $camlQry = "<Where> <And> <Eq> <FieldRef Name='FSObjType' /> <Value Type='Lookup'>1</Value> </Eq> ...


0

I ended up fixing it by uninstalling "SQL Server 2014 RS Add-in for SharePoint" on each SP server and installing again. Not sure if this would be normal procedure by my ReportServer Feature is now version 15


0

A lot of things to note here: In case #1, you open new SPSite/SPWeb objects (resulting in a need for AllowUnsafeUpdates). You open new objects only in case you want to run code in an elevation section (or with System user token, with leads more or less to the same result). In both cases, you use list.Items.Add(); witch is a very bad practice: you ...


0

Use SPServices for this. You can pass the lastname / first name and get the user object using which you can fetch user properties. See: http://spservices.codeplex.com/wikipage?title=SearchPrincipals


0

The quickest way would probably be to go to Central Administration, System Settings, and "Manage servers in this farm": then check the value in "Configuration database version" (and see the table at http://blogs.technet.com/b/steve_chen/archive/2013/03/26/3561010.aspx to know corresponding CU/SP). It may also happen that binaries of a Cumulative Update or ...


0

First, we need to distinguish two kinds of files: Office files and other files. For Office files, you may open (and edit) them in the browser by using Office Web Application (OWA) if it's deployed and configured to work with SharePoint in your environment (or in SharePoint Online). If OWA is configured correctly, supported Office documents (Word, Excel, ...


0

I was adding wrong control source path, Control Id="AdditionalPageHead" Sequence="150" ControlSrc="~/_CONTROLTEMPLATES/UsageReport/SiteUsageActions.ascx" just added /_CONTROLTEMPLATES/15/ solved my problem. Control Id="AdditionalPageHead" Sequence="150" ControlSrc="~/_CONTROLTEMPLATES/15/UsageReport/SiteUsageActions.ascx">


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;


0

The best options to inject JavaScript in a SPWeb when activating a feature are: Use the SPWeb.CustomJavaScriptFileUrl property (set it from a feature event receiver) Use a Custom Action (see for instance http://www.spdeveloper.co.in/tipsntricks/pages/referencing-js-files-using-custom-action.aspx) Deploy your own custom master page, with the JS code ...


0

In order to include javascript in masterpage, using the code given below: <SharePoint:Scriptlink ID="Scriptlink120" runat="server" name="~SiteCollection/Style Library/JS Path" language="javascript" />. Add this in your master page and then deploy the solution. This shall include the JS file globally which will allow you to use it at all places.


0

Delete the list columns individually using SharePoint Designer. For both the lists. In case you arent able to delete the column, in any of the lists due to lookup link, delete its related columns in other list. Once the list does not have any columns you will be able to delete them


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

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


0

I have seen this before, my solution is that if your WebPart has any validator, you should fill some data to pass this/these validator(s) for saving your page. It often happens in SharePoint. Hope to help you.


2

In SharePoint 2013, you have the flexibility to use HTML file to edit the master page and it will be converted to .master file automatically. That means you can edit the .html version of master page in any Editor (Text editor or Html editor like Notepad++, Dreamweaver, Visual Studio etc.). During editing you can place different SharePoint controls on ...


-1

Yes you can, You need to build custom master pages using visual studio 2013. deploy the wsp to server.


3

Nate, try the following code $web = Get-SPWeb "http://webAddress" $folderPath = "folderPath" $relativeUrl = $web.ServerRelativeUrl $folder = $web.GetFolder($relativeUrl+$folderPath) if ($folder.Exists) { Write.Host("Folder exists"); } else { Write.Host("Folder does not exists"); } Let me know if you have any questions.


3

The simplest way to check existence of a folder is the following (code not tested, may contain syntax errors, but the idea is clear): $web = Get-SPWeb "<Sub-site absolute URL>" $folder = $web.GetFolder("<absolute, or server-relative URL of the folder>") $folder.Exists


0

This seems like library version is on. So the page you edit will only reflect to admin user. Unless and until you check in the page other users can't see changes.


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.


0

You may configure Form Based Authentication (see in the Authentication Providers page for the Web app in CA), and then edit the web.config file (on each WFE) to change the loginUrl property of the <forms> tag to point to your own page.


0

The dialog only takes the URL, it is up to you as a developer what to do with it. I presume you are on 2013 See code at Upload new image in asset library in SharePoint Online Search for Cross-Site Publishing on how to 'sync' your (Asset) Libraries. https://technet.microsoft.com/en-us/library/jj635883.aspx ...


0

As far as I read your requirements then it's out of the box functionality, so no need to write any code. Configure SharePoint to accept logins from the two other domains' ADFS servers (see TechNet: Configure SAML-based claims authentication with AD FS in SharePoint 2013) and it should just work: When users access SharePoint they'll be asked to select ...


2

You can enable developer feature by running the below script in the browser console: 'use strict'; var context = SP.ClientContext.get_current(); // This code runs when the DOM is ready and creates a context object which is needed to use the SharePoint object model var site = context.get_site(); context.load(site); context.executeQueryAsync(function () { ...


1

There are two things you should change in your script: You are using $file.Properties which are not exactly SPListItem metadata. You should use $file.Item["fieldname"] = ... To change document metadata. As it seems you are trying to set a taxonomy field that is not so straightforward. You should look,at this blog post on how to set taxonomy field using ...


0

Create a calculated field, let's say it's called NonBlankFields. Set the formula of this field to be all of the string lengths for the fields you want to check multiplied together. If any of the fields have a 0 length, the product will be zero. You can have a formatting rule with the condition that if NonBlankFields = 0 then disable your SUBMIT button. ...


0

They aren't traditional controls per sé, like on a Windows Form, so there isn't an easy way to disable them, i.e. greyed out and not usable. If it would be sufficient to remove them from the DOM (not visible on the page therefore the user can't interact with them), using jQuery: $( document ).ready(function() { ...


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"}); } } ...


2

Elevating privileges in JavaScript Object Model is not supported in SharePoint 2010 as well as SharePoint 2013. However if you need to work with a specific object such as a list or a web then we can use the SharePoint Add-In model (App model) to create an add-in with an App-only Authorization to grant access to the specific object while installing the ...


0

If you experienced this problem check: all SQL servers in farm have installed latest SQL Server service pack run rbs.msi through administrator command line without parameters and install by GUI restart server where you run $rbs.Enable()


0

When user click Share , in pop up you will find two options in dropdown 1. Can Edit --> This will add user as Contribute level access 2. Can View --> This will add user as Read level access


0

The parameter Get Information from shows the list name you are referring for the lookup.


0

You should always make sure that your source and destination farms have the same configuration. To resolve your issue you'll need to reconfigure your reportserver wsp. To do that you can use the existing wsp and deploy it in 14,15 compatibility mode. Install-SPSolution -Identity contoso_solution.wsp -GACDeployment -CompatibilityLevel {14,15}


1

you could find in "Get information from:". :) For this one, the list or library name is "Function group index".


0

If you have enough rights in the library, I think you already have in this situation, you could invite/add user directly in classic interface of library for changing permissions. Click Share with => Choose Advanced => Add someone in the library with contribute rights.


0

You'll need to make the column visible from the content type setting. For that you'll need to goto list setting, click on the content type and there you can set the order of the columns and also which fields are visible on dispaly, edit and new forms. Do let me know if you need a complete tutorial.


2

In your custom form use Client Side Rendering and render the desired people picker column with the default template, i.e. SPClientPeoplePickerCSRTemplate. This will automatically render your column as you desire. Source


0

There is a much easier way to implement a people picker in Javascript. You can use Rest Api to do this as well. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> ...


0

This isn't actually an attempt to answer (I just don't have the rep to simply post a comment to your question). Can you replace the link that you posted above with a screen shot of what the error looked like or maybe use the snipping tool. The link provided doesn't show the error just a huge log of information.


0

MSFT recomending that you should recreate pages layout in new version. When you upgrade your site collection to SharePoint 2013, these types of customizations will not work as is because the default CSS styles, themes, and master pages have changed. Instead, you must re-create your custom branding by using the new styles, themes, or master pages ...



Top 50 recent answers are included