Browse by Tags

Tagged Content List
  • Blog Post: Working with Images (BLOBS) between Dynamics Ax and external applications (UPDATED: 06/01/2010)

    (updated the 05/01/2010 and 06/01/2010) The idea Whenever you need to transfer data in a platform specific format (like Images), the easiest way of doing this is to create an envelope (in Xml) and put the data in an encoded format in this envelope. Here’s a schema that shows such a scenario:   The...
  • 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: Template Wizard does create SheetNames with more than 30 characters

    The Template Wizard (Administration/Periodic/Data export/import/Excel spreadsheets/Template Wizard) creates unfortunately SheetNames that might exceed 30 characters, which is not allowed by Excel and results in annoying message boxes that are requesting a new SheetName with less than 31 characters. The...
  • Blog Post: AIF-service call with COM and .Net Business Connector

    When executing an AIF-service with the COM and .Net Business Connector the client will not be notified about exceptions during the execution. The reason for this is, that AIF-services are always executed within a transaction ( ttslevel = 1) even when no ttsBegin has been executed. And as described on...
  • Blog Post: base64Encode() of the kernel class ‘Image’ does return an empty string

    A partner asked me why the base64Encode method of the Image class does always return an empty string. In the following example: 1: Image image; 2: str sBase64Encode; 3: ; 4: image = new Image(); 5: image.loadImage(@ 'C:\sample.bmp' ); 6:   7: sBase64Encode = image.base64Encode...
  • Blog Post: Gender information in Employees-form and the Global Address Book (GAB)

    You can open the information about employees with the Global Address Book (Basic/Global Address Book) and with the Employees form (Basic/Employees). Normally it is no problem to modify data in both forms, but unfortunately this is not true for the ‘gender’ property . This information is stored in...
  • 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: 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: 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: 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: Problems with the COM-Wrapper Wizard

    I recently got the following strange error-message during the execution of the COM-wrapper wizard: "Method 'Item' in COM-object for class 'Interfaces' returned error code 0x800A0009 (<unknown>) which means: <unknown>" Debugging the wizard, I recognized that at the origin of this...
  • 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: 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...
  • Blog Post: Down, up, super and base

    Sometimes the programming language is determining the perspective. Last week I read the definition of downcasting on Wikipedia : In object-oriented programming , downcasting or type refinement is the act of casting a pointer or a reference to a base class to one to a derived class. I think this...
Page 1 of 1 (19 items)