Contents tagged with Dynamic
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)
var orderTypes = SelectFrom<SOOrderType>.Where<SOOrderType.active.IsEqual<True>>.View.Select(this).Select(a => a.GetItem<SOOrderType>())
var allowedValues = orderTypes.Select(a => a.OrderType). … more