Solved

How to override the default account selector warning

  • 23 March 2023
  • 1 reply
  • 65 views

Userlevel 1
Badge
#region UsrAccount
[Account(DisplayName = "Account", BqlField = typeof(INTranExt.usrAccount), Visibility = PXUIVisibility.Visible, Filterable = false, DescriptionField = typeof(Account.description), Required = false, AvoidControlAccounts = true)]
public virtual int? UsrAccount { get; set; }
public abstract class usrAccount : PX.Data.BQL.BqlInt.Field<usrAccount> { }
#endregion

I have created a custom field with Account attribute.
Account attribute has this default warning in place.
 

I have added FieldVerifying on the my custom field. But this warning seems to override my error message. How can I show my error over this default warning I am not able to figure this out.

Can anyone share some suggestions.

Thanks.

icon

Best answer by aaghaei 23 March 2023, 20:01

View original

1 reply

Userlevel 7
Badge +8

Have you tried to set your custom field as

AvoidControlAccounts = false

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved