Hot answers tagged

5

Using rest API, just make a GET request to the following end-point: _api/web/lists/GetByTitle('List Name')/fields?$filter=EntityPropertyName eq 'Choice Field Name'" Example using jQuery $.ajax({ url: "host url"+"_api/web/lists/GetByTitle('List Name')/fields?$filter=EntityPropertyName eq 'Choice Field Name'", type: "GET", headers: {...


3

I've not provided whole code but you can call cross site connection using JavaScript. Take a reference from below code: var crossSiteContext = new SP.ClientContext("http://url-of-another-siteCollection/"); var crossSiteWeb = crossSiteContext.get_web(); crossSiteContext.load(crossSiteWeb); crossSiteContext.executeQueryAsync(function(){ var ...


3

Try using this code for adding custom action to the site settings page. // Add site settings link UserCustomAction siteSettingLink = clientContext.Web.UserCustomActions.Add(); siteSettingLink.Group = "SiteTasks"; siteSettingLink.Location = "Microsoft.SharePoint.SiteSettings"; siteSettingLink.Name = "Sample_CustomSiteSetting"; siteSettingLink.Sequence = 1000;...


2

No there isn't. There are 2 timer jobs that run that we do not have control of. The first timer job will identify things that have met their retention date and flag them as needing action. The next timer job runs through and handles the flagged items and does the required action (deleting the item, moving it, executing a workflow, etc). Last I knew, and ...


2

You can export the list to excel and then import it into SharePoint online list. Also check this KB articles for more detailed information about how to manually migrate the content to the office 365. https://support.microsoft.com/en-us/kb/2783484


2

You cant check that. In office 365 Continuous crawls are enabled , with crawl frequencies managed by Microsoft. Search crawls occur continuously to make sure that content changes are available through search results as soon as possible. Recently uploaded documents may not immediately be displayed in search results because of the time that's ...


2

You can follow this step. Please mark answer this if it is helpfull to you.


2

Go to List settings --> Advanced Settings Then click Yes in Launch forms in a dialog?


2

For lookup columns, you have to use $expand. So the query URL should look like _api/web/lists/getbytitle('A')/items?$select=column1,column2&$filter=owner/LoginName eq 'i:0#.f|membership|username'&$expand=owner There are some special character in i:0#.f|membership|username, so you have to encode it before passing in query URL. encodeURI('i:0#.f|...


2

You can also try this using CSOM: function GetChoiceValues() { var context = new SP.ClientContext.get_current(); var web = context.get_web(); this.taskList = web.get_lists().getByTitle("CMA"); this.fields= this.taskList.get_fields(); var deptChoiceField = context.castTo(this.taskList.get_fields().getByInternalNameOrTitle("Category"),SP.FieldChoice);...


2

As @spguy mentioned, having separate document libraries can also help. However, if that is not an option, you can consider using folders to limit the fine grained permissions.


2

Are you limited to a single document library? Depending on what kind of content you are storing, is there any way to split them up and have multiple libraries? Are the 2000 documents that are submitted each year all of the same type of document that they cannot be separated? If you can split any of the documents up into active and archived documents, then ...


2

Change your CreateNewRow function with below code. public partial class OrganizationChartUserControl : UserControl { //Get the List name to fetch the data from string listName = "OrgChart_Demo"; int iRowCounter = 0; string sAllNewRows = string.Empty; protected void Page_Load(object sender, EventArgs e) { //Fetch the data (...


2

You can change these settings by this link https:// your site collection url /_layouts/15/start.aspx#/_layouts/15/regionalsetng.aspx Thank you!


2

Look at your URL, it is created under the sites managed path,tenancy.sharepoint.com/sites/statistics So your REST call would be tenancy.sharepoint.com/sites/statistics/_api/search/query?querytext=%27focusing%27. tenancy.sharepoint.com/statistics isn't valid.


1

Please see the below example, you can use the "and" operator, to meet multiple conditions, http://{server_name}/_vti_bin/listdata.svc/UserInformationList?$filter=((ContentType eq 'Person') and (substringof(Name,'{query}')))&$orderby=Name Also, shared by Atish, on the following page, it shows you multiple other operators, you can use in your ...


1

For SharePoint Online / Office 365, you can use JSOM to make cross-site collection calls as long as the site collections are all in the same tenant. There are only two scenarios where you can make cross-site collection calls using the JavaScript Object Model in a SharePoint on-premises farm: Both site collections are located in the same web application ...


1

You break everything with with this script-tag: <script language="javascript" src="/_layouts/15/sp.js"></script> Remove this one and your script should work just fine


1

Even if you could somehow reliably grab the current user's home network, this approach will not work. The embed is going to look for a group on the specified network with the specified ID, and that group does not exist on those other networks. You need to specify the network that hosts the group in your embed code. If the external users are part of the ...


1

When you are working in visual webpart, you can add css & javascript in following ways. Option 1: Open your ascx file in the webpart. Add <style type="text/css"> </style> tag Add your css properties into this style tag. Use the classes in you html block. Option 2: Create a text file. paste entire css code in it. Do not add <style>...


1

If you want to apply the CSS to your Google Organization Chart webpart than you can just apply it from the ASPX page like (Usual way) below. <style type="text\css"> .google-visualization-orgchart-node { text-align: center; vertical-align: middle; width: 139px !important; font-family: arial,helvetica; font-size: 12px !important; cursor: default; border:...


1

Consider the below points before you start indexing your List/Library Creating an index requires accessing all items in the list Each column being indexed consumes extra resources in the database and adds some overhead to every operation to maintain the index. If your list item count exceeds the List View Threshold or the item count is in millions, its ...


1

In order to set a new masterpage will have to upload it to the Masterpage Library which is located at: https://domain.sharepoint.com/_catalogs/masterpage To assign the masterpage to your site go to Site Settings > Design Manager > Publish and Apply Design > Assign master pages to your site based on device channel. Choose your Masterpage from the dropdowns, ...


1

You need to create web service data connection. Please follow this video tutorial for better understanding http://www.bizsupportonline.net/blog/2011/11/infopath-upload-images-sharepoint-2010-no-code/


1

There are lots of reasons mentioned in below article by which your query will not work & will not fetch the data from SharePoint List columns. One of the example given in below article is Well if you know SharePoint lists, you know you can change field display names, and many other things in List Settings. In the screen shot above, the “...


1

Using !important is a CSS hack and will get you in trouble at one point. What happens when someone else uses the same !important hack ??? Learn proper CSS, Selectors and its rules for CSS Specificity and you will be able to master any CSS problem. In your scenario you can wrap your content in a DIV <div id='myCEWP'> <H1>Hello World!</H1&...


1

You can do this by workflows by following steps- 1- Create two column StartDate to your list(type single line of text). 2- Change your code by: oListItem1.set_item('StartDate',StartDate); 3- Create a workflow to that list Create a workflow variable startDate and set its current item StartDate value. Set Variable: startDate to Current Item:StartDate ...



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