Skip to main content
Solved

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

  • April 12, 2023
  • 2 replies
  • 136 views
  • Translate All

Forum|alt.badge.img+4

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

 

Best answer by Naveen Boga

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.

 

View original

2 replies

Forum|alt.badge.img+9
  • Semi-Pro III
  • April 12, 2023

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

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

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.

 

Translate