Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
Search
Archives
Archives
July 2010
(1)
June 2010
(3)
February 2010
(1)
January 2010
(3)
November 2009
(1)
August 2009
(9)
May 2009
(1)
March 2009
(2)
February 2009
(1)
January 2009
(4)
December 2008
(8)
November 2008
(8)
October 2008
(4)
September 2008
(4)
August 2008
(10)
July 2008
(8)
Tags
AIF
Ax2009
Ax4
Ax-Client
AxToolbox
Ax-Troubleshooting
BC.Net
C#
EP
Fun
MS CSS support
Programming
The CLR for X++ programmers
Thoughts
Troubleshooting
X++
Common Tasks
Blog Home
Email Blog Author
About
RSS for posts
RSS for comments
Tagged Content List
Blog Post:
Working with Images (BLOBS) between Dynamics Ax and external applications (UPDATED: 06/01/2010)
flo2005
(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...
on
4 Jan 2010
Blog Post:
Importing Leads and Contacts
flo2005
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...
on
18 Aug 2009
Blog Post:
Template Wizard does create SheetNames with more than 30 characters
flo2005
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...
on
18 Aug 2009
Blog Post:
AIF-service call with COM and .Net Business Connector
flo2005
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...
on
11 Aug 2009
Blog Post:
base64Encode() of the kernel class ‘Image’ does return an empty string
flo2005
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...
on
10 Aug 2009
Blog Post:
Gender information in Employees-form and the Global Address Book (GAB)
flo2005
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...
on
10 Aug 2009
Blog Post:
RPC error 1702 when calling a WinAPI method from a batch job
flo2005
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...
on
29 Jan 2009
Blog Post:
Enums and localization… in X++
flo2005
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...
on
8 Jan 2009
Blog Post:
The CLR for X++ programmers
flo2005
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...
on
6 Dec 2008
Blog Post:
Axapta 3: ADO instead of ODBC or install the SP6
flo2005
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...
on
4 Nov 2008
Blog Post:
Passing CLR-object between an Ax-client and the AOS
flo2005
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: ...
on
3 Nov 2008
Blog Post:
Casting CLR-objects with X++
flo2005
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...
on
22 Oct 2008
Blog Post:
How to implement FileSystemWatcher with X++
flo2005
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...
on
1 Sep 2008
Blog Post:
Adding dynamically UserControls to a report with X++
flo2005
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(...
on
25 Aug 2008
Blog Post:
Problems with the COM-Wrapper Wizard
flo2005
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...
on
4 Aug 2008
Blog Post:
X++ in the BC.Net AppDomain and on the AOS
flo2005
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...
on
4 Aug 2008
Blog Post:
Phantom CLR-objects with X++
flo2005
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:...
on
23 Jul 2008
Blog Post:
Troubles with WinAPI in X++
flo2005
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...
on
22 Jul 2008
Blog Post:
Down, up, super and base
flo2005
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...
on
22 Jul 2008
Page 1 of 1 (19 items)