New answers tagged

0

If you are looking to return items from a specific list, switch to the Advanced Mode and in the query text, you enter the following: (this is the link to a list in my environment called Ahmed) path:"https://ahmed.sharepoint.com/sites/testsite/Lists/Ahmed" (contentclass:STS_ListItem OR IsDocument:True) (contentclass:STS_ListItem OR IsDocument:True) means ...


0

You can write a workflow that runs on edit, pauses 24 hours, check conditions, and send a reminder. Then reset a flag which "edits" the item, relaunching the workflow. It's not the most reliable method, and you don't want to do this if you'll have large numbers of items this is running on. But with wss 3.0 you're fairly limited.


0

I have used sticky headers jquery plugin to freeze the column header in the list/libraries. You may find the full article in the below link http://spoodoo.com/sticky-headers-in-sharepoint-2013/ Download the JavaScript file here http://spoodoo.com/download/javascripts/stickyheaders/stickyHeaders_3.1.0.js


0

@brishal The below script will help you,kindly add your list name in the script,add it to a CEWP and place it below the list and make it hidden: <style type="text/css"> #TTNheading { OVERFLOW: hidden; HEIGHT: 28px; } #TTNlist { HEIGHT: 400px; OVERFLOW-X: auto; OVERFLOW-Y: scroll !important; }</style><script ...


0

The easiest is to use SharePoint Designer Create a new Form based on the the New/Edit/Display template And edit the HTML, being careful with the XML SharePoint declares


2

Allow users to add items to list from custom web part - On default new form put a script to navigate to page which says - "New item cannot be added from here" or alternately add content editor on new page with text " New item cannot be added from here" and hide (not delete) the existing web part on page Prevent same group of users to view/edit items ...


0

Here's the deal. You can create a default view with access to only a specific user group. There are ways to implement this. Also, from all views, remove link for new item and remove column with context menu. Additionally you can put some javascript to not allow advance ribbon except admin group or something. Alternatively. You can put some javascript to ...


0

Remove the NewForm and EditForm from the list. This way nobody can create or edit list items.


0

Why don't you use a content search web part and set it to return only 1 item and the sort can be on modified desc.


0

