Skip to main content
Answer

Save Button Disabled When Updating Custom Field in Released Transfer Screen

  • April 24, 2025
  • 5 replies
  • 123 views

I'm experiencing an issue when updating a custom field (usrDebitAccount) on the Transfers screen (IN304000) within the Transfer Details grid, specifically in a Released document.

 

In the INTran_RowSelected event, I’ve enabled the custom field usrDebitAccount  when the row is released, like this. I have also enabled the field from workflow as well.

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;

PXUIFieldAttribute.SetEnabled<INTranExt.usrDebitAccount>(cache, row, true);

}
}

The issue is:

  • When I change the value of usrDebitAccount on a single row and try to save, the Save button appears enabled but it shows the below error message

       

  • If I click ok button of above pop up error message and attempt to save a second time, the value gets saved correctly.

  • When I update the usrDebitAccount field across multiple rows, the Save button appears disabled and I can’t save at all.

Does anyone have a workaround or a recommended way to ensure the Save button is properly enabled after editing custom fields in a released document.?

 

Thanks

Best answer by DipakNilkanth

Hi ​@charitha82,

You need to change your RowSelected event from INTran (Detail DAC) to INRegister (Header DAC).
This should resolve your issue.

Also, please ensure that you have unchecked the Base workflow and checked your modified workflow.

Hope this helps!

5 replies

darylbowman
Captain II
Forum|alt.badge.img+15

Maybe try enabling the Save button in the same way?

Something like Base.Save.SetEnabled(true);


  • Author
  • Freshman I
  • April 28, 2025

@darylbowman I tried that, but the following error occurred.

Error: The record cannot be saved.


DipakNilkanth
Pro III
Forum|alt.badge.img+13
  • Pro III
  • Answer
  • April 28, 2025

Hi ​@charitha82,

You need to change your RowSelected event from INTran (Detail DAC) to INRegister (Header DAC).
This should resolve your issue.

Also, please ensure that you have unchecked the Base workflow and checked your modified workflow.

Hope this helps!


  • Author
  • Freshman I
  • April 29, 2025

@Nilkanth Dipak Thank you! That solution worked perfectly

 


DipakNilkanth
Pro III
Forum|alt.badge.img+13

@charitha82, Thanks for sharing!