Contents tagged with Acumatica ObjectsEqual more then eight parameters

  • Acumatica and ObjectsEqual lack of parameters

    Hello everybody,

    today I want to share how I deal with ObjectsEqual limitation. In one of my tasks I had requirement to check for equality more then eight parameters and found that ObjectsEqual takes only 8 parameters. But I needed more. 

    In order to fix it I decided to use extension classes of C# which allows inject into existing class new functionality.

    Here is the way how I did it:

    public static class PXCacheExtensions


    public static bool ObjectsEqualExt(this PXCache cache, object a, object b, params IBqlField[] values)


    var result = true;

    foreach (var bqlField in values)


    result = result && object. … more