Contents tagged with StringList

  • Getting Combo-box values set for REST API

    Hello everybody,

    today I want to share idea on how to get getting Combo-box values set for REST API.

    As usually values of comboboxes values are just hardcoded in web api calls, but sometimes it may be necessary to load them from Rest API, for example for cases if you want to target multiplve versions of Acumatica. For such a purpose I'd suggest to create Graph, which via reflection will read values from dlls. Quite similar to what Acumatica team does. 

    Below goes source code of graph, which via reflection loads data:

    using PX.Data;

    using System;

    using System.Collections;

    using System.Reflection;

    namespace LA

    {

        public class ListAttributesInq : PXGraph<ListAttributesInq>

         … more