Search code examples
formsaxaptarecord

Current row value on listpage init() method Dynamics AX


I would like to get current clicked record value on AssetTableListPage. I need value AssetTable.AssetGroup from active record in listpage in init() method.


Solution

  • The clicked record from the list page is available in the called form through the element.args().record().

    In the called form:

    void init()
    {
         AssetTable assetTable = element.args().record();
         // Use assetTable from AssetTableListPage
         super();
    }