JavaScript Resources

Libraries Angular React Node Vue Redux jQuery Ember Meteor Visualizations GoJS D3 Leaflet  

JavaScript – Object defineProperty

In JavaScript, there are different ways to define properties to objects. For example, if we have a Customer class, we can define properties using the this keyword, and also Object.defineproperty: function Customer (firstname, lastname, email, phonenumber) { this.firstname = firstname, this.lastname = lastname, this.email = email, Object.defineProperty(this, “phonenumber”, { writable: true, enumerable: true, configurable: false, value: phonenumber }); } //Print out Customer var Customer00001 = new Customer(“Bob”, “Smith”, “bob@test.com”, “111-222-7777”) … Continue reading JavaScript – Object defineProperty

How to Change the Company Logo in Dynamics AX

The company logo in Dynamics AX is used in different areas such as reporting. To change the company logo, go to the Organizational administration page and select Legal Entities. Then, select the legal entity that you would like to add or change a logo, and click “Company Logo”: Click Change or Remove to add/remove a logo:  

Installing Microsoft SQL Server AdventureWorks Sample Data

Microsoft provides sample SQL Server databases called AdventureWorks. You can download the files from the CodePlex website for your relevant SQL Server version here – http://msftdbprodsamples.codeplex.com/.  You can then attach the databases to your SQL Server instance. To do this, copy the files to a location on the SQL Server and run the following command: CREATE DATABASE [AdventureWorks2012] ON (FILENAME = N’C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf’) FOR ATTACH_REBUILD_LOG GO CREATE DATABASE [AdventureWorksDW2012] ON (FILENAME … Continue reading Installing Microsoft SQL Server AdventureWorks Sample Data

JavaScript Object Literals

Object literals are a way to define objects in JavaScript using comma-separated name-value pairs of properties and methods. For example, we can define a Customer object with the syntax, which contains properties and a method GetCustomer(): var Customer = { firstname: “Bob”, lastname: “Smith”, email: “bsmith@test.com”, phonenumber: “555-111-2222”, GetCustomer: function() { return this.firstname + ‘ ‘ + this.lastname + ‘ ‘ + this.email + ‘ ‘ + this.phonenumber; } } … Continue reading JavaScript Object Literals

C# – Inheritance

Carrying on from our previous transport post, we currently have a car class that has some properties. However, a car is a type of vehicle. What if we wanted to expand to other types of vehicles in our solution? Let’s add a vehicle class. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Transportation {     class Vehicle     {     } } Now, as we shoudn’t create an object out of “vehicle”, we will define this as an abstract class: using System; using System.Collections.Generic; using System.Linq; … Continue reading C# – Inheritance

C# – Classes

In this example and series of examples, I will go through some object oriented and C# concepts. We will use an example of building a transport system, using Cars as an example. First, create a C# project for a class library called “Transportation”. Also, let’s create a new console application called Carl.TestTransportation. We will use that to test our class working.   Let’s star with characteristics of a car. Cars have: Make. E.g. Ferrari … Continue reading C# – Classes

Hello World Console App C#

Creating a console application in C# is really easy. Let’s go through a Hello World example. First, create a new project in Visual Studio. Give the project a name: The project contains a Program.cs file, which contains a static Main method: This method will be called first when the application is run – it is the entry point of the application. It is static and declared as a class or … Continue reading Hello World Console App C#

How to Build SSRS Reports in Dynamics AX

In this post I will show how to build SSRS reports in Dynamics AX 2012 R3. Let’s modify the Purchase Order Report. Firstly, open Visual Studio and make sure the Application Explorer is open (View->Application Explorer): Expand SSRS Reports and find the Purchase Order Report: Double click the report to open it and create a new SSRS project. Rename the project from the generic name it provides to something more … Continue reading How to Build SSRS Reports in Dynamics AX

Installing a Node Web Server using http-server

Node has several web servers available for installation, including http-server: To install, type: npm install http-server -g To start the server, type: http-server This will start the web server at the addresses: Opening a web page at this address will display the contents of the current directory: If we create a folder called webserver with one file, index.html, and browse to this directory, we see the index file is displayed: … Continue reading Installing a Node Web Server using http-server