Skip to main content

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

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 @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  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