Page 1 of 1

Mask Data Service

Posted: September 6th, 2022, 11:43 am
by smackie
I am using the mask data service to mask bank account numbers on a webpage. I want to mask it for some users and show for others. I tried to create a separate node for the bank account number and then mask that node, but it is masking that node and the original bank account node. See below screen shots. This is the node created
image.png
This shows how I wrote the mask service
image.png
Here are the logs from when the services are ran showing both nodes being masked
image.png
How do I get this to only mask the maskedacct node and not the AYCBNK node?

Re: Mask Data Service

Posted: September 6th, 2022, 1:00 pm
by SteveCap
Currently the MaskData service will find any node that matches the text value that is passed in and masks it. There is no way to pick and choose which nodes get converted. We are going to introduce a new service MaskNodeData which will allow you to target specific nodes to mask. We will update this post with an example on how to use it once the service is out.

Re: Mask Data Service

Posted: September 7th, 2022, 12:55 pm
by JustinVanRegenmorter
This service has been added as of DesignTime Revision 2384 and RunTime Revision 1049.

Re: Mask Data Service

Posted: September 7th, 2022, 12:59 pm
by JustinVanRegenmorter
The Mask Data Node service is used exactly like the Mask Data service except for it takes in a NodePath instead of text.
Method.PNG
Drag and drop or double click the node value you want to for the NodePath and it should look like this:
Service.PNG
The end result should be logs like so:
Logs.PNG