Fork me on GitHub

Other articles


  1. Create Enterprise Portal/AX Client Primary/Secondary List Pages with Preview Pane [AX2012]

    Create List Page/Form

    Prepare new Project (optional)

    • Create a new Project Project > Shared > New > Project and give it a name. Having all created/modified objects in a single project will help you to be more organised and will allow you to easily export your work to production environment.
    • Give ...
    read more

    There are comments. Feel free to leave your comment.

  2. Dynamics AX R2 Enterprise Portal, Enterprise Search and Help Server setup with SharePoint 2010/2013

    Lessons learned

    Below you will find a list of things that I was struggling on whilst making this kind of setup to work for the first time.

    If you haven’t done this kind of setup before, I’d recommend to start with SharePoint 2010 (SP) version. This will allow ...

    read more

    There are comments. Feel free to leave your comment.

  3. Highlight (select, mark) a record(s) in Grid from X++ [AX2012]

    Solutions

    Highlighting all the records in a grid (including NOT loaded ones)

    Let’s say we have some Control in a Form of type CheckBox, Button or StringEdit and we want it them once modified/clicked to update the form grid by selecting all the records in a grid.

    To ...

    read more

    There are comments. Feel free to leave your comment.

  4. StreamSocket TCP/IP Client (Universal Apps Model) [.NET]

    Solution

    TCP/IP Client based on a few examples found online. Making those examples to work turned out to be a tricky task, so I’m sharing what finally worked for me.

    This TCP/IP client is used to send a particular string to some TCP/IP server on the ...

    read more

    There are comments. Feel free to leave your comment.

  5. Read XML string (elements, attributes, texts) [AX2012]

    An X++ example of getting the data from a bit more complex XML string.

    Here you can find a tutorial on making XML string in X++.

    Solution (this time only a single Job)

    static void readXMLString(Args _args)
    {
        // Define XML Document and its nodes
        XmlDocument     doc;
        XmlNodeList     xmlScriptList;
        XmlNodeList     xmlProjectList ...
    read more

    There are comments. Feel free to leave your comment.

  6. Building a Query in X++ [AX2012]

    Solution

    An example of Query to find InventSerials, when Works Order is known.

    An example of achieving same result using While/Select statements.

    Class declaration

    public class YourClass
    {
        // Query objects
        Query                   query;
        QueryRun                queryRun;
        QueryBuildDataSource    qbdsInventTransOrigin;
        QueryBuildDataSource    qbdsInventTrans;
        QueryBuildDataSource    qbdsInventDim;
        QueryBuildDataSource    qbdsInventSerial;
        QueryBuildRange         qbr;
    
        // Declare a table buffer
        InventTransOrigin       inventTransOrigin ...
    read more

    There are comments. Feel free to leave your comment.

  7. Using While Select and Ranges in X++ [AX2012]

    Solution

    An example of While/Select statements to find InventSerials, when Works Order is known. Here I also will use a chance to note the ListEnumerator. No Joins are used in this example.

    An example of achieving same result using Queries.

    Class declaration

    public class YourClass
    {
        InventTransOrigin               inventTransOrigin;
        InventTrans                     inventTrans ...
    read more

    There are comments. Feel free to leave your comment.

  8. AX/SQL Best Practices

    Check current SQL Server values:

    EXEC sp_configure;
    

    1) Trace flags 4136 ,1117 and 4199 enabled on SQL server.

    DBCC TRACEON(4136,-1) 
    DBCC TRACEON(1117,-1) /* If you've configured multiple data files and you want to allow auto grow, consider enabling trace flag 1117, which will force all data ...
    read more

    There are comments. Feel free to leave your comment.

  9. TCP/IP Client (derived from C# to X++) [AX2012]

    Solution

    TCP/IP Client based on an example in my C# code. This example demonstrates how to send a string to TCP/IP Server and receive response back from it. The response is being read in batches.

    The solution can be easily converted to Inbound Service.

    Service data contract attribute ...

    read more

    There are comments. Feel free to leave your comment.

Page 1 / 2 »

links

social