Discover how to accurately calculate holidays in C# using the FederalHolidayCalculator class. Learn how to obtain a sorted list of federal holidays for any year and leverage the power of date manipulation to enhance your applications’ scheduling and event planning capabilities.
Category: Development
Passing Event to onClick Method in React
Learn how to pass the event object to the onClick method in React components. Explore two approaches – using arrow functions and the bind method – to access and handle events effectively.
Dynamically Adding Keys to Objects in TypeScript
Learn how to dynamically add keys to objects in TypeScript with this comprehensive guide. TypeScript’s type system enforces strict type safety, making it challenging to add arbitrary keys to objects with defined types. However, by leveraging index signatures, you can overcome this limitation. Discover how to define index signatures, allowing for the dynamic addition of keys and values to objects at runtime. Follow practical examples and explore the benefits of maintaining type safety while accommodating scenarios where object keys are determined dynamically. Enhance your TypeScript development skills and unlock the power of flexible object properties.
Attaching Files to a list Item in a SPFx webpart
I think on the most frustrating parts of the development world is the insanely amount of how-to articles written in-which the code isn’t complete and wouldn’t work if it was complete. Also, there are a insane amount of how-to using different technologies that the search giants feel the need to show you. For example, if I put the following query into a search engine, “How to attach a file to a list item using Axios in a SharePoint Webpart,” you would think you would get articles related to Axios, SharePoint, Webparts. However, you will get a mix of “PowerApps,” C# examples, Pages of Ads, etc.
Retrieve Document Library Choice Field Options via Rest
To get all choices with REST API: Site Column: http://SITE/_api/web/fields/getByInternalNameOrTitle(fieldInternalName) List Column: http://SITE/_api/web/lists(LISTGUID)/fields/getByInternalNameOrTitle(fieldInternalName) https://SITE/sites/SITENAME/_api/web/lists/GetByTitle(LIBRARYNAME)/fields/getByInternalNameOrTitle(Category) TypeScript Code Example
Securing ColdFusion Web Services
One of the methods I use to share data with SharePoint online is to create a web service using ColdFusion, which will provide data from internal data sources via JSON. However, I’ve recently become increasingly concerned over the security of these web services. By default, you can create a CFC component and make one of…
Background Music for a Halloween Display
I was contacted by a friend of mine asking if I knew of an automatic way to have background music begin at the same time as his Halloween display. His Halloween display is on a timer, however the background music he uses doesn’t automatically start up.
How to generate a SSH key in Windows 10
SSH stands for Secure Shell and is a method used to establish a secure connection between two computers. SSH works by authenticating based on a key pair, with a private key being on a remote server and the corresponding public key on a local machine. When the keys match, access is granted to the remote user.
Writing SharePoint WebParts using the SPFx Framework (Part 3)
Note: I’ve created a GitHub Repository for this Demo Project. When I initially started writing this series, I decided not to have any properties associated with the demo WebPart I was developing. I was new to writing SPFx Webparts, so I decided it would make the project a bit simpler for me and others to…
Writing SharePoint Webparts using the SPFx Framework (Part 2)
This post is the second part to the “Writing SharePoint Webparts using the SPFx Framework” post I wrote on August 19, 2020. In part one, I focused on setting up your development environment and building your first “Hello World” WebPart. In this post, I will demonstrate writing a “Locations” WebPart for my fictitious company’s about…








