Solved

Enable the field (vendorID-Opportunities Detail line)at all times

  • 12 April 2023
  • 2 replies
  • 93 views

Userlevel 1
Badge

Version-21.217.0035

Hi,

am trying to make vendor field always enable
i tried by adding workflow to the package and also programmatically written row selected event to make enable

 

icon

Best answer by Naveen Boga 13 April 2023, 07:11

View original

2 replies

Userlevel 7
Badge +10

Hi @FarhanaM60 ,

Could you please try below code.

protected void CROpportunityProducts_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)

{
if(InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (CROpportunityProducts)e.Row;
PXUIFieldAttribute.SetEnabled<CROpportunityProducts.vendorID>(cache, null);

}

Hope, it helps!

Regards,

Sweta

Userlevel 7
Badge +17

Hi @FarhanaM60  I have modified the code level changes and workflow changes to enable the VENDOR ID field when it is moved to all the statuses (New/Open/Won/Lost).

 

Attached customization package for your reference. Please deploy and verify once.

 

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