Contents tagged with Dynamic

  • How to make dynamic List with check boxes in Acumatica

    Hello everybody,

    today I want to share with you a piece of code, with help of which you can get list of all activer order types in Acumatica and also you'll get a chance to select those types with checkbox. Take a look on a screenshot below:

    how to achieve this?

    Code below without description of DAC class gives you this:

    protected virtual void _(Events.FieldSelecting<SetupClass, SetupClass.orderTypes> e)

    {

        if (e.Row == null)

        {

            return;

        }

        var orderTypes = SelectFrom<SOOrderType>.Where<SOOrderType.active.IsEqual<True>>.View.Select(this).Select(a => a.GetItem<SOOrderType>())

            .ToList();

        var allowedValues = orderTypes.Select(a => a.OrderType). … more