The React snippet of how to update the selected element in the array of objects. The array of objects is connected with useState hook, and on change of Checkbox control the array must be updated.
(read more...)The React snippet of how to update the selected element in the array of objects. The array of objects is connected with useState hook, and on change of Checkbox control the array must be updated.
(read more...)The method to expand all the events in Calendar View on load using Content Editor WebPart. You should add this code. You should copy and paste it to html file, save this file to document library and set its path into the settings of CEWP.
(read more...)If you use SharePoint and get data from lists with JavaScript, once you will receive SharePoint lookup value which looks like '34;#Item title'. There is a way to parse this data with Regular expression and to convert it to an object.
I have created a small method to make it easier. In my case I have got values from parent list of employees. My method returns an object with properties 'id' and 'fullname':
With SharePoint 2010 you can disable usage of modal windows in List settings. But if you use calendar view, it does not matter what you have installed in the settings – all the list forms will be opened in modal windows. How to disable them?
(read more...)In SharePoint queries you should use date in the format 'yyyy-mm-ddTHH:MM:SSZ', for example, 2019-09-30T09:00:00Z. But the input form of the SharePoint datetime controls returns the value as 'dd.mm.yyyyy', the time value you will recieve in another way.
(read more...)Recently I was looking for the solution about how to add the button to "Save and Stay on page" for SharePoint Edit Form page. I read several articles how to do it, but most of them were no good. But also I found one useful page which became the base for my solution.
(read more...)I made a simple HTML page with JQuery UI tabs. But the customer asked to give URLs for each tab. I was a bit surprised with it, because I remember only how to make default tab on page load. You can do it with the syntax like this:
$("#tabs").tabs( { selected: x });
where 'x' is integer index of tab. So, the task was to determine which tab is requested.
(read more...)Playing stream video is a very popular task in nowadays in companies with wide network. Stream video is supported well with modern browsers, but there are some difficulties with streaming inside networks without direct Internet access and SharePoint 2010 as a portal solution. Of course, SharePoint 2010 is very good, but it is unlikely to become better. But in the current moment I have to work with what I have.
You can add a bit of customization easily with Content Editor Web Part, where you add Javascript and HTML. In this post you can find a snippet for SharePoint 2010 to open a custom page in the modal dialog window.
Snippet for AngularJS for working with checkbox controls. The task is to verify if checkbox is checked or not with AngularJS.