Softstuff Consulting
My occasional musings of a technical nature
  • Send us a message
  • About Softstuff Consulting
  • Privacy Policy
  • Main Website
Dynamics365 , JavaScript , Thoughts

Make JavaScript a little more readable

by Ian Blair March 5, 2020 No Comments

I often inherit code that has been written by other people and sometimes it isn’t always the clearest or most readable code although that usually depends on how old it was. It seems that older Dynamics customisation code especially the JavaScript was often thrown together quickly. Don’t get me wrong I have nothing against quick […]

Dynamics365 , JavaScript

Make fields read-only in a Dynamics editable grid

by Ian Blair March 2, 2020 No Comments

One of the newish controls in Dynamics365 is the editable grid. This provides the user with a simple way of bulk editing, and for the person configuring the screens it a very simple change that brings lots of useful additional functionality with a few mouse clicks. The only issue is that almost all the fields […]

Bootstrap , C# , CSS , Visual Studio

Add a responsive logo to a bootstrap web application

by Ian Blair February 7, 2020 No Comments

When creating a skeleton web app in Visual Studio that uses bootstrap it creates a layout with a full width menu bar across the top that also contains the company name in text. Quite often the first thing to do here is to replace the name with a company logo. The problem is here that […]

CSS

Shadowed text in CSS

by Ian Blair February 6, 2020 No Comments

In CSS there is a hardly known formatting feature for text called text-shadow and this will do exactly as it sounds and display a shadow against the text. This can be quite useful when overlaying text on a textured or image background. This command can be used in place of a graphic with a corresponding […]

C# , Dynamics365 , Thoughts

Throw exceptions in Dynamics365 workflow plugins, or don’t

by Ian Blair January 7, 2020 2 Comments

When writing workflow plugins for Dynamics365 it seems that standard practice if an exception or error appears in the code is to throw an exception which will pop up on the interface for the user, or appear in the logs if it isn’t a real time workflow. The problem with this approach is that when […]

JavaScript

Format numbers in Javascript

by Ian Blair December 27, 2019 No Comments

A quick and useful JavaScript function to display numbers with a fixed number of decimal places. The default number of places can be set by changing the value of the defaultPlaces variable. In the example above it is set to 2 places. Calling the function showAsFloat(65.267) would return 65.27  The number of places can be […]

Dynamics365 , JavaScript

Access a Dynamics365 embedded webresource

by Ian Blair December 27, 2019 2 Comments

Embedded webresources on a Dynamics365 form are very useful. They can provide screen layouts and functions that the out of the box solution cannot.  This example shows how a message can be posted directly to the webresource, and this makes it useful for passing live updates from the parent Dynamics365 page without having to go […]

JavaScript

Sending messages between web pages without falling foul of cross-page scripting errors

by Ian Blair December 27, 2019 No Comments

As web page security has increased talking to your child web pages has gotten more difficult, but there is a simple way, and best of all it won’t throw security errors. JavaScript comes with a PostMessage function that quickly allows parent pages to talk to children, and even more important for child pages to answer […]

Windows

Flush the DNS cache in Windows 10

by Ian Blair December 11, 2019 No Comments

Sometimes there are times when IP addresses change and your machine gets a little confused by holding onto the old site, or even when you know the site is out there but you still keep getting a 404 Page not found error. First thing you need to do is open a Command Prompt with Administrator […]

Windows

A quick way to run a program in Administrator mode in Windows 10

by Ian Blair December 11, 2019 No Comments

There are times when you need administrator rights to run an application, often something as useful as a command prompt needs administrator rights to perform system tasks. A quick way to do this if you have Cortana on your taskbar is to quickly type CMD into Cortana and you will be presented with a dialog […]

Posts navigation

Previous 1 2 3 … 5 Next

Recent Posts

  • How to make your Powershell scripts more annoying
  • What motherboard is in my PC
  • A Dynamics365 plugin thought experiment
  • Registering a Dynamics365 plugin and I get an error
  • Going back in time with Dynamics365

Categories

  • Bootstrap
  • C#
  • CSS
  • Dot Net Core
  • Dynamics365
  • JavaScript
  • Powershell
  • T-SQL
  • Thoughts
  • VBScript
  • Visual Studio
  • Windows
  • Xamarin

Recent Comments

  • S0ftStuffB055 on Call a Dynamics365 workflow from JavaScript
  • Siva on Call a Dynamics365 workflow from JavaScript
  • TC Sharpe on Throw exceptions in Dynamics365 workflow plugins, or don’t
  • BigOwl on Throw exceptions in Dynamics365 workflow plugins, or don’t
  • CRMGod on Access a Dynamics365 embedded webresource

Archives

  • January 2021
  • May 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • June 2019
  • May 2019
  • February 2019
2022 Softstuff Consulting. Donna Theme powered by WordPress
  • Twitter