New answers tagged

0

Without workflow your options comes down to Use event receiver and handle item added event. Use JavaScript + SPServices Use JSOM Use CSR


1

There are couple of ways to achieve this Using anchor tag you can specify which section of the page it should scroll to Using JavaScript you can find the group element. The scroll to that element by handling the click event.


0

List already had an auto Id field. This starts at 1 and auto increment as new entry is added. You can create a calculated field and use a formula like = 300 + [Id]


0

The person/group column allows you to select which information to pull from the profile. So if you wanted to display Name, Phone Number, and Title, you would add 3 person/group columns, then choose the corresponding "Show field" option. Then you just select the same person for all 3 fields and they will stay in sync from AD as long as your profile sync job ...


0

@Arsalan, Hyperlink appears fine if viewed in Allitems.aspx or any other created view. However, in Displayform or Modal View it shows the code. Sorry, earlier had quoted for visible in Display form but not in modal view.


0

There are a few approaches, all with varying degrees of feasibility. Option 1 Continue to use an on creation workflow, but alter the logic a little to check if the calculated date is greater than today, if so, pause until that date and then continue on. This can work, but if the date changes while the workflow is paused, it can lead to unexpected or ...


0

There are 3 solutions for this issue. Enable paging by calling the Pageable method Use a View Model to serialize only the required properties of your model. Manually serialize the DataSourceResult For the second method, I mean to say that pass less properties of the model as possible, to reduce the data to process. The source code of the third solution ...


0

You can actually have a lookup column containing a field from the parent site on a subsite using OOB functionality. The trick is to first create the list on the parent site you want to look up into. Then you create a site (lookup) column targeting the parent list. Now on your subsite you can select the site lookup column and add it to your list. Mind you ...


0

I usually use this approach when querying a list: _api/web/lists(guid'D38E6516-FB4F-4FCF-9E29-4FEC9CE06D2B')/GetItems(query=@v1)?@v1={"ViewXml":"<View><Query><Where><Eq><FieldRef Name='Your field here'><Value Type='The field type'>The value you want to look ...


0

I assume that your SharePoint version is 2013 and User Profile service is working fine on your environment. You can use REST API to get user information from User Profile Service. $.ajax({ url: "http://<site url>/_api/sp.userprofiles.peoplemanager /getuserprofilepropertyfor(accountame=@v, propertyname='PictureURL') ...


0

You can use this piece of code to fetch data from Active Directory using JavaScript and then with the help of SPUtility or JavaScript set the value of fields. function getUserName() {  var wshNetwork = new ActiveXObject("WScript.Network");  var userName = wshNetwork.UserName;  return userName; }  function getAD(userName) {  //var name = userName.split("."); ...


0

Lookup column is the answer you are looking for. Try creating a Lookup column in Roadmap list and fetch the values using column of ProductList. Check this video on how to create lookup column: https://www.youtube.com/watch?v=ShLH0mBcA54


0

So you have not mapped the DocumentCategories to RefinableStringxx??? I guess you should map it to RefinableStringxx (providing that DocumentCategory returns text (data type). Once you do that, you should be able to write your query as follows: path:"server-sharep/abc*" FileExtension:pdf (IsDocument:"True" OR contentclass:"STS_ListItem") ...


0

Your "DocumentCategories" must be searchable under generic keyword search, in order to use it in the refiner. Find the crawled property for the "DocumentCategories" in the search schema and then create a refinable Managed Property and add this crawled property in the mapping. Use this new managed property in the refiner webpart.


0

This is the only source where I have found an answer, it is from 2013: http://nondeprecatingly4.rssing.com/chan-3754326/all_p127.html It says: SPCascadeDropdowns does not work with the "Quick Edit" view - aka the new Datasheet view - in SharePoint 2013 as of SPServices 2013.01.


0

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

Below code is working fine for me. Yours is same except I see execute query command to be missing. Also check if the location specified in the error is accessible and correct parameters are being passed in FileName and ReadAllBytes(). var attInfo = new AttachmentCreationInformation(); attInfo.FileName = mFile.Name; attInfo.ContentStream = new ...


0

Yes, simply repeat those instructions from Step 2 on. You could create dozens of unique timer jobs and deploy them in a single WSP.


1

OOTB SharePoint Custom List have attachment facility which one can use through ribbon. Also you can add custom button to perform same without using ribbon. Now if you still want to go with separate column functionality then... You can use SharePoint Column type "Publishing Hyperlink" and you can directly provide provision to user to upload attachments from ...


0

Make sure you are using field internal name not the display name. You can get the field internal name by right click on the field name (on the list setting page) and copy the value of the field= in the URL


0

You may apply a workaround for the above requirement. Create a column in the source list named 'Is Moved' and type 'Yes/No' and set the default value as 'No'. Run a workflow to copy the list item from Source list to destination list. Once the item is copied, update the field 'Is Moved' to 'Yes' for that item using the same workflow. You may modify the view ...


0

Try getting the items with guid of the list instead of title e.g http://****/_api/web/Lists(guid'<your list id>')/items


0

I have experience in doing something similar (to invoke a ribbon command). I used Javascript profiler in IE to find out the function call for the event that I was trying to invoke and then added it into my custom function. On a normal SP list view page, run the profiler before selecting a list item, stop the profiler and figure out the function calls it ...


0

Create a column of type Single line of text or multi line and in the workflow body itself, set the value of the column you created to the WF comment field


2

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


0

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



Top 50 recent answers are included