Micro Focus Contributor
Micro Focus Contributor
1242 views

Customize fields of SSPR Activate User Form with javascript

Hi

I´m configuring User Activation module in SSPR 3.2. In the active user form I have the following fields:

givenName
FirstLastName
SecondLastName
Birthdate
ContractStartDate

Birthdate and ContractStartDate are date fields. When I set a value in those fields in the log appears in yyyy-mm-dd format. But in edirectory the format is dd/mm/yyyy.

For that reason when the SSPR performs the LDAP Activation Search Filter, the user doesn´t match.

Each field has options, include Javascript (I don´t really know what can I do with this option!!!). I need to know if it´s possible make a conversion or a processing over these data.

I put the following code in the javascript option of the Birthdate field:

var datebirth = %BirthDate%;
var year=datebirth.subtring(0,4);
var month=datebirth.subtring(5,7);
var day=datebirth.subtring(8,10);
var date=day+"/"+month+"/"+year;
return date;

But nothing happen.

Any idea?

Thanks in advance 🙂
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Customize fields of SSPR Activate User Form with javascript

Aortizmicrofocus,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit http://www.netiq.com/support and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.netiq.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.netiq.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.netiq.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your NetIQ Forums Team
http://forums.netiq.com


0 Likes
rhettplace Absent Member.
Absent Member.

Re: Customize fields of SSPR Activate User Form with javascript


@aortizmicrofocus - Did you ever get any further information on this?
The SSPR config seems to have a lot of options but I have yet to find
any detailed documentation on how to use about 90% of it.


--
rhettplace
------------------------------------------------------------------------
rhettplace's Profile: https://forums.netiq.com/member.php?userid=876
View this thread: https://forums.netiq.com/showthread.php?t=55819

0 Likes
jlrodriguez Super Contributor.
Super Contributor.

Re: Customize fields of SSPR Activate User Form with javascr

It's a shame. A fantastic product but lacking documentation!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.