Contents tagged with PXStringList

  • How to implement PXStringListAttribute in Acumatica

    Hello,

    today I want to leave a post about code quality regarding of PXStringListAttribute. If to look in older versions of Acumatica manuals ( for example T200 manual ) you can see something like this:

    public class Something : IBqlTable

    {

        [PXStringList(

            new string[]

            {

                ShipmentTypes.CollectorNew,

                ShipmentTypes.CollectorSent,

                ShipmentTypes.CollectorResponded,

                ShipmentTypes.CollectorExpired

            },

            new string[]

            {

                "New",

                "Sent",

                "Responded",

                "Expired"

            })]

        [PXString]

        public virtual string Field { get; set; }

    }

    Recommended … more