Tag Info

Hot answers tagged

5

Deploy your feature to Web Scope and enable the feature on your subsite. Register the event receiver (element.xml) with: <Receivers ListUrl="Lists/test">


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

This should do it: Download jQuery and save it to /SiteAssets/ Create a JavaScript file named comma-break.js and save it in /SiteAssets/ with the contents of: $(document).ready(function () { var str = $('.ms-listviewtable').html(); //; $('.ms-listviewtable').html(str.replace(new RegExp(", ", "g"), ",</br>")); }); Add a Content Editor ...


3

You have to add two permission levels on the site. One level needs Add Items and View Items permissions. The other level needs View Items. Then assign the level to two different groups and it is done. User permissions and permission levels in SharePoint 2013 If you want to hide the Edit button in the quick edit mode, I would suggest you to use Javascript ...


3

Then in your list, you would want to make sure that the permissions are set so that only your administrators have Contribute, Edit, or Full Control access and everyone else has Read. This can be found by going to the List tab and selecting List Settings and clicking on Permissions for this list. You might have to break permissions inheritance and set ...


3

Best way to move SharePoint solutions is using .wsp file which is created as you deploy any solution just copy from development, paste in production and then add and deploy solution there by power shell. To move list use export functionality in central admin of development and then import the .cmp file in production. done!


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


2

It is ~sitecollection/etc/masterpage/colorpriority.js You have /site_collection/etc/masterpage/colorpriority.js Must read for all CSR developers: http://spdevlab.com/2013/07/07/5-facts-about-jslink-in-sharepoint-2013-you-might-not-know/ Alternative: Color using a Calculated Column FYI, You can also Color based on Priority using a Calculated Column ...


2

Please make sure the person approving the item have enough rights on the list. If you are using a task list, approver would require contribute permission on it, else how would he be able to modify the status of the task.


1

It's because $lista is $null. Are you sure this is correct title of the list? In PowerShell you won't get error when you try load list with incorrect title. You also won't get exception executing follofing: $null.Something foreach ($a in $null) {} That's why you get an exception so late, on the Update() method. You should also use Get-SPSite instead of ...


1

I think you should check on 2 things In $item["title"] you should use casing, because SharePoint understands Title hence improve it to $item["Title"]. I guess you don't need $lista.update() Refer below updated code. #Add SharePoint PowerShell Snapin which adds SharePoint specific cmdlets Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue ...


1

Use <FieldRef Name='Shelf'/> instead of <Field RefName='Shelf'/>


1

In case you use JavaScript: First of all you need a reference to SP.dateTimeUtil.js: <script type="text/javascript" src="/_layouts/15/SP.dateTimeUtil.js"></script> This file contains a JavaScript function called getRelativeDateTimeString() accepting four parameters: Date ISO8601 IncludeTime CalendarType AdjustToServersNowTime You call the ...


1

Assigning a list guid to registration id is not possible. In your case you would need to have a specific list-template-id or content type assigned to this list and assign this to the registration id. You get a custom listtemplate-id if you create a list definition in a solution and create a new instance of this list. Otherwise you could use the ...


1

You can use the EnabledScript attribute to enable the action just for your Meeting List. <CommandUIHandler Command="Ribbon.ListItem.CustomGroup.Controls.BtnSayHello.Command" CommandAction="javascript:doYourStuff();" EnabledScript="javascript: function isEnable(){ if(SP.ListOperation.Selection.getSelectedList() == "meeting list GUID"){ ...


1

ask someone who has permission to the site or the site collection administrator. There is no other way


1

You can use the PreSave() function in the newform.aspx. <script type="text/javascript"> var $j = jQuery.noConflict(); function PreSaveAction() { var dataValue= $j(":input[title='YourDataField']").val(); if(dataValue == yourValue){ return true; } return false; } </script> You can save the configurable value to a ...


1

If you're using SharePoint Foundation 2010, then this is a known issue where a custom list has a lookup field to another custom list that contains more than 20 items. If you set the value of the lookup field to "None," then you'll get the error. It looks like you'll need to apply an update to SharePoint to resolve the error. Here's more info: ...


1

Updated Answer after question was updated with more understanding. Well as you have said that we can remove the Quick Edit link via list setting in Advance Settings option, but unfortunately that hides link for all users irrespective of admin or not. So I doubt you have any OOB solution which will take care of your requirement. You need some custom ...


1

Question resolved. The error message is completely misleading. It has nothing to do with the token - the problem lies within the strict POST message format SharePoint is requiring. If you use the following headers for your POST request, everything works fine. headers = {'X-RequestDigest': token, 'Accept': 'application/json; odata=verbose', ...


1

It is true that I need to go for CSR. I went into the edit mode on the DispForm view for one of my items. Go into the Web Part attributes -> Miscellaneous Enter the JSLink to your file (in my case it is ~sitecollection/SiteAssets/logo.js) Sharepoint is showing my HTML code as a text string and for this I simply exchanged the innerHTML with my innerText. ...


1

Just an idea to accomplish your requirement in a different way is to use CSR. I think the pro's of CSR are in your case: Only one column You can sort by column and get the real name instead of the html code Easy to use in different libraries If you have questions about the tutorial, don't be afraIT to ask.


1

Yes. This is possible. Upload your images to a Picture library and have a common column which connects your list and the picture library. Then drop webparts of your list and the picture library onto a page. Create a connection between the 2 webparts. This will allow you to filter items in the picture library based on the selected value in the list. Ensure ...


1

Finally figured it out. :) I noticed that when I clicked on the '...' I wouldn't get my contextual Task List options, HOWEVER if I clicked on the task in the timeline view, those options were there. Also, once I saw them in the Time Line menu, they then began appearing in my list menu! So I kept an eye on my js files that were being loaded on my page, and ...


1

It has been a while since I did this. I agree with taking out the $Resource part. And yes Formulas use DisplayName as references, I have never used the ID in the FieldRefs And try it with an existing field first <Field> ... <Formula>=Title</Formula> <FieldRefs> <FieldRef Name="Title" /> </FieldRefs> </Field> ...


1

First, I would remove the "$Resources" part in the Display Name of your definitions (if you don't use resource files). Check this question : How can I provision a list with a calculated field? (there is a comment saying that InternalNames are required, and there is this link http://www.hekstra.org/how-to-deploy-a-calculated-field/ saying that Site Column = ...


1

public static string ListFieldTextMultileFilter(string val) { var tmp30 = val; var tmp31 = XDocument.Parse(@"<tmp>" + tmp30 + @"</tmp>"); XElement tmp32 = null; while (true) { tmp32 = tmp31.Descendants().Where(it3 => it3.Name.LocalName == @"div" && ...



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