Skip to main content
Solved

Custom field is not enabled when the document is Released

  • January 27, 2022
  • 5 replies
  • 306 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

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

5 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • 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
  • 3407 replies
  • January 28, 2022

@alejandroalvarado64  Great :) Thanks for sharing the update.


Forum|alt.badge.img+1

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
  • 3407 replies
  • November 25, 2024

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