Focal Point
Combining fields to create default passwords
April 09, 2013, 09:48 AM
IanCombining fields to create default passwords
Hi everyone,
I am trying to build default passwords using my information in InfoAssist. FOr example, I am hoping to use someone's last name and birthday to get "Jones12121985".
Does anyone know how I could combine fields like that in InfoAssist?
WebFOCUS 7.6
Windows, All Outputs
April 09, 2013, 12:01 PM
TMoorthyHi Ian - try this: LastName||Birthday
You can also use | which is a weak concatenation. It keeps trailing blanks.
InfoAssist 7.7.3
Windows, All Outputs
April 10, 2013, 08:37 AM
IanThanks for the quick reply! Its very helpful. Sadly, it did not work. I tried putting it in using the Compute function. Do I need to use this in a different function?
WebFOCUS 7.6
Windows, All Outputs
April 10, 2013, 10:34 AM
Dave@Ian
I think the problem is that LastName is a string and Birthday is something else... Could be a integer or even a real date format.
You need to convert that to a String before you can concatenate it to LastName.
Look up format conversion functions like EDIT FPRINT or CVTDATE.
G'luck
Dave
_____________________
WF: 8.0.0.9 > going 8.2.0.5
April 10, 2013, 01:56 PM
TMoorthyDid you try using it in a DEFINE function? Compute is usually only used for aggregations.
T
InfoAssist 7.7.3
Windows, All Outputs
April 11, 2013, 08:04 AM
IanNot to make matters more complicated, but are you aware of how I could take the last four digits of a value (i.e. social security number) and use it in that same format?
Sorry. The joy of password defaults is that I have to make them complicated.
WebFOCUS 7.6
Windows, All Outputs
April 11, 2013, 08:21 AM
DaveIan,
please check the help for functions.
You could use mod 10000 which will give you ( mathematically ) the last 4 digits.
you could also use EDIT etc.
_____________________
WF: 8.0.0.9 > going 8.2.0.5
April 19, 2013, 11:35 AM
noelmcavoyquote:
Not to make matters more complicated, but are you aware of how I could take the last four digits of a value (i.e. social security number) and use it in that same format?
Like Dave said, the EDIT function looks to be the answer to your problems. Check out the two links below, they discuss using EDIT for format conversion as well as for adding/extracting characters in a string.
Converting Extract/Add
WebFOCUS 8.1.0.5
Windows 10, all output