New answers tagged

0

Seems like there is some mismatch in your JSON or data variable. Please check whether for "data.ProsessOwner" and "data.ProcessContributer" you are getting correct ID's.


0

By Default when you are on a view and you create new or edit an existing form item you will be returned to the same view you were on to start with. Example: Starting on "My View" Create New Form Item > Save Returns to "My View" The way to change this is to add the Source parameter to the URL before users enter the form. Add "?=Source" to the end of ...


0

We are using a CustomAction comprised of Google Analytics code. All of the auditing and compliance functions are lacking to track basic page views easily. Adding a user dimension allows us to dive a little deeper into who is viewing what. ga('create', 'XX-123456789-0', 'auto'); ga('set', { 'dimension1': _spPageContextInfo....


0

i ended up with query below, works fine for me now, and i can search on LoginName, Title, or Email. `var userSearchSuggestionEndpoint = "/_api/web/SiteUsers?$filter=(substringof('" + searchKey + "',LoginName) or substringof('" + searchKey + "',Title) or substringof('" + searchKey + "',Email))"; return baseSvc.getRequest(userSearchSuggestionEndpoint)...


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.


0

You can use the O365 list template with on-prem, but the views and forms will not work as you noted. Load the list template you created into the gallery, use the list template you created, and create a new list (with content if you wish), and then open the list in SharePoint Designer 2013. Replace the default views and forms with new ones and you should be ...


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


0

While loading the listItems you need to explicitly include FieldValuesAsText like below: context.Load(listItems,items=>items.Include(item=>item.FieldValuesAsText)); This will save you from the not so pretty approach of Regex as mentioned in the accepted answer.


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


0

You should be able to add the query string parameter `Web=0' For example: https://sitename-my.sharepoint.com/personal/vignesh/Documents/SomePresentation.pptx?Web=0


0

I guess that you have problem with SharePoint Server Publishing Infrastructure. The Save site as template command is not supported and can cause problems on sites that use the SharePoint Server Publishing Infrastructure. More information can be found here https://support.office.com/en-us/article/Create-and-use-site-templates-60371B0F-00E0-4C49-A844-...


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


0

First Create a New SharePoint Hosted app. Add a new client web part. Write your html structure for the Slider. write the JavaScript code to retrieve the list which store the url for the images which you want to show if you want customizable slider. Now add your app-part to page like you add web-part.


0

You need to add jquery.min.js and jssor.slider.mini.js files to your code. Kindly check below code. <!-- it works the same with all jquery version from 1.x to 2.x --> <script src="jquery.min.js"></script> <script src="jssor.slider.mini.js"></script> <script> jQuery(document).ready(function ($) { var options = {...


0

There is no function jssor_1_slider_init() in the code you posted and also no script-tag that fetches a script-file which could contain this function. Have you just forgotten to add the Script to your page?


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


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

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


0

You could use a workflow that is triggered on ItemChange , checks the value, and changes the permissions accordingly. SP 2010 workflows have a Workflow Action called "Replace List Item Permissions" that can change permissions. This action is only available in an impersonation step. See: http://spcycle.blogspot.hk/2012/01/how-to-create-workflow-to-change-...


0

There are ways to do, basic option would be designing form using infopath.You can also do it by Client Side Rendering (JS link) for better understanding go through this blog https://code.msdn.microsoft.com/office/CSR-code-samples-11-Fully-54ebcaa6 There are lots of blog for CSR to learn Client-Side Rendering/JS Link documentation?


0

Check the wiki here for how to do it using a Content Editor web part: https://github.com/OfficeDev/PnP-JS-Core/wiki/Install-and-Use


0

From the downloaded files you add to your project pnp.js, pnp-provisioning.js and jQuery. By doing this you can use the $pnp.sp object.


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

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


0

With the help of "SPServices" you can get the current user name . Add the users you want to hide a column in specific group. If the current user present in particular group hide the field using jQuery. Add Content editor webpart in Newform/Editform.aspx and place the below script <script type="text/javascript" src="/sites/test/Script/jquery.min.js">&...


2

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


0

Could u post more information about your form? Like what kind of connections it has? SharePoint Online form services has some limitations. Example you can't use the userprofileservice.asmx


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


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


0

Just replace the element '#name' for whatever your "hello, userName" is. function getCurrentUser() { console.log('Made it'); var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var currentUserObj = web.get_currentUser(); ctx.load(currentUserObj); ctx.executeQueryAsync( ...


0

Obviously, you can get the permissions on the document library and see the groups who got access and what permission level they have. (this is from document library settings --> permissions). However, I believe you mean to know the item/document level, and this can be done by right click on each document and check the Shared With option, but if you want to ...


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


0

Try with this endpoint url, https://<site url>/_vti_bin/ListData.svc/<List Name>/$count


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


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


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


0

An alternate solution is to make use of Event Receivers. Apply a event receiver on the list you want to monitor and write the code to shift/ fill data into the destination list.


0

FYI, you can get rid of the hardcoded Field name And condense the code a bit (not checked for typos) var value = ctx.CurrentItem[ctx.CurrentFieldSchema.Name]; var html = "<span class='tooltip'><i class='fa fa-lg {0}' style='color:{1}'></i><span class='tooltiptext'>{2}</span></span>"; var data = { "Available" : ...


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/


0

Try this endpoint URL to get the Multi Choice Lookup field data: var url = "/_api/Web/Lists/GetByTitle('Product Type')/items?$select=Owner/Title&$expand=Owner/ID"; To retrieve the data of each values of multiple field use below code, var items = data.d.results; var owners; for (var i = 0; i < items.length; i++) { owners = items[i].Owner....


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


0

I found two issues in your code: The field name is "Case_x0020_Status" and not "Case Status" You have to add your functions to your namespace before you call them See the working code below: Type.registerNamespace('Lifeline') Lifeline.Templates = Lifeline.Templates || {} Lifeline.Functions = Lifeline.Functions || {} Lifeline.Functions.statusViewFormat =...


0

Use the below formula to find the 13th business day, =IF(WEEKDAY(Today)=1,Today+17,IF(WEEKDAY(Today)=2,Today+16,IF(WEEKDAY(Today)=3,Today+16,IF(WEEKDAY(Today)=4,Today+16,Today+18)))) The above equation has been formulated including today also as one business day, example if Today is 06/06/2016 then 13th business day is 22/06/2016. If you want the formula ...


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



Top 50 recent answers are included