Tag Info

Hot answers tagged

9

Me in a Calculated Column I do not understand why you want [Me] in a Calculation. You can use [Me] in de View Filter settings Like the [Created By] and [Modified By] Columns and Lookup Columns [Me] is not available for Calculated Columns as the textual information is not stored in the List Item. I presume its legacy behaviour. Although with todays ...


7

John is more or less right, but you need to use SP.KeyValue afaik: 'properties': { '__metadata': { 'type': 'SP.Utilities.EmailProperties' }, 'From': from, 'To': { 'results': [to] }, 'Body': body, 'Subject': subject, "AdditionalHeaders": {"__metadata": ...


6

The simple process of setting item level permission is not available for SharePoint 2013 workflows. The only way I was able to do was through REST api called under Appstep. There are 2 calls made: BreakRoleInheritance AddRoleAssignment This blog by Yuri Leontyev​ ​ over at spssite.pro can be a good start. Excerpt: BreakRoleInheritance​ ...


4

Looking at the example and your error message, I wonder if AdditionalHeaders needs results (similar to To:) data: JSON.stringify({ 'properties': { '__metadata': { 'type': 'SP.Utilities.EmailProperties' }, 'From': from, 'To': { 'results': [to] }, 'Body': message, 'Subject': subject, 'AdditionalHeaders': { ...


4

The built in [Today] and [Me] values have never worked in calculated columns, all references to this in previous versions were "hacks" as Sane mentions. The best ways to do this would be either via workflow on item creation/edit you update a fields based on the formula you desire or you could try a remote event receiver to handle it.


4

this worked for me. var ctx = SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle('Calendar'); var item = list.getItemById(121); item.resetRoleInheritance(); ctx.executeQueryAsync(function(){alert('success')},function(s,a){alert(a.get_message())}); if you are opening the OOTB EditForm from a link on your custom CEWP, execute ...


4

This is possibly due to the fact that MDS is enabled on your site. When MDS is enabled, you have to take a couple extra steps when setting up your Client Side Rendering scripts so that they are not bypassed by the MDS engine. Specifically, instead of having all your CSR override code wrapped in an anonymous self-executing function, you need to provide a ...


4

Set your CAML Query like this: ViewXml = @"<View><Query><Where><Eq><FieldRef Name=""Status""></FieldRef><Value Type=""Text"">Approved</Value></Eq></Where></Query></View>"


4

Try adding the query string parameter to the URL: IsDlg=1 Can't test right now but that works for dialogs. Maybe it works for the page viewer too. I can try it out when I get back to my desk. EDIT Thanks to Akhoy for pointing out an issue with IsDlg when using the PageViewer web part. David Lozzi's blog describes the issue but basically, use IsDlg if ...


3

No, You have to Uninstall the SharePoint foundation, Then Clean Install the SharePoint 2013 server. You can take the backup of Content DBs so that once you install the SharePoint server then you can use those.


3

In the SharePoint Server exists a product great for this need. http://www.spcaf.com/ It is expensive, but can download a version trial, this product is the more recommended for code review and for metrics compliance. Try this and after tell me your experience with the product.


3

You can use the SP.ListItemCreationInformation.set_folderUrl method (MSDN). And here is a simple example: var clientContext = SP.ClientContext.get_current(); var list = clientContext.get_web().get_lists().getByTitle('Custom'); var itemCreateInfo = new SP.ListItemCreationInformation(); itemCreateInfo.set_folderUrl('/Lists/Custom/Folder'); var listItem = ...


3

The Number trick to display HTML only works in Views, it shows the bare HTML on Forms and in Alerts. Full explanation and pros & cons at: http://viewmaster365.com/index.html#/How For Forms you have to go for Client-Side-Rendering (CSR) BTW Your Formula: =IF(Area="HR" ;"<div><img style='float: left' ...


3

You can do this by embedding CSS on the page targeting the ms-tileview-tile-content class. Essentially you can add a Script Editor Web Part on the page, and include the following code within. <style> .ms-tileview-tile-content { border: 2px solid black; } </style>


3

CAML joins, to my knowledge, only work on the server side. To mimic that on the client side, you have to make several calls, storing the results in objects or arrays, parsing through that, and making further calls. This isn't a limitation of SPServices, but the underlying web services themselves.


3

If I understood you correct you want to set your date as yesterday, two days ago, etc. and not just to see actual date 18.08.2015. If so, there is choice field when creating date column, name of that field is Display Format. you should choose Friendly option, default option is Standard. I do apologize if you meant something different to ask.


3

You can use SharePoint's PreSaveAction() where you can check for the values and create a popup. This function is automatically called when user try to save an item. Below are the steps to use it: Add a script editor webpart on your page Write the below code in it and save jQuery is optional though you'll always need to return true or false depending on ...


3

You should try something like this .nav li a .menu-item-text, .nav li a:link .menu-item-text, .nav li a:active .menu-item-text { color:White !important; } .nav li a:hover .menu-item-text, .nav li a:visited .menu-item-text { color:#33CCFF !important; }


3

Only through AZURE OR an APP or ADD-IN can you access content in SP using the REST api (and ADAL) Most links in the other answer are about making REST calls within the same domain. I have a similar open question: Is Visual Studio required to built a Front End to write (REST) data into a SharePoint Online list


3

First one is wrong, because you can have only one Value child in Eq element. Second one is wrong, because you put your desired values in Type attribute. You've used correct syntax in first one: <Value Type='Text'>Ordered</Value> So the correct query is: <View><Query><Where><In><FieldRef ...


2

When a document library is defined as "Site Assets Library" in library Advanced Settings, then SharePoint will upload items into subfolders in the designated Site Assets library.


2

If I got you right, you search for documents using CSOM/REST. Let's assume you try to use 'query' method of '_api/Search' endpoint. All you need is to define selectproperties for query: You may need SPWebUrl to construct request to REST endpoint for item properties. Let me assume you're using on-premises SharePoint Server 2013 installation. In this case ...


2

You cannot directly specify today and me in calculated column to set the values. You will have to create columns named Today and Me and then use it in your calculated column. Once you are done with the formula for the calculated column, you need to delete the 2 columns created for this. I think this will make your things work.


2

You can set a group as a default group of the site. Doing this would make the group appear by default when a user requests permissions to the site. If you go to Group Settings, there is an option to set Group as default. You can also change the permission you give to a user by clicking on the ellipsis shown next to the user. Source: ...


2

The View Filter can not do (x OR y) AND z it does: x OR y AND z So you have to move part of the logic into a Boolean type Calculated Column DocumentTypeFilter =OR( [DocumentType]="Dashboard" , [DocumentType]="Supporting Detail" ) And use DocumentTypeFilter=True in the View Filter You can not use [Today] in a Calculated Column, because those ...


2

You can try using the property UrlDepth. It allows you to manipulate how deep the URL needs to go for the query. for example; UrlDepth=1 returns things like http://site/subsite UrlDepth=2 returns things like http://site/pages/page.aspx or http://site/subsite/subsite May help a bit.


2

I don't know about any standardized process here, but what I usually do is: - Create a text report (Word converted to PDF) that lists all "improvment" points found in the code. - The points are listed by file. - For each point, I have a nomenclature to target its area: [P]erformance, [M]aintanibility, [S]ecurity, [D]eployment, [E]xecution error may occur. ...


2

There is all sorts of ways to skin this cat. Add a Custom Action which can only be used once Use CSR to render a button for each item This all requires some coding. For quick prototyping I stuff HTML+JavaScript in a Calculated Column (and then instruct the 5 US$ an hour programmers in India to replicate the behaviour in more solid code, although to be ...


2

Try adding a Script Editor web part to the top of the page, edit the web part, click on "Edit Snippet", and add your style block there. SharePoint strips some things out of the main content areas, but you can effectively add style blocks, links to style sheets, script blocks, and links to script files in a Script Editor web part.


2

Publishing Portal maps to "BLANKINTERNETCONTAINER#0" and not "BLANKINTERNET#0", which is specific to subsites. You can verify this or any other site template from the site creation page by using your browser's dev tools and looking at the select option that represents the site you're trying to create:



Only top voted, non community-wiki answers of a minimum length are eligible