Fork me on GitHub

Other articles


  1. Search Active Directory for User information [AX2012]

    A simplified example from AD User Import Wizard on how to retrieve AD user details via X++.

    It may be useful when the wizard doesn’t return all information that you need about system users.

    Solution

    public void SearchADUsers(Args _args)
    {
        InteropPermission                                   interopPermission;
        System.DirectoryServices.DirectorySearcher          directorySearcher;
        System.DirectoryServices.DirectoryEntry ...
    read more

    There are comments. Feel free to leave your comment.

  2. 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.

  3. 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.

  4. 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.

  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.

Page 1 / 2 »

links

social