Solved

Password is showing values until they were inputted


Userlevel 4
Badge +2

Hi,

I have custom screen form that was created for inputting credentials

The problem is that field “Password” depicts hidden symbols before something was written. On that screen I just switched to this tab, all fields are empty, but Password is showing that something was inputted. I attached my solution to Acumatica and verified that Password field is empty, so there is some problem with view.

I attach customization project settings and code

Acumatica 2021R2

Maybe you can suggest how to null its value, while tab is loading for deleting all from view or maybe another approach to make it look correct

Thanks in advance

icon

Best answer by jinin 12 July 2022, 14:55

View original

3 replies

Userlevel 7
Badge +17

Hi @Ivan  Please follow the steps from the below article. Few inputs form my side.

https://tutorialmore.com/questions-2258300.htm

https://www.acumatica.com/blog/technical-tuesday-encrypting-fields-acumatica-database/

 

  • TextMode =Password is not required.
  • There is an issue in your DAC field. Since this field holds the decrypted value, it should be STRING, but you mentioned as INT
  • Also, you need to write the code for decrypting at RowSelected event

 

 

Hope this helps!

Userlevel 4
Badge +2

Hi @Ivan  Please follow the steps from the below article. Few inputs form my side.

https://tutorialmore.com/questions-2258300.htm

https://www.acumatica.com/blog/technical-tuesday-encrypting-fields-acumatica-database/

 

  • TextMode =Password is not required.
  • There is an issue in your DAC field. Since this field holds the decrypted value, it should be STRING, but you mentioned as INT
  • Also, you need to write the code for decrypting at RowSelected event

 

 

Hope this helps!

Hi @Naveen Boga 

Thank you for detailed response

I need to clarify moment with the event implementation

I have class that defines elements of the UI. I changed password definition according to reference , provided by you

and also have class which repsesents custom screen logic

As I understood I need to define event here, but how to return password in it ?

According to example password field must be static

 

Userlevel 7
Badge +11

Hi @Ivan  Please follow the steps from the below article. Few inputs form my side.

https://tutorialmore.com/questions-2258300.htm

https://www.acumatica.com/blog/technical-tuesday-encrypting-fields-acumatica-database/

 

  • TextMode =Password is not required.
  • There is an issue in your DAC field. Since this field holds the decrypted value, it should be STRING, but you mentioned as INT
  • Also, you need to write the code for decrypting at RowSelected event

 

 

Hope this helps!

Hi @Naveen Boga 

Thank you for detailed response

I need to clarify moment with the event implementation

I have class that defines elements of the UI. I changed password definition according to reference , provided by you

and also have class which repsesents custom screen logic

As I understood I need to define event here, but how to return password in it ?

According to example password field must be static

 

Hi @Ivan,

SetDecrypted syntax wrong, Try like below
PXDBCryptStringAttribute.SetDecrypted<Filter.Password>(cache, row, true);

And also, in the Event provide the DAC name. It should be Filter_RowSelected(...)

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved