Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Register User Form

Huddos
Regular Contributor
Regular Contributor

Hi,

I'm trying to concatenate the LastName FirstName attributes to a displayname attribute in the Register User Form so when the FirstName and LastName are entered the displayname is automatically generated. LastName and FirstName are strings, with Parent change action of mapping. The displayname is SQL ENUM with the value and default value "select concat(${LastName},${FirstName}) as ID". The parent attribute of the displayname is LastName with Parent change action of mapping. I have also tried combinations of Parent change action of Refresh. 

TIA

Edit: Its now working to a degree, for some reason when I enter details in a attribute not related (manager) to the above 3 fields it will generate a display name. I have to click on the displayname for it to generate though and any changes after that to the lastname firstname are not reflected in displayname unless I click back on the unrelated attribute and update and then click on display name again. Strange behavior.

[This post has been edited by a Moderator to merge two posts.]

12 REPLIES 12

Raghu
All-Star
All-Star

please share attributes SS issue related


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Huddos
Regular Contributor
Regular Contributor

Hi Raghu,

If I make any change to FirstName or LastName I have to then reselect a user in lineLeader which will then update details in displayname attribute. Is the select displayname as ID ... in lineLeader query conflicting with the display name attribute??

See attachments.


Thanks

 

1.First and last name changes Refrsh to Mapping

2.lastname and manager order index looks like same, change  and test will see


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Huddos
Regular Contributor
Regular Contributor

Hi Raghu

I have tried Mapping before, tried gain and the same issue and also adjusted index so no conflicts even though they are separate attribute groups. Does anything need to be populated in the action strings? thanks

PremMahadikar
All-Star
All-Star

Hi @Huddos ,

The reason of this issue is because you are using Attribute Type -String for both firstname and lastname. The behavior explained in original request is an expected behavior.

Also, for the question:  "Is the select displayname as ID ... in lineLeader query conflicting with the display name attribute??" No, it's not. If you notice, a small refresh of page is required for displayname to pop-up the displayname - concat(firstname,lastname). This can be done by any DA, not just by lineLeader.

Below is how we can achieve it: (Working solution)

Create another dynamic attribute:

Label: Generate Display Name
Attribute Type: Single select SQL query
Value: select 'Yes' as ID union select 'Regenerate Display Name Change' as ID

PremMahadikar_0-1711400445471.png

Final step is to add this new DA 'generate' in 'displayname' DA under 'Parent Attribute'

PremMahadikar_1-1711400840947.png

1. For the first time, when you update firstname and lastname - click 'Yes' under Generate Display Name - this would generate displayname

2. If you again want to update firstname and lastname before submitting, which should also re-generate displayname - Click on Regenerate Display Name Change - this will re-generate displayname

 

If this answers your question, please consider selecting Accept As Solutions and hit Kudos

Huddos
Regular Contributor
Regular Contributor

Thanks Prem, I have a working solution, many thanks

Hi,

Can make this "generate" to be "auto" trigger via default=yes?
Means when user key in first name and last name, this generate will auto triggered

Regards

trivi
New Contributor III
New Contributor III

Hi am also having the same issue.However we tried to implement the above solution but its not working. What would be the value and attribute type for displayname in the above solution format.

 

 

Huddos
Regular Contributor
Regular Contributor

Hi Trivi

Attribute Name: displayname

Attribute Label: Display Name

Attribute Type: Single Select From SQL Query

Value: select concat(${LastName}," ",${FirstName}) as ID

User Column: displayname 

Parent Attribute: generate

What action to perform when Parent attributes changes: Mapping

Good Luck

 

PremMahadikar
All-Star
All-Star

Hi @trivi ,

Please create a new ticket on the same.

yogesh2
Regular Contributor II
Regular Contributor II

Saviynt really needs to work on their forms. This is not at all a clean approach but a bodge. Ideally text field changes should be able to trigger changes in dependant fields.

Here's an idea I created long back because how frustrated I got while working on a fairly complex form for a customer having multiple business use cases.

https://ideas.saviynt.com/ideas/EIC-I-3764

Huddos
Regular Contributor
Regular Contributor

Hi Yogesh2, thanks for the link, yes, these forms need some work.