Development

Problems with Datetime transform with SmartFormat for Net (C#)

SmartFormat is a is a lightweight text templating library to replace string.Format. Unlike common String.Format, with SmartFormat you can read templates from text files or another source. Here I will share the way, how I tried to write the DateTime in the format ‘dd/MM/yyyy HH:mm:ss’. It was not so obvious. Read more»

.Net & C#

Fix the error in loading PFX certificate in Azure service app

For a prototype I loaded a pfx certificate from file system of Azure App. It can be done only while test!!And I got the error “Exception Info: System.Security.Cryptography.CryptographicException: The system cannot find the file specified.“ Read more»

Azure

How to replace deprecated InputLabelProps in MUI 6

Material UI

I used a TextField component in MUI and wanted to make a label always visible. By default, it hides, when cursor is out (onBlur) and the value is empty. Very strange and not what I wanted to. Read more»

React

MUI DataGrid in SPFX solutions

Material UI

I used Material UI DataGrid (@mui/x-data-grid”: “^7.12.1”) in SharePoint spfx webpart solution. Obviously, that wasn’t a good decision, but too much was already done. Read more»

SharePoint

5 steps of how to add and use AutoMapper in .Net Core project

AutoMapper is a simple little library which allows you to make less code for transforming objects of one class to another. It’s a must-have library for any complex project. There is a short scenario in 5 steps how to add and use AutoMapper in a new Net Core project with REST API. Read more»

.Net & C#

Effective join of array of objects with filtering by condition into a string

To pass parameters via Get, it was necessary to assemble a string from the selected Checkbox values. In the project, I used Checkbox from Fluent UI, but the approach is similar for another component. Actually, this is not even about React, but about TypeScript. Read more»

React

German localization of FluentUI DatePicker

DatePicker with German localization

As it turned out, FluentUI DatePicker for React doesn’t contain a built-in German localization. If you need one, you can use my version. Read more»

React

Check user permissions in SPFX solutions

SharePoint 2016 Logo

There’s a small snippet to check if current user permissions are enough to save list items. It can be used in SPFX webparts with PNP JS. Read more»

SharePoint

How to set and use environment variables in SPFX solutions (dotenv)

SharePoint 2016 Logo

When you work with common modern React application (React > 16) and webpack, it’s easy to create .env files and use them in the project. But if you work SPFX solution, which uses GULP, it’s a big mess. That’s why I decided to describe the sequence of steps how to use different environments in SPFX […] Read more»

SharePoint

Popular Posts