how to Create custom instant search filters in Ax 2009 and 2012 and D365

 [Form]

public class SportsForm1 extends FormRun

{


    

    [Control("String")]

    class FormStringControl2

    {

        /// <summary>

       //

        /// </summary>

        public void textChange()

        {

            super();

            this.modified();

        }


        /// <summary>

        ///

        /// </summary>

        /// <returns></returns>

        public boolean modified()

        {

            boolean ret;

        

            ret = super();


            str nameFilter;


            nameFilter = '*'+this.text()+'*';

            Sports_ds.filter(fieldnum(Sports,Person_Name),nameFilter);

        

            return ret;

        }


        /// <summary>

        ///

        /// </summary>

        public void enter()

        {

            super();


            this.setSelection(

strlen(this.text()),

strlen(this.text()));

        }


    }


}

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

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

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O