Solved

Restricting Required Field to specific screens

  • 1 August 2023
  • 2 replies
  • 53 views

Userlevel 2
Badge

I am looking to set the Price Class field to be required on the location screen when a customer is being created.

So my attributes are set as below.

This works fine on the customer screen but when I try to add a vendor or employee I hit a stop as the price class is not populated, price class isnt required on either so is there anyway just to enforce this requirement on the customer screen?

 

[PXDBString(10, IsUnicode = true)]
[PXSelector(typeof(AR.ARPriceClass.priceClassID))]
[PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)]
[PXUIField(DisplayName = "Price Class", Visibility = PXUIVisibility.Visible, Required = true)]

 

icon

Best answer by Dmitrii Naumov 1 August 2023, 23:40

View original

2 replies

Userlevel 2
Badge

Thanks for that Dmitrii

Userlevel 7
Badge +5

You should use CacheAttached to only replace the attributes for a specific graph.

See here: https://help.acumatica.com/(W(5))/Help?ScreenId=ShowWiki&pageid=d0634e8a-3a21-454c-963a-6741e7ec8390

And here: https://help.acumatica.com/(W(6))/Help?ScreenId=ShowWiki&pageid=80e817bd-e70b-45b9-a9b1-2d2d0e2f8ee2

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