Display Option Method in X++

  

The displayOption method is used to set display options from a stored profile and to override the background color that is based on the settings for the particular record.


public void displayOption(Common _record, FormRowDisplayOption _options)

        {

            Employee profile;

            profile = _record;


            if(profile.EmpSalary<=15000)

            {

                _options.backColor(WinAPI::RGB2int(255,0,0)); // red

            }

            super(_record, _options);

        }


Comments

Popular posts from this blog

how to post trade agreement journals automatically using x++ code

How to Create a wizard in x++ d365

x++ code to submit and approve and reject the invent movement workflow in d365 F&O