By using this website, you agree to our Terms of Use (click here)
Hi again Tim,
Hope all is well.
I'm attempting to initially sort the customer lookup by account name.
In the DAC, selecting SO.SOrder and Customizing the attributes, I selected "Replace Original" and added this:
[PXDefault]
[CustomerActive(typeof(Search<BAccountR.bAccountID,Where<Customer.type, IsNotNull,
Or<Current<SOOrder.aRDocType>, Equal<ARDocType.noUpdate>,
And<BAccountR.type, Equal<BAccountType.companyType>>>>, OrderBy<Asc<BAccountR.acctName>>>),
Visibility = PXUIVisibility.SelectorVisible, DescriptionField = typeof(Customer.acctName), Filterable = true)]
Notice I only added , OrderBy<Asc<BAccountR.acctName>>.
After a successful build and opening SOOrder screen, I get this error:
Error: The parameter length exceeds the allowed value.
Parameter name: types
at PX.Data.BqlCommand.Compose(Type[] types)
at PX.Objects.AR.CustomerAttribute..ctor(Type search, Type[] fields)
at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean
Thanks for your help.
--Paul
Hey Paul,
I recommend posting this on StackOverflow:
http://stackoverflow.com/questions/tagged/acumatica
Thanks Tim.
Thanks for posting the links Paul