Browse by Tags

Tagged Content List
  • Blog Post: Memory leaks and profiling with .Net

    I wrote some moths ago an article about the GC and highlighted some particularities (unsafe and unmanaged code, disposing and finalizing, etc). When you are developing with .Net you will be sometimes faced to memory or resource leaks. Especially if you are using the BC.Net, since the BC.Net is using...
  • Blog Post: Importing Leads and Contacts

    You can find a very good description on our team blog (EMEA Dynamics AX Support) how to import leads and contact Xml files with Dynamics Ax 2009 here . The problem you will be faced by using this is, that you can’t import data with non Ascii characters, which might cause some difficulties. The reason...
  • Blog Post: RPC error 1702 when calling a WinAPI method from a batch job

    You probably already noticed that error messages are sometimes not really helpful when you are trying to understand a problem. The following code creates such misleading error message: 1: public void run() 2: { 3: ; 4: if (WinApi::folderExists( @"c:\temp\")) 5: info("Folder exists...
  • Blog Post: Enums and localization… in X++

    On Msdn enumerators (Enums) are described as: X++ does not support constants but has an enumerable type (Enum), which is a list of literals. You need to create an Enum in the Application Object Tree (AOT) before you can use it. Enum values are represented internally as integers. The first literal...
  • Blog Post: How to develop with multiple developers on an Enterprise Portal (Ax2009) application

    Many partners asked if it would be possible to have just one Enterprise Portal Server (WSS3.0 or MOSS + EP components) for their EP-development as described in the following scheme:   The answer is no. Theoretically it would be possible to have one EP-server where each developer would have it’s...
  • Blog Post: The CLR for X++ programmers

    Dynamics Ax offers since Ax4 a .Net support ( BC.Net, EP and CLR objects with X++ ). As a matter of fact .Net will have a more and more important influence on Dynamics Ax since .Net is the glue of the Microsoft product stack . Sharepoint, BizTalk, SQL Server, Analysis Services, Microsoft Project, Workflow...
  • Blog Post: Axapta 3: ADO instead of ODBC or install the SP6

    I recently did face a quite annoying problem with the OdbcConnection-class on Axapta 3 (client build number: 1951.8). I could access my DB2 (9.5)database without problems, but unfortunately I wasn’t able to close the connection. The only way to close this connection was shutting down the instance that...
  • Blog Post: Passing CLR-object between an Ax-client and the AOS

    As explained on msdn you can’t pass an CLR-object between a Ax-client and the AOS. So the following example will work for the client-to-client but will fail for the client-to-server scenario: The code for the CLR-class: 1: using System; 2: 3: namespace Samples 4: { 5: public class Customer 6: ...
  • Blog Post: Handling .Net exceptions with X++

    In my last blog I was talking about casting CLR-objects in X++. In the code example you might have noticed the following code: 1: catch (Exception::CLRError) 2: { 3: //we'll discuss this later... 4: } Well, handling CLR-objects isn’t that easy. But fortunately you can find...
  • Blog Post: Casting CLR-objects with X++

    Casting CLR-objects with X++ isn’t that obvious as it is in .Net languages as C# or even VB.Net. The following code will not compile because of the incompatibility of the two types System.Net.WebRequest and System.Net.HttpWebRequest even if you are allowed to upcast in any .Net language the WebRequest...
  • Blog Post: ReportViewer

    If you need a great reporting tool, or you want to use the RDLs from the Reporting Services 2005 without a SQL Server 2005 license, then this link will be very interesting for you (or maybe you already know the ReportViewer? ): http://www.gotreportviewer.com/ Here's an excerpt from the product...
  • Blog Post: How to implement FileSystemWatcher with X++

    The CLR offers with System.IO.FileSystemWatcher a very simple to use class which can be used with X++ in order to identify new created, renamed, deleted and changed (The change of a file or folder. The types of changes include: changes to size, attributes, security settings, last write, and last access...
  • Blog Post: Adding dynamically UserControls to a report with X++

    This is a pretty simple example how to add an UserControl to an existing Report. But since the documentation isn’t talking a lot about here’s the code: public boolean fetch() { ReportSection reportSection; ReportTextControl textControl; ; reportSection = element. design() .autoDesignSpecs(...
  • Blog Post: X++ in the BC.Net AppDomain and on the AOS

    As I already wrote before , the BC.Net is an Ax-client and as an Ax-client able to execute X++-code. So your X++ method are by default executed within the calling AppDomain . In order to identify the AppDomain in which the X++ is executed we write two methods (GetClientProcess and GetServerProcess...
  • Blog Post: Troubleshooting a simple BC.Net application

    Here's a simple checklist if you have problems to connect to the AOS (Dynamics Ax 4) with the BC.Net. Your code might look like this: 1: Microsoft.Dynamics.BusinessConnectorNet.Axapta ax; 2: string configuration = " C:\\Sample.axc " ; //see step 3 3: 4: ax = new Microsoft.Dynamics.BusinessConnectorNet...
  • Blog Post: Printer friendly with Enterprise Portal (EP)

    Having a printer friendly view seems to me a quite basic feature, but unfortunately this isn't the case for the EP. Fortunately the guys from Eggheadcafe had a great idea which permits you to create a printer friendly view with ease. (Thank you for that!) Here's my version for the EP: Just add a ...
  • Blog Post: The .Net Business Connector (BC.Net) and the IIS

    BC.Net client application The BC.Net is designed to be a client application in a non multithreading context. This is why the assembly is deployed in the bin-directory of the Dynamics Ax client . The following schema describes the standard scenario you might find described on msdn and many excellent...
  • Blog Post: Phantom CLR-objects with X++

    Some weeks ago I got the following code: 1: try 2: { 3: iop = new InteropPermission(InteropKind::ClrInterop); 4: iop.assert(); 5: 6: fileInfo = new System.IO.FileInfo(filename); 7: 8: if (WinAPI::fileExists(filename)) 9: { 10: fileInfo.Delete(); 11: } 12: fileInfo.Create(); 13: } 14: catch 15:...
  • Blog Post: Troubles with WinAPI in X++

    Maybe the title is some kind of misguiding, since it's neither the WinAPI nor X++ that are causing troubles, but the wrong use of the WinAPI with X++. Anyway, you might know what I mean ... Following blindly sample code from the web or the online documentation isn't always a good idea, especially...
Page 1 of 1 (19 items)