Application Issue.

0
Hello Team, I want to show only last 4 digits of SSN e.g(XXX-XX-6789)   but the SSN Value should not get change because my microflow search into the database with the SSN number so if the SSN is not registered in the database then only application is creating a new employee record . To Achieve this property my microflow is searching the SSN into the Database and compare the SSN with all employee records. However, the new requirements are “After inserting the SSN(123-45-6789) the SSN should get change as(XXX-XX-6789) only for display, as we move to the next tab” and the functionality should remain the same as it is working now. To achieve this I tried running a microflow “On Change Event” but how to copy the data as it seems the data is not getting saved. I tried to Take a temporary variable into a domain modal and swap the value of “Display SSN with the Real SSN” and last for digit only to show the user but the data is not getting save.   Please assist me with this.   Regards, Ankit
asked
2 answers
0

Are you using the AutoCompleteForMendix widget? you could change the ‘ResultDisplay’ to match your XXX-XX-6789 requirement and instead of looking for a matching string you could either search for results that contain the searched string or (if you do not want the user to be able to guess the ‘X’ digits by searching ;) ) you could use https://docs.mendix.com/refguide/string-function-calls endsWith or (for xPath) ends-width https://docs.mendix.com/refguide6/xpath-ends-with

answered
0

You could add an attribute called DisplaySSN where its calculated by modifying the SSN attribute and creating XXX-XX-6789 using the substring and concat functions. 

 

EDIT: on change of the SSN attribute, just call the microflow that sets the value for DisplaySSN.

answered