I want to conditionally hide a tab in the Production Order Maintenance form. To achieve this, I followed Option 1 in the following Acumatica Community Portal article.
https://community.acumatica.com/customization-tools-and-framework-245/how-to-conditionally-hide-a-tab-on-the-entry-form-4310
First, I created an unbound DAC in the AMProdItemExt DAC as follows.
#region UsrCustomField01
[PXBool()]
[PXUIField(DisplayName="Custom Field", Visible = false)]
[PXDefault(false)]
public virtual bool? UsrCustomField01 { get; set; }
public abstract class usrCustomField01 : PX.Data.BQL.BqlString.Field<usrCustomField01> { }
Now, I want to change the value of the UsrcustomField01 based on a field in the Stock Items screen. This field is also custom field in the InventoryItemExt DAC.
I tried using event handlers, PXFormula, and PXDefault, but it didn't work.
We can create a connection between the AMProdItem and InventoryItem DACs using the InventoryID fields of both DACs.