Solved

Possibility to create fields in summary area of Sales Order Form that determine how fields appear in line level

  • 15 June 2021
  • 3 replies
  • 38 views

I have a question on whether on the Sales Order Form, if there is a possibility when entering a value in a custom field in the summary area, when we enter a value to that, it triggers appearance of some selected columns in the table (line level).

icon

Best answer by Naveen B 15 June 2021, 09:21

Hi @TharidhiP  Below is sample code… please verify 


protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOOrder row = e.Row as SOOrder;
if (row == null) return;

PXUIFieldAttribute.SetVisible<SOLine.shipDate>(Base.Transactions.Cache, null, !string.IsNullOrWhiteSpace(row.OrderDesc));


}

View original

3 replies

Userlevel 6
Badge +9

Hi @TharidhiP 

Yes, If  value is present in the Summary area field, then we can able to display the Line level fields.

Please let me know if code sample to shared here. 

 

 

Hi, @Naveen B, it would be great if you could show a small example

 

Userlevel 6
Badge +9

Hi @TharidhiP  Below is sample code… please verify 


protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOOrder row = e.Row as SOOrder;
if (row == null) return;

PXUIFieldAttribute.SetVisible<SOLine.shipDate>(Base.Transactions.Cache, null, !string.IsNullOrWhiteSpace(row.OrderDesc));


}

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 — 2020  Acumatica, Inc. All rights reserved