Tag Info

Hot answers tagged

2

Edit the page containing the Discussion Board List. Select the web part and Click on Edit webpart. Select Toolbar Type to "No Toolbar" and save the webpart.


2

You also need to set properties.Cancel = true; Your final code will look like public override void ItemAdding(SPItemEventProperties properties) { try { //my code SPListItem parentItem = oList.GetItemById(discussionId); SPListItem reply =SPUtility.CreateNewDiscussionReply(parentItem); reply["Body"] = ...


1

In code you can SPGroup spGroupItem = web.Groups["GroupName"]; SPRoleAssignment oRoleAssignment = web.RoleAssignments.GetAssignmentByPrincipal(spGroupItem); foreach (SPRoleDefinition inRole in oRoleAssignment.RoleDefinitionBindings) { //inRole.id //inRole.Name //1073741829 //limited access } Or you can find it using below function bool ...


1

Using jquery would be fine, but just flip the approach. Instead of hiding the webpart if its empty , make the webpart hidden by default, and visible only when content is available. Here is the approach. Add a Content Editor / Script Editor webpart with CSS code that hides(remember just mark display none / visible false, dont remove) the Discussion List ...


1

If you are using SP2013/2010, there is a feature for what exactly you are looking for. 1) Go to the document library. 2) Select a document(by clicking the check-box). 3) Open the Library tab from the ribbon on the top. 4) Click on the "Tags and Notes" link on the ribbon. 5) Click on the "Note Board" tab on the Popup. 6) Write your comment and ...


1

Consider setting up permissions right after the topic is created. In simplest case you can do it manually: click Manage discussions link, select discussion and click Shared With: Or you can create a workflow for that, that would pick the settings from the field. This opensource project provides a set of workflow actions for setting permissions: ...


1

Out of the box, it's not possible to get notifications unless you are mentioned or replied to. All Newsfeed settings can be found at About Me > Edit > ... > Newsfeed settings Reference: Change your newsfeed settings


1

Ticketing system is usually necessary if there are many tickets. But putting many items in one SharePoint list is usually not a very good idea, because after reaching 5k limit, it will become more and more difficult to work with this list, especially programmatically. Also there's a limit of how much unique permissions can be in a list. Distributed ...


1

Since a reply in Discussion Board is represented as List Item you could utilize a common update operation as demonstrated below: var ctx = SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle('Discussion Board'); var messageItem = list.getItemById(listItemId); //get message item by its Id messageItem.set_item('Body','Welcome to ...


1

I just encountered a similar issue after editing the ReadOnly value of the Allitems.aspx view (Subject) to ReadOnly="False". When I saved the file, it changed the Show this view value (on the Edit View page) to In all folders. Once I changed that back to In the top-level folder, discussions would default back to the flat view.


1

How to post a reply in Discussion Board using SharePoint JSOM Use SP.Utilities.Utility.createNewDiscussionReply(Context, parent) Method to post a reply to a discussion item: function createMessage(discussionItem,properties,OnItemAdded,OnItemError) { var context = new SP.ClientContext.get_current(); var messageItem = ...



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