Tag Info

New answers tagged

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

According to Automatically created managed properties in SharePoint Server 2013: Data format for Managed Metadata. To query for items tagged with a Managed Metadata field, you have to use the Unique Identifier for each label. You can find the Unique Identifier for each term in a term set in the Term Store Management Tool, on the GENERAL tab. In ...


0

To add a custom action to an existing feature: Add a new "Empty Element" to your project (there's no option to directly create a custom action element) Add manually all the Custom Action XML declaration in it (your first piece of code in your question) Double-click your feature. You should see a double-panel window. In the left pane, you see existing ...


0

Add the Application Pool account as term Store administrator. For check your application pool account´s use the following command: Get-SPServiceApplicationPool


0

The follow function needs the MySite Site Collection. The information is stored in the site collection. There is a special List named Social in every MySite storing this information. For the Followed Document are store under the url: https://mysite.host/personal/<name>/Social/Followed Document


0

I am sure you dont need the Mysite, but you need the User Profile Service. All the social stuff stored in User's profile not in the MySite. It is development link but good to read it.https://msdn.microsoft.com/en-us/library/office/jj163217.aspx


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

I'm sorry but the setup user/farm user has to be a domain account. You can find more information about this following this link Setup user account - Domain user account Server farm account - Domain user account


0

Just to close this up -- Turns out the problem was indeed related to InfoPath, specifically the lack of InfoPath Services on the 2013 farm. The old 2010 farm was running SP 2010 Enterprise, and the farm the site was migrated to is running SP 2013 Foundation. So... no InfoPath Services available. Oops.


3

CSOM: will work in SP online, SP 2010, 2013 and most probably 2016 REST: will work in SP online, SP 2010, 2013 and most probably 2016 OOTB Web service: will work in SP 2007, 2010, 2013 but maybe not in 2016 (and maybe not with future versions of SP online) Creating your own Web service with SOM: will work in SP 2007, 2010, 2013 and 2016


0

I think, SOM is better option for doing complex operation in SharePoint. Becuase if you use REST/ CSOM, internally it will call some service which will get some time to execute that query than SOM on the server. so better to use SOM which will directly hit the server for operation.


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


0

Okay, after weeks of struggling here I found the solution. I just need to activate Workflow can use app permissions in Site Settings and create elevated permission. I followed this link: Create a workflow with elevated permissions by using the SharePoint 2013 Workflow platform Hope this helps!


0

You can refine the search by using the syntax PropertyName:Value. e.g. Title:Bob. You may find all available properties ("Managed Properties") in the search settings, from the CA. Some links: Default managed properties are listed here: https://technet.microsoft.com/en-us/library/jj219630.aspx. See existing properties: ...


5

CSOM and REST was introduced in SP 2010 so you wont be able to use that with 2007. SOM is an option but requires that your code runs on the servers of each farm. SharePoint Web Services will be your best option if you need to support all three versions with the same code from client computers. Lists Web Service (/_vti_bin/Lists.asmx) for getting libraries ...


1

The client object model was created in 2010. CSOM did not exist in 2007. So I would recommend the server object model.


2

If you're going to develop a custom following feature, you don't have to use MySite. You can have a database outside of SharePoint databases which isn't governed by ConfigDB. I guess you have good reasons to do so. The users MySite isn't created when the user signs in to SharePoint for the first time. It's created when the user clicks her name and when she ...


1

If your lists are in site collections which are within the same farm (or server), you can try this: Function Copy-SPView([string]$WebURL, [string]$SourceList, [string]$SourceView, [string]$TargetURL, [string]$DestList ) { Write-Host "Loading Sytem Modules"; #Get-Module -listAvailable | import-module if ( (Get-PSSnapin -Name ...


1

I think it would be best to have them follow a standard naming convention for the Content Type names, like VendorName(or abbrev) Document, VendorName Project, etc and use separate groups. They could then use a singular CT hub and would reduce collisions. This gives total visibility to everyone and can help with governing it too. I would fear that if it was ...


1

After some intense debugging I am answering my own question. And wasted +50 StackOverflow points on this, so am an idiot. I copied and de-minified the original (global) SharePoint RenderGroupTemplate function The relevant lines: b[d+".groupHeader"]=true; a+=spMgr.RenderFieldByName(c,d,b,h); delete b[d+".groupHeader"]; Became: ...


0

It is possible to make some fields Read Only for an External List. The idea is to create a new Edit Form in SharePoint Designer. The original EditForm.aspx file does not show tables and columns in it. Once you create a new EditForm.aspx file, Edit it in Advanced Mode. You can see all the table structure, columns, labels etc. in XSLT Format. Find attribute, ...


0

Here's the final function I ended up using to add the web part: function addWebPart(webUrl, pageUrl,webPartXml,zoneId,zoneIndex, Success,Error){ var context = new SP.ClientContext(webUrl); var web = context.get_web(); var file = web.getFileByServerRelativeUrl(webUrl + pageUrl); var webPartMngr = ...


1

I'm not sure that I fully understand the question (and I don't have enough rep to comment), but it sounds like you could add ?Source=http://URLHERE.com to the end of your URL to redirect. If you already have another parameter set, you'll have to change it to &Source=http://URLHERE.com.


0

I created a new site with a new content db and migrated the contents and subsites with 3rd party tool (in my case ShareGate). Then I could upgrade the site collection. But my client doesn't want to buy a migration tool to migrate only one single site collection. So I ended up using the export-spweb and import-spweb cmdlets to move the old contents to the ...


0

I found out that out-of-the-box if you set the chrome to none and minimize the webpart (via its own menu) it looks like it is not there. Workaround if you do not want to use coding.


0

I think it's a bug, but opening the site on IE compatibility mode resolves the problem.


1

You can try: function openModall(pUrl) { SP.UI.ModalDialog.showModalDialog( { url: pUrl, dialogReturnValueCallback: CloseCallback } ); } function CloseCallback(result, returnValue) { if (result == SP.UI.DialogResult.OK) { // some code } else if (result == SP.UI.DialogResult.cancel) { // ...


0

By default, all fields all loaded if we don't specify any fields in ctx.load()So try using Ctx.load(item) and then retrieve whichever field you want by item.Id or item["Title"]


0

When Launch forms in a Dialog option is set, it eventually calls OpenPopUpPageWithDialogOptions method. We can override this method and specify parameter values that will be used to construct the dialog. In this example, width is increased to maximum of 1200 pixels. This script must be present on a page where WebPart or List items are listed. /* ...


0

Did you try onclick="window.open('http://msdn.com'); window.frameElement.commonModalDialogClose();"


0

A simple trick is use the .. to get higher in the folders: <SharePoint:CssRegistration name="../../Your.Name.Space/css/style.css" runat="server" After="corev4.css"/> This will produce a html like: <link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/../../Your.Name.Space/css/style.css?rev=XXXXXXXX"/> The browser will interpret ...


0

You can use the code given below: Close the popup: $('dialog id').dialog('close'); Provide the id of the popup @ dialog id and check. Redirect to parent window: window.parent.location.herf="http://www.google.com"


0

window.close(); I think you mean redirecting to parent window. If you want to close the current popup window in back end, form/window is the parent. onclick="window.open('http://google.com'); window.close();"


1

Their are two ways to check this. You can Use the powershell commands [Get-SPLogLevel][1]. This example displays throttle levels for all categories. You can go to Central admin Site of farm. Central Admin> Monitoring > Configure Diagnostic logging. On this page you can expand all the categories and check th level of Log.


2

You would use Get-SPLogLevel -Identity <value>, e.g. Get-SPLogLevel -Identity Database to show the current level for the Database category. You can also exclude the Identity parameter to get all categories.


0

Okay, I finally got this to work. I'm going to post a detailed step-by-step way I did this. The problems I've been having seem to mostly be related to not understanding a lot of the terminology/locations of things. Hopefully this will help anyone else still new to everything. I opened the main site in SharePoint Designer 2013, then opened the Master Page ...


0

1 - Create a List View 2 - Create a page and insert a list webpart 3 - Edit the webpart and point to created view 3 - Grant the permission to the page


1

So, first off, yikes. My first question to a situation like that will always be, "Do we actually need a single library with that many things inside of it? If so, why?" Now, to the problem at hand. Why have it all in a single library? Why not create a second library and set permissions to grant read access to your read user group on that library? You ...


0

The other answer on this question is definitely the simplest, most straightforward way to accomplish what you're trying to do. In a vacuum, I would absolutely suggest you use content types. In the interest of ensuring the question is fully answered, there are two more ways we can accomplish cascading choices. Use InfoPath InfoPath forms are built for the ...


0

Instead of using the "Upload button" as you have highlighted in the screen shot above click the icon directly to the left of it entitled "New Document". If you click it on an iPad the "Add a document" panel will appear on the page. If you then click choose file you can either take a new photo or select a photo from your image library. Choose the picture you ...


0

Go to Library for which you created views. Copy the url for different views you created. If not aware how to capture url below image will help you You can select different views from dropdown and capture urls. Then you can add them in nevigation as below:


0

Have you tried adding links using Navigation link in Site Settings -> Navigation under Look and Feel Section


1

My issue got resolved. Actually Internal name was different for description field. After using internal name my issue got solved.


0

How to delete those Custom Site action menu that we created in CSOM as you mention last answer.please do needful and help me.


0

Your Regular Expression will only work for 1 digit. To accept 1 or more digits, change it to ^[0-9]+$. To accept 0 or more digits, change it to ^[0-9]*$


0

Hi actualy your validation express is correct same working for me but it was allowing spaces so i tried bellow mentioned validation express. try this and let me know whether it was helpfull or not. \d+ If you want more details about the validation regular expression you can visit bellow mentioned link Regular expression for validation controls


0

Vadim Gremyachev's answer worked for me. If the column name contains camel case then insert "/" before the case change. For example if the column name is "TasksID" then in the query put it as "Tasks/ID" and it will work fine. If "/" is not placed then you will get the following error. { "error":{ "code": "-0000234234, System.ArgumentException", "message":{ ...


0

I am currently having the same issue with my 2013 search site. here is the article article helped me. I was still having the same error after following the article above. I have added the line below in the web.config <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" /> After this, the ...


0

This does it: $ssa = Get-SPEnterpriseSearchServiceApplication $ssa.SearchCenterUrl = "$SearchSiteURL" #which ends /pages $ssa.Update() No Site Collection settings need to be updated - only if it should display on a different search center.


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



Top 50 recent answers are included