Skip to main content
Solved

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


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 Saikrishna V

@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

View original
Did this topic help you find an answer to your question?

7 replies

Forum|alt.badge.img+8
  • Captain II
  • 366 replies
  • 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
  • 699 replies
  • 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
  • 24 replies
  • 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
  • 699 replies
  • 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
  • 24 replies
  • 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
  • Jr Varsity III
  • 27 replies
  • 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
  • 24 replies
  • March 21, 2025

Hi ​@Saikrishna V,

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

Thank you very much!

Best regards,
Lalith


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings