Contents tagged with String List

  • 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

  • Hos to add list values to drop down in Acumatica

    Hello everybody,

    today I want to make quick notice of how to make drop down values in Acumatica avalable. 

    Let's imagine, that you need following drow down list:

    In order to get this kind of list, you can use the following code:

    public static class JiraAccountStatusEnum

    {

    public const string Open = "O";

    public const string Closed = "C";

    public const string Archived = "A";

    }

    public class JiraAccountListAttribute : PXStringListAttribute

    {

    public JiraAccountListAttribute() : base(

    new string[] {JiraAccountStatusEnum.Open, JiraAccountStatusEnum.Closed, JiraAccountStatusEnum.Archived},

    new string[] {" … more