Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Thursday, November 29, 2018

How to achieve alerts for child tables in D365

Hi,

Microsoft D365 doesn't support alert handling for child tables when there is a parent table in a form.

We can do a work around to handle this by using the sysTableBrowser URL for the particular table which is not listed in any form.


Regards,

Tuesday, November 27, 2018

How to run a job in D365

Hi,

This is not similar to AX 2012, we needs to invoke it like how we are opening the table browser.

1. Create a item as Runnable class,
2. Add your business Logic codes in main method().
3. Call the below URL with your instance URL and Class name.

https://<instanceURL>/?mi=SysClassRunner&cls=YYYNumberSeqLoad&cmp=YYY

https://URL/?mi=SysClassRunner&cls=EcomPurchOrderEDI&cmpECOP&cmp=ECOP

Regards

Monday, November 26, 2018

The menu item with name XXX could not be opened.

Hi,

Can you please check the form init, which can be adjustable with DB init will get it resolved.


Thanks,

Saturday, November 17, 2018

cannot access a disposed object, Object name 'memory model provider has been already disposed


Hi,

Cannot access a disposed object,
Object name 'memory model provider has been already disposed

Prompts an error when you built the model you have.

Solution:

1. Full built all the model files.
2. Restart the IIS.
3. Rerun the VS.

Regards,

Thursday, November 15, 2018

Job to list all the fields in particular table in D365

Hi,


class AlfasithTableFieldList
{       
    /// <summary>
    /// Runs the class with the specified arguments.
    /// </summary>
    /// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {

        TableName           tableName = 'SalesTable';
        SysModelElement     sysModelElementTables;
        SysModelElement     SysModelElementFields;
        DictField           dictField;
        ;
        while select    sysModelElementTables
            where   sysModelElementTables.ElementType               == UtilElementType::Table       &&
                    sysModelElementTables.Name                      == tableName
            join SysModelElementFields
                where   SysModelElementFields.ElementType           == UtilElementType::TableField  &&
                        SysModelElementFields.ParentModelElement    == sysModelElementTables.RecId
        {
            dictField = new DictField(sysModelElementTables.AxId, sysModelElementFields.AxId);
            print dictField.name();
        }
    }

}

Regards,

Dimension Lookup for both standard and Custom dimension in D365

Hi,  /// <summary>     /// Provides the look-up interaction for the individual dimension value lookup controls.     /// </summary&g...