D365 Finance & Operations and Dynamics AX Forum

Expand all | Collapse all

Creating a custom form/dialog in AX 2012

  • 1.  Creating a custom form/dialog in AX 2012

    Posted 6 days ago
    Hi all,

    I'm looking to create a custom form/dialog which would prompt the user for a list of shipped shipments and a XML filename. I am new to Form development and would appreciate some advice on how I should proceed.

    I envisage the form to include a non-editable grid, a textbox and a button to allow file browsing. When a user selects a collection of shipments from the grid and specifies a filename in a simple textbox and clicks on a OK button, the form should create an XML file containing field values from the shipment.

    I've reviewed the "tutorial" sample forms in the AOT and cant quite find one suitable to start from. Can anyone advise how I go about this or recommend any good training material that I can use to help me?

    Thanks and regards,
    Paul
    #AX2012 #Intermediate #Technical​​​​​​

    ------------------------------
    Paul Fildes
    AX Technical Support Consultant
    Steelite International Ltd
    Stoke-On-Trent
    ------------------------------
    The first step toward cloud success. - Migrate from AX to D365 with expert guidance from Microsoft. I'm Ready


  • 2.  RE: Creating a custom form/dialog in AX 2012

    Posted 5 days ago
    Edited by Wes Burke 5 days ago
    Hi Paul,

    Here's a link that will help you out with the code needed to generate the XML file:
    https://shyamkannadasan.blogspot.com/2016/06/ax-creates-xml-file-in-x-containing.html

    Here is one that will help you with creating your dialog box:

    https://docs.microsoft.com/en-us/dynamicsax-2012/developer/using-classes-to-create-a-dialog" target="_blank" rel="noopener"> https://docs.microsoft.com/en-us/dynamicsax-2012/developer/using-classes-to-create-a-dialog

    Good luck!

    Wes

    ------------------------------
    Wes Burke
    Senior Business Intelligence Analyst
    Miltope Corporation
    Hope Hull AL
    ------------------------------

    The first step toward cloud success. - Migrate from AX to D365 with expert guidance from Microsoft. I'm Ready


  • 3.  RE: Creating a custom form/dialog in AX 2012

    Posted 4 days ago
    Hi Wes,

    Thanks for your message and the suggested links. I have so far, created a Popup form, containing a grid which is populated by a View. I also have a StringEdit field associated to the "FilenameSave" EDT which allows me to prompt for an XML file.
    I'm now looking at processing the selected grid lines to save the data to the XML file in the form's closeok() method

    Thanks again

    Paul

    ------------------------------
    Paul Fildes
    AX Technical Support Consultant
    Steelite International Ltd
    Stoke-On-Trent
    ------------------------------

    The first step toward cloud success. - Migrate from AX to D365 with expert guidance from Microsoft. I'm Ready


If you've found this thread useful, dive deeper into User Group community content by role