Here is how I got it to work, added a script editor to the page and add the following modified script: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script> <script> var setColumnValue = function (column, linkVal) { var columnObj = $("input[Title='" + column + "']"); //this is what I ...


0

Mark Rackley came up with an ingenious way of hijacking SharePoint's default list forms and rearranging them using your own HTML layout, which you can then style however you want. You need a little bit of scripting knowledge (and ability to use jQuery definitely helps for grabbing and moving DOM elements), but the great thing about using this technique is ...


1

You can use JavaScript code to insert the data in SharePoint list. Here is the reference code to add an item in Announcement list function createListItem(siteUrl) { var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web().get_lists().getByTitle('Announcements'); var itemCreateInfo = new ...


1

You can get the same functionality as the new document link in a more familiar "Windows Explorer" type of way by instead of clicking "New Document" offer a link set up like this: ms-word:nft|u|TEMPLATE URL HERE|s|SAVE LOCATION HERE Example: ms-word:nft|u|http://siteurl/documents/templatename.dotx|s|C:\ more info on the uri scheme: ...


1

You can make use of SharePoint JavaScript Object Model. https://msdn.microsoft.com/en-us/library/office/dn268594.aspx Or you can use SharePoint WebService Wrapper SPServices. https://spservices.codeplex.com


0

Try placing your code in "content place holder main" in editform.aspx


1

HTML in Calculated Columns only works in Views It will display the bare HTML in Forms, in Alerts, in Tree View, etc etc Read the pros & cons of HTML+JavaScript in Calculated Columns at: http://viewmaster365.com/#/How Alternatively you can do it with Client Side Rendering on SP2013: CSR /JSLink blogs (dec 2015) - Pitfalls using CSR/JSLink (aug ...


0

So, here is my complete code. I am not a professional, so maybe the code is not beautiful and could be shorter, but it works for my application. I hope someone can use it. // In this case, there is one main site containing one main list and many subsites, each containing a subsite-list. // The code below fetches the items from all the subsite-lists and ...


-1

If you are referencing to the js file, just remove those lines from the js file, use them only when embedding in HTML or ASPX page. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type=text/javascript> Your function </script>


0

Try changing Type="GhostableInLibrary" to Type="Ghostable" in the elements.xml file. This fixed the issue for me. MSDN discussion related to this problem Blog post confirming the fix


0

I had been confronted to that and the parent ID is not the best way. Because if you want to order your answers, if you have answers of answers, and that you delete more than one in a row, you will loose the link between the topic and your answers... I recommend you to use the ThreadIndex, it's specific to each item (Topics and Replies). You will have a long ...


1

Make sure below point before using SPUtility.js. It currently will NOT work with: External list forms Forms that have been customized using Infopath Sites with Minimal Download Strategy enabled (feature resides in Manage Site features) Try below code: <script src="/Shared%20Documents/jquery-1.10.2.min.js"></script> //Edit your correct ...


1

Ok, using @Mohamed and @Hardik's answer.. I scripted the following which allowed me to update the "Created By" Add-PSSnapin Microsoft.SharePoint.Powershell $SPWeb = Get-SPWeb "http://server/site" $userName = "i:0#.w|domain\username"; $user = Get-SPUser -web $SPWeb -Identity $userName; $userString = "{0};#{1}" -f $user.ID, ...


1

Below mentioned code will help you to update Author based on some conditions. // Get the SharePoint Assembly // You will need to run this on the SharePoint Server [Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c") // The site my list was in was at http://dev // create a new object called ...


2

Refer to this post: Cannot update Created By (Author) field through powershell Basically you need to get a reference to the item, then do something like this: $SPListItem["Author"] = $userString; $SPListItem.UpdateOverwriteVersion();


0

This can be done under one site by linking lists using lookup fields. So, you can have one list to store patients information, a document library with lookup column to the patients, and a list for checkups with lookup to the patient. On the landing page, you can create a little dash board as my colleague David Lozzi has explained in his blog post here


0

Here's the solution to my issue (HK is the title of the list): /_vti_bin/ListData.svc/HK/$count?&$filter=((Updated_by_workflow eq false) and (Validated_by_manager eq false) and (Manager_Mail ne null) and (Employee_ID ne null))


0

Edit the list view webpart that you have added to your homepage and change the view style to "Boxed,no labels" using style section on the view settings page. Order of your columns should be 1. Title 2.Body


0

In the edit form you could hide the "Change content type" selector - it would not be completely bullit proof, but from my experience it Works quite well. Each content type has a different url when you create them, so you're pretty covered there.


0

I think workflow is not a good option. You can do it with code. Without code you can do that: Create three fields instead of one Asign each field to each content type For instance: field 1 to content type 1, field 2 to CT2, field 3 to CT3.


0

Try This <View> <Query> <Where> <Contains> <FieldRef Name='Title'/> <Value Type='Text'><UserID/></Value> </Contains> </Where> </Query> </View>


0

Go to Announcement List and modify the view to set item limit to 1 and sort item in descending order by modified date. Once the view is modified and saved. Go to the homepage, Click on Edit page and add a web-part. Under Web-part section, from list and libraries select your announcement list and select the view from the right hand toolbar where you modified ...


0

You can use content query web-part for your requirement. For fetching item: You can use orderby "modified column" as descending and set row limit to 1. For displaying richtext content you can either modified the itemstyle.xsl from stylesheet library or create your own custom xsl. Here is blog for how to create custom.xsl


1

A CAML query for that would look something like this <View> <Query> <Where> <Contains> <FieldRef Name='Title'/> <Value Type='Text'>username</Value> </Contains> </Where> </Query> </View> But I do wonder why you ...


2

You can check it from QueryString in farm solution: string id= Request.QueryString["ID"]; if (id != null) { //code goes here } In SandBoxed solution string id= Page.Request.QueryString["ID"]; if (id != null) { //code goes here }


0

I suggest the following solution: Custom action that opens a popup by passing the id of selected task List item The popup opens an application page. using script or code behind you retrieve all the tasks related by data id. And then get the Assigned To for each task and include them to your meeting For the meeting you can export an ICS file. using api ...


0

Create Data Connection and Receive data from list you want and set the fields default value as the received data from the Data connection


1

For me : 1- Yes they are two different ways to retrieve data from SharePoint (Technically speaking). 2- for the name SharePoint rest api and SharePoint Search rest API (See MSDN) 3- Yes both are active and present in SharePoint 2016 4- the difference is one is based on search services, so need to take care about indexing and planning your search schema ...


0

In the Document Library settings, you can go to Versioning and disable the Check In/Out setting. This is typically used when one needs to place an exclusive lock for editing purposes, but as these are PDFs, editing is unlikely.


0

If I understand correctly, you have a form in a Sharepoint page. In that form, there's some fields to complete, like first name, surname, mobile... When you click AddAccountRow, the values entered in your form are inserted into a table tableAc. Then, when someone pressed the submitdata button, all data inside the table tableAc are posted to a Sharepoint ...


0

Create a designer workflow to write the relevant calendar info to the calendar list.


0

What I found from search that this happens if your mp4 file is using the H.264 video codec with either MP3 or AAC audio. I would suggest try to either try another type of file for testing purposes, just to confirm the codec is the issue or not!


0

How to produce this issue. - We have created 2 lists "Gender" and "Actors". Gender is going to be a lookup field in actors. After filling some data both the list. Save both list as a template with the content included. In this current example, i have given the names as "Template Gender" and "Tempate Actors". Download the stp files from the Site ...


0

If you are in SharePoint 2010 you can create a blank master template and assign that to the display form within SharePoint designer. This link seems to fix the issue using css and may also work on 2013: http://sharepoint-community.net/profiles/blogs/blank-master-page


1

Go to list settings > advanced settings and select the option to open list items in a modal dialog to yes/true.


2

You can set the webpart to a static width and then set the width of any column that you like with a script editor webpart. <style type='text/css'> .ms-vh-div[DisplayName='<ColumnName>'] { width:250px; } </style> Just insert the display name of the column instead of <ColumnName>.


0

Please try below css: .ms-listviewtable td:nth-child(4) { width:600px; } Here, in nth-child() you have to pass number of column. Here it's for 4th column. And if its width cannot be overridden then use width:600px !important; in upper code. Hope this will help you.


1

I don't think it is possible OOTB, so I would suggest create a custom notification workflow in SPD 2010 and customize it with the columns you want to show. Another work around (just came now while I am typing - not tested): Option 1: Create a custom content type inherting from Task and remove the title and see if this works Option 2: Rename the title ...


0

Another way which I do recommend is to use JSLink. The reason is you can reference it within the web part itself. A similar question was asked here before and I do recommend the answer there: Can I change the display name of column in a listview using JSlink


1

Shefali has the correct answer but if there are multiple lists on the page this will remove them all. If you want to only target one of them select it in IE Developer of Chrome Developer and find the web part ID. Preface this first. ex #MSOZoneCell_WebPartWPQ01 .ms-viewheadertr { display:none; } I would also put the style tags in... It should look like this ...


2

Simple way to hide view header would be to use CSS - Add a content editor webpart on view page (under Media & Content Category). Add below code in the content section. .ms-viewheadertr { display:none; }



Top 50 recent answers are included