Creating sales orders via AIF in AX2012

I was asked for an example how to create a sales order through AIF document services (SalesSalesOrderService). Here is my minimalist variant in C# (for AX2012 and demo data): var line = new AxdEntity_SalesLine() { ItemId = "D0001", SalesQty = 42, SalesUnit = "ea" };   var order = new AxdEntity_SalesTable() { CustAccount = "US-003", …

Continue reading ‘Creating sales orders via AIF in AX2012’ »

Real world functional programming

The first time I heard something concrete about functional programming was few years ago at a talk in Prague given by Tomáš Petříček. He also mentioned his book Real world functional programming there. It all sounded quite interesting and I told myself that I would look at the book at some time. It took quite …

Continue reading ‘Real world functional programming’ »

Real world functional programming

Poprvé jsem se něco konkrétnějšího o funkcionálním programovaní dozvěděl před pár lety v Praze na jedné z přednášek Tomáše Petříčka. Tam také zmínil svoji knihu Real world functional programming. Celé to znělo docela zajímavě a já jsem si řekl, že se na tu knížku někdy podívám. Chvilku mi to trvalo, ale nakonec se čas našel …

Continue reading ‘Real world functional programming’ »

C#: Array and collection intializers

I was recently asked few questions about array and collection intializers in C#. Because it may be useful for others as well, I decided to write the answer down in this form. All information below is valid for C# in version 3.0 or higher. Arrays A single-dimensional array is normally declared and initialized this way: string[] …

Continue reading ‘C#: Array and collection intializers’ »

C#: Inicializátory polí a kolekcí

Nedávno jsem dostal několik otázek ohledně inicializátorů polí a kolekcí v C#. Protože se to může hodit i někomu dalšímu, rozhodl jsem se sepsat odpověď touto formou. Veškeré informace zmíněné dále jsou platné pro C# verze 3.0 a vyšší. Pole Jednorozměrné pole se standardně deklaruje a inicializuje takto: string[] array = new string[3]; //Pole o třech …

Continue reading ‘C#: Inicializátory polí a kolekcí’ »