Skip to main content
Answer

Adding Custom Field to Details Section in Transfers Screen (Acumatica 24.R1)

  • March 18, 2025
  • 7 replies
  • 90 views

Forum|alt.badge.img

Hi All,

Is there a way to added custom fields enabled in any status on the Transfers screen(IN304000) in Acumatica 24.R1? I want specially after releasing the transfers.

Any insights would be greatly appreciated.

Regards,
Lalith

Best answer by svwk05

@Lalith 

Can you try below code, it works for me.

 protected virtual void INTran_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
var row = (INTran)e.Row;
if (row == null)
{
return;
}
if (Base.transfer.Current.Status == INDocStatus.Released)
{
Base.transfer.Cache.AllowUpdate = true;
Base.transactions.Cache.AllowUpdate = true;
// Enable the custom field
PXUIFieldAttribute.SetEnabled<INTranExt.usrDebitAccount>(cache, row, true);
}
}

Thanks,

SaiKrishna

7 replies

Forum|alt.badge.img+8
  • Captain II
  • March 18, 2025

@Lalith 

 

You should be able to do this through the workflow engine.

 


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • March 18, 2025

Hi ​@Lalith ,

You can try achieving this using Workflow Automation.

Please refer to the links below for detailed guidance:

Disable field in Sales Orders SO301000 Screen | Community
How to force a custom field to remain enabled in SO301000 despite workflow settings | Community


Forum|alt.badge.img
  • Author
  • Freshman I
  • March 21, 2025

Hi ​@aiwan  and ​@jinin ,

As per your suggestion, I made the changes, but the issue persists. It works fine for the Sales Order screen and other areas.

Is this screen designed in a specific way that prevents this feature from functioning correctly?

Looking forward to your insights.

Best regards,
Lalith.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • March 21, 2025

Hi ​@Lalith ,

  Could you please try using the sample code below?

public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
protected virtual void SOLine_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOLine row = e.Row as SOLine;
if (row != null)
{
//Add OrderType and required conditions
Base.Document.Cache.AllowUpdate = true;
Base.Transactions.Cache.AllowUpdate = true;

PXUIFieldAttribute.SetEnabled<SOLineExt.usrField1>(cache, row, true);
}
}
}

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • March 21, 2025

Hi ​@jinin

I have implemented the following code, but the issue persists.

protected void INTran_RowSelected(PXCache cache, PXRowSelectedEventArgs e,PXRowSelected InvokeBaseHandler)
        {
            InvokeBaseHandler?.Invoke(cache, e);
            var row = (INTran)e.Row;
            if (row == null)
            {
                return;
            }

 

            if (row.Released == true)
            {
                Base.transfer.Cache.AllowUpdate = true;
                Base.transactions.Cache.AllowUpdate = true;

                // Enable the custom field
                PXUIFieldAttribute.SetEnabled<INTranExt.usrDebitAccount>(cache, row, true);

 

            }

 

 

        }

Could you please review and let me know if I need to make any further adjustments?

Regards,
Lalith.


Forum|alt.badge.img+1
  • Semi-Pro III
  • Answer
  • March 21, 2025

@Lalith 

Can you try below code, it works for me.

 protected virtual void INTran_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
var row = (INTran)e.Row;
if (row == null)
{
return;
}
if (Base.transfer.Current.Status == INDocStatus.Released)
{
Base.transfer.Cache.AllowUpdate = true;
Base.transactions.Cache.AllowUpdate = true;
// Enable the custom field
PXUIFieldAttribute.SetEnabled<INTranExt.usrDebitAccount>(cache, row, true);
}
}

Thanks,

SaiKrishna


Forum|alt.badge.img
  • Author
  • Freshman I
  • March 21, 2025

Hi ​@Saikrishna V,

Yes, I appreciate it! It works for me as well.

Thank you very much!

Best regards,
Lalith