Skip to main content
Solved

Custom field is not enabled when the document is Released

  • January 27, 2022
  • 5 replies
  • 399 views

Hello,

I have a custom field called “Cheque Generado” in Transactions screen, this field is a check box type, I tried to override the CAAdj_RowSelected event but it does not work.

This is my code:

 

protected void CAAdj_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
    {
      InvokeBaseHandler(cache, e);
      CAAdj row = (CAAdj)e.Row;

      if (row != null)
      {
          Base.CAAdjRecords.AllowUpdate = true;
          Base.CAAdjRecords.Cache.AllowUpdate = true;
          PXUIFieldAttribute.SetEnabled<CAAdjExt.usrChequeGenerado>(cache, row, true);
      }
    }
 

Could you help me with this?

Best answer by Naveen Boga

Hi, @alejandroalvarado64  Once Document is RELEASED entire document fields will go to non-editable mode.

If we want to enable the fields, we need to enable the field from the code level as well as from the Workflow as well.

I have written an article on this, please find the link below. Let me know if you have any queries.

https://asiablog.acumatica.com/2021/10/enable-customization-fields-when-document-is-completed.html

5 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • January 28, 2022

Hi, @alejandroalvarado64  Once Document is RELEASED entire document fields will go to non-editable mode.

If we want to enable the fields, we need to enable the field from the code level as well as from the Workflow as well.

I have written an article on this, please find the link below. Let me know if you have any queries.

https://asiablog.acumatica.com/2021/10/enable-customization-fields-when-document-is-completed.html


Hi @Naveen B,

Thanks so much, I followed the steps and it worked great, 

Have a nice day!

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • January 28, 2022

@alejandroalvarado64  Great :) Thanks for sharing the update.


Forum|alt.badge.img+2

Hi ​@Naveen Boga
I tried to access your article. But now it is not available at the provided URL. Can you check it? 
 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 25, 2024

@PDharmasena10  Try this link - https://asiablog.acumatica.com/?p=7873