I created a custom screen of type FormTab. I added the following view to the form (summary) area. However, some fields appear as disabled(uneditable) when the screen is displayed. Specially all fields in the second DAC. When I add these DACs alone as the view, fields appear correctly with editability. This issue occurs only when the DACs are joined.
public SelectFrom<AMMTran>
.InnerJoin<AMProdItem>
. On<AMProdItem.orderType.IsEqual<AMMTran.orderType>
. And<AMProdItem.prodOrdID.IsEqual<AMMTran.prodOrdID>>>
.View HeaderView;
I tried resolving this issue using an a RowSelected event handler as follows, but it didn’t work. I also set Enabled = true for the fields using the Customization Project Editor, but the problem persists. Any detailed instructions, tips, or code snippets would be greatly appreciated. Thank you!
protected virtual void _(Events.RowSelected<AMProdItem> e)
{
if (e.Row == null) return;
PXUIFieldAttribute.SetEnabled<AMProdItem.prodOrdID>(e.Cache, e.Row, true);
}