Thursday, June 15, 2023

How to get lookup for individual financial dimension values in d365 X++

 public void lookup()

        {

            FormStringControl   ctrl = this as FormStringControl;

            Args                args;

            FormRun             formRun;

            DimensionAttribute  dimensionAttribute;

            select dimensionAttribute

                where dimensionAttribute.Name == 'BusinessUnit'; //mention the required dimension name.

            args = new Args();

            args.record(dimensionAttribute);

            args.caller(this);

            args.name(formstr(DimensionLookup));

            formRun = classfactory.formRunClass(args);

            formRun.init();

            ctrl.performFormLookup(formRun);

            super();

        }


No comments:

Post a Comment