New answers tagged

0

User Custom Actions (ScriptLinks) can apply one JavaScript file to your whole Site Collection or one Web (site) I used it in the recent New Library View which doesn't have a MasterPage or JSLinks and wrote a short note on my learning for the Yammer group: SP FrameWork ►Client-Side◄ https://www.yammer.com/itpronetwork/#/notes/2872092 [ok, I just checked ...


1

You have used "id" variable in your code, but where did you define/assign it. url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('ChangeOfAddressList')/items(" + id + ")


0

You can use the out-of-the-box approval workflow. All you have to do is associate it to your list. There's a checkbox for "End workflow on change" which you'll just need to leave unchecked. You can set the default people the workflow goes to, and you can give the users the ability to change those names, or not.


0

You can create a simple designer workflow that will change the status of the item to Approve/Reject manually. Set the workflow to start on Item Creation and Item Modification. Or you create an automatic approval process by creating a approval workflow. Try below link for more help. ...


1

No, it will not bring the workflows along with it. this is an extract from a nice Blog Site export/import is almost useless for custom solutions that contain custom workflows, event receivers, custom web, and item properties, custom event receivers, version history etc. It has problems even if it’s used for simple sites that use only SharePoint out ...


1

There are many ways to achieve this: Build an html page and add your css (inline or external even) then place a content editor web part where you like the photo to appear, and reference the html page you built. Create a custom display template and your query can be customized to pull this photo and our add you can build the UI to your requirements. Place ...


1

