Semushin Dmitrii
  • Member for 5 years, 5 months
  • Last seen more than 1 year ago
  • Perm, Пермский край, Russia
JS retrieve text value from lookup
Accepted answer
5 votes

For getting lookup value use this: var columnFieldValue = oListItem.get_item("columnName"); var lookupValue = columnFieldValue.get_lookupValue(); var lookupId = columnFieldValue.get_lookupId();

View answer
ListItem get deselected on Button click
Accepted answer
4 votes

Try it. Dont forget to change web part id (MSOZoneCell_WebPartWPQ2 - id of list view web part) if it doesn't work: var elem = document.getElementById("MSOZoneCell_WebPartWPQ2"); if (elem != null) { ...

View answer
Cant get html file to open in sharepoint
2 votes

If it is static html page you can add it to any document library and change the Farm level property called Browser File Handling to Permissive in SharePoint Central Administration. Then it will open ...

View answer
1 million records in SharePoint 2013 List
2 votes

With large lists you should use Content Iterator and you can read info about designing large lists. Example of usage: private void GetItems() { SPList list = SPContext.Current.Web.Lists["My list"]...

View answer
asp:TextBox is not working inside asp:Placeholder C# sharepoint 2013
1 votes

What are you doing is append text; For example, you need to init and add your controls: TextBox tb1= new TextBox (); tb1.ID = "tb1" TextBox tb2= new TextBox (); tb1.ID = "tb2" this.Controls.Add(tb1);...

View answer
spcommon.png sprite / image - accidental drag and drop
Accepted answer
1 votes

Try to change your code by adding dinamically binding for new DOM elements with class .ms-newdocument-icon: $("body").on("dragstart", ".ms-newdocument-icon", function (event) { event.preventDefault(...

View answer
Is it possible to change SharePoint 2007 list form column/field order by script, or web service?
1 votes

You can try to write your own web service or http handler and call it using ajax. I'm not able to test code on SP 2007, but it works on 13. C# reorder func: function void ReorderColumns(SPList myList,...

View answer
sharepoint site user group setting
Accepted answer
1 votes

You need to go to Site Settings -> People and Groups (in Users and Permissions column). Find your group and click it. Inside the group click New -> Add Users. Thus you can edit group memberships.

View answer
Create List View filter based on Site Title
Accepted answer
1 votes

Edit view filter to display items where [Sales Territory] == "Site title" for each web part. Or you can configuire web part to get params from URL or another web part. If you will decide to do it ...

View answer
How to change title of list item programatically using Custom Action with JavaScript
0 votes

Instead of oUserCustomAction.set_url("/helpdesk/Lists/helpdesk/EditForm.aspx?ID={ItemId}"); try to use in your code UserCustomAction.set_scriptBlock(UPDATE_ITEM_SCRIPT_TEXT). And write code to update ...

View answer
SharePoint 2013 list make the header drop down arrow always visible
0 votes

Try to use css styles: .s4-ctx img { visibility: visible !important; } And after DOMContentLoaded js code: $("[scope='col']").each(function(){ OnChildColumn(this); $(".ms-vh2")....

View answer
Web analytics tool for share point 2013
0 votes

First of all, look at standart Sharepoint analytics tools. For search popularity reports go to Site Settings and find Popularity and Search or just go to /_layouts/15/Reporting.aspx?Category=...

View answer
How to use CssLink from share point controls in visual studio 2015?
0 votes

You can use CssRegistration or simple link html tag for your custom styles control in .ascx: <SharePoint:CssRegistration Name="/_layouts/15/MySolutionFolder/CSS/styles.css?v1" runat="server" /> ...

View answer
Query list having more than 5K items in it
0 votes

Use content iterator and read my answer here private void GetItems() { SPList list = SPContext.Current.Web.Lists["My list"]; SPQuery query = new SPQuery(); query.Query = "<Where>&...

View answer
SharePoint 2013 List Threshold Issue
0 votes

Go to central admin and increase threshold: Choose your web application and click on ribbon drop down in general settings Choose Resource Throttling. Increase List View Threshold param

View answer
cannot bind to Sharepoint Modal Button with jQuery
0 votes

Your JS code applies for your main page, but not for new modal dialog. If you want to continiue use modal dialog, try to get DOM of this page. Something like this: //wait for modal loaded setTimeout(...

View answer
Edit the New item URL in SharePoint 2010 ribbon
0 votes

You need to create New/Edit form for list using Sharepoint Designer and insert your web part to this page. Then set this form as default and all ribbon buttons and other menu items wich go to creation ...

View answer
How to create a Request Http "GET" to url
0 votes

You can use ajax: $.ajax({ url: "https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS]", success: function (data) { //...

View answer
Deleting list items with ProcessBatchData using PowerShell
0 votes

It works for me: private void StartDeletion(SPWeb web, SPList spList) { SPQuery query = new SPQuery(); query.RowLimit = 1500; //Delete items while (spList.ItemCount &...

View answer
Move position of choice field beside DateTime field
0 votes

Create new list form by using Sharepoint Designer and edit form html without using additional scripts and styles.

View answer
CSR List thead row under items
Accepted answer
0 votes

My advice for is to use Cisar for chrome what was developed by Andrey Markeev. It's really helpfull and quick tool. There are his first, second and third articles about CSR. What about your question, ...

View answer
Switch documents between libraries on status change - SharePoint 2013
0 votes

Create three workflows and attach it to your libraries. Set it to fire when list item was updated. Unfortunately, i don't have sharepoint designer right now and can't screen my workflow. So, i will ...

View answer
How to display list columns in Tab in the Ribbon? SharePoint 2013?
0 votes

Quick solution: create your own form in sharepoint designer and set <tr> with "Title" field visible, other <tr> with fields names (Name,Age,etc) set to display:none;. Then write function ...

View answer
Remove dropdownlist item using css
0 votes

Do you populate dropdown in your ascx.cs file? Try to process data on server-side. Javascript Remove option by its position in select: $("[id$='drprequest'] option:eq(1)").remove() Remove option ...

View answer