Wednesday, February 29, 2012


This week i have started a new initiative to develop a mobile application on top of Dynamics AX however i want to have this application portable across the different client OS available on the mobiles namely Android, Windows, Apple etc.

The platform adopted for the same is HTML5 and JQuery while HTML5 is the latest version of HTML with some very good enhancements JQuery is a javascript framework which makes it easy to work with javascript.

To begin working on javascript there is a library of javascripts functions that we need to refer on our page. We have different versions of this library the popular ones are from google and mircosoft.  JQuery is activated using the dollar symbol followed by round brackets "$()". Below is the first JQuery page i built for printing "Hello World" :

<!DOCTYPE html>

<title>Hello World</title>
<script type="text/javascript" src=""></script>


<div id="divTest1"></div>

<script type="text/javascript">
$("#divTest1").text("Hello, world!");



Sunday, February 05, 2012

Dynamics AX Query framework

This is a very important diagram which details the hierarchy of the query classes that are available in Dynamics AX to access data.

public void myQuery2()

Query q;
QueryRun qr;
QueryBuildDataSource qbd;
QueryBuildRange qbr;

q = new Query();
qbd = q.addDataSource(TableNum(CustTable));
qbr = qbd.addRange(FieldNum(CustTable, AccountNum));
qbd.addSortField(FieldNum(CustTable, Name));
qr = new QueryRun(q);