You can upload your image to sharepoint library (Site Assets ideally if it won't be changing too often) then add CEWP (Content Editor Web Part) to your page and inside CEWP add <img src="/sites/yourSite/yourLibrary/yourImage.jpg" /> Then you can also use css to design it, for example iof you need a border: <img ...


0

The possibility of this to happen is may be your old solution still exist in your site collection.Try deactivating it and activate your new solution. Please let me know if this helped you or not or you are facing some other issue. Thanks


1

Instead of going with easy approach you should choose best practice. This will help in the long run. Best practice is to create Content Types and add it to the document library. So first create a Document Content Type and add the required fields (site columns).


1

There is no inbuilt mechanism say OOTB facility to do such task. But still you can do this with little bit of lazy steps. Or also you can go with C# custom solution. For detail information of converting custom list to Document Library you can go with this SharePoint - Convert a list to a library once. Also if you have document attached in your current ...


1

If you are developing a mobile app which will communicate with your SharePoint 2013 then you can use the common services that can be accessed using open protocols. If your REST Service API codes are hosted in your SharePoint environment then in that case you do not need any authentication mechanism. But if your code is hosted somewhere else other than ...


1

You do not need to pass the credentials. Please look into below mentioned code to get single item from list using REST API. function getListItem(url, listname, id, complete, failure) { // Getting our list items $.ajax({ url: url + "/_api/web/lists/getbytitle('" + listname + "')/items(" + id + ")", method: "GET", headers: { ...


0

I thinks that the SPService is the way to go, it looks like something easy enough to implement, and there seems to be alot of guids on how to. Another question. If one wants to go a step further and populate some of the lists with some external data (make them dynamic), instead of manually create the items. Maybe use some Navision tables to derive data from ...


1

It is not possible to have cascading dropdowns (behavior that you are describing) in OOTB SharePoint forms. There are third party solutions (both farm solution and add-ons) that add this functionality to lists. You can also have a look at SPServices jquery library and add this functionality yourself to the form. This does require some javascript development ...


0

I had a similar requirement but decided to generate the Excel and later Word file using javascript. I don't have any examples for generating the excel file. What I do remember is that the basic plugins I used were transforming HTML into Excel which made Excel think that the file was a webpage (received html extension when saved without changing the file ...


1

I don't think there is something OOB for multiple columns. I would suggest to use JavaScript and override PreSaveAction to prevent the save if the combination exists. Something like that : function PreSaveAction(){ //get field 1 value //get field 2 value //perform a query to check if there are items that matches criteria if(noresults) { ...


1

You can use the JavaScript Object Model to create and delete items. For reference, see Common Programming Tasks in the JavaScript Object Model, the SP Namespace, and SharePoint 2010 Client Object Model Hierarchy and Identity. Here's an example function to get you started: function moveItem(sourceItemId){ var sourceListTitle = "My Source List"; var ...


0

This is possible by adding a custom action that can be to the Style Library. You would need to design your custom form programmatically in this custom action - JavaScript file and associate to this list.


0

You can edit the default new form. Go to list ribbon and click on Form Web Parts. From drop down click on Default New Form. This will open New form in Edit mode. Add your custom webpart on the form and hide the original webpart.


1

You need to use Client Object Model. Look in this link for basic operations: https://msdn.microsoft.com/en-us/library/office/jj163201.aspx#BasicOps_SPListItemCRUD Form this links, you have sample to create and delete items(like a move) Create: function createListItem(siteUrl) { var clientContext = new SP.ClientContext(siteUrl); var oList = ...


1

using (ClientContext context = new ClientContext("http://SharepointURL/")) { try { Web web = context.Web; FileCreationInformation newFile = new FileCreationInformation(); newFile.Content = System.IO.File.ReadAllBytes(@"C:\test.txt"); newFile.Url = "test.txt"; List docs = web.Lists.GetByTitle("CustomList"); ...


0

i would like to add that Danny Engelman answer is more than perfect and at his CSS part i find very helpfull to complete it by nowrap .ms-vb2 .ms-rtestate-field { white-space: nowrap; overflow: hidden !important; text-overflow: ellipsis; }


0

The complete jquery code is : DropDownList.SetValueOfControl($('#ctl00_ctl45_g_aa5a291c_b931_4c0f_b477_f57a9cf522f2_FormControl0_V1_I1_D2') [0],lookupVal ); $('select[originalid=V1_I1_D2').val(lookupVal).change();


0

Go to Site Settings - > Manage site features ->Activate "Workflows can use app permissions" and all the call to REST endpoint within the app step". Refer the following url's for the actual steps: https://msdn.microsoft.com/en-us/library/office/jj822159.aspx http://summit7systems.com/app-step-or-impersonation-step-in-sharepoint-designer-2013/


2

One way to achieve this - Assuming data is in the correct format in all cases =LEFT((MID(CountryWF,FIND(":",CountryWF)+1,LEN(CountryWF))), FIND(":",(MID(CountryWF,FIND(":",CountryWF)+1,LEN(CountryWF))))-1)


0

If you are submitting these files as attachments to a custom list, then it is not simple or easy to determine if the attachment is unique at the time they submit. However, a simple out of the box system is to enforce your Title column value to be unique. (or any multiple columns). So you should encourage your customer to come up with specific ...


0

Your new field needs to be a part of the content type to be displayed on the new/edit forms. I think the easiest solution is to go to list settings (on UI), find the content type (Category Factory Implementation Plan List Item), click on it to open its customization page. Click on "Add from list columns" link on the page, and add the "Opportunities" column ...


-1

Please refer below link which help to read and write the term store set in sharepoint hosted app click here


0

In your workflow, use variables to convert your fields into numbers. Set variable "quantity" to "CurrentItem:Quantity (as double)" Set variable "unitPrice" to "CurrentItem:Price (as double)" <--this is my lookup Do calculation to multiply `quantity * unitPrice` and set your total Price field.


0

To get the time as a fraction of an hour then you'd do ([Start Time]-[End Time]) * 24. Start Time | End Time | In H:MM | In Fraction ------------------------------------------------ 14:00 | 14:05 | 0:05 | 0.083333333 14:00 | 14:10 | 0:10 | 0.166666667 14:00 | 14:15 | 0:15 | 0.25 14:00 | 14:20 | 0:20 | ...


0

=IF([Status]="Approved",LEFT((TEXT([End Time]-[Start Time],"hh:mm")),2)+(RIGHT((TEXT([End Time]-[Start Time],"hh:mm")),2)/60),"") (return as number with 2 decimal points)


6

To average multiple columns in an item, you'd use a calculated column such as =AVERAGE([Column1],[Column2],[Column3]). To average a column, edit the view and expand the Totals section. By your column name, if it's a number, you can select average (etc) from the dropdown.


4

What you could to is just create a OOTB custom list, change the Title field to "New Idea" or something relevant and then enable ratings for the list from List Settings > Rating Settings. Enable it to Yes and select Star ratings and voila! Users can now rate the item/idea on a scale of 1-5 stars. If you wanna take it further from there, you could set up a ...


0

You could make a calculated column with the following formula: CONCATENATE("<a href=""\\yourpath\",[Cartella Server],""">",[Cartella Server],"</a>") if you have Italian regional settings you should use: CONCATENA("<a href=""\\yourpath\";[Cartella Server];""">";],""">",[Cartella Server];"</a>") Mind that the data type ...


0

You have to break inheritance on your items, before you can assign unique permissions. It sounds like you are not doing that - which is resulting in you editing the list permissions instead of item permissions. There is also a setting to handle this scenario as you explained. If you go to list settings under advanced settings, you will find a list items ...



Top 50 recent answers are included