Anonymous_User Absent Member.
Absent Member.
366 views

Pass dynamic attribute


Hi,
I have an application which Login Page has 3 fields:
User Id
Password
Language
I’ve created the JSP login page with the same fields and it works great
logging in the user to the application but the problem is the language.
I would like to pass the value the user selected for the Language to the
application login form but I haven’t been able to do it. It seems NAM
doesn’t care what other fields I put in the JSP, if I don’t have them in
the form fill policy.
Language is not an attributed contained in the eDirectory. It should be
something dynamic, that the user selects every time he is going to
login.
I’ll appreciate any suggestion.
Thanks


--
wpizan
------------------------------------------------------------------------
wpizan's Profile: https://forums.netiq.com/member.php?userid=936
View this thread: https://forums.netiq.com/showthread.php?t=46096

0 Likes
5 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Pass dynamic attribute

Is that contained within a Javascript method? If so you might be able to
specify that method to be kept in the FormFill which would then retain
the user selected value.

Jared

On 11/6/12 3:34 PM, wpizan wrote:
>
> Hi,
> I have an application which Login Page has 3 fields:
> User Id
> Password
> Language
> I�ve created the JSP login page with the same fields and it works great
> logging in the user to the application but the problem is the language.
> I would like to pass the value the user selected for the Language to the
> application login form but I haven�t been able to do it. It seems NAM
> doesn�t care what other fields I put in the JSP, if I don�t have them in
> the form fill policy.
> Language is not an attributed contained in the eDirectory. It should be
> something dynamic, that the user selects every time he is going to
> login.
> I�ll appreciate any suggestion.
> Thanks
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Pass dynamic attribute


Hi Jared,
In the target login page we have a JavaScript function that based on the
language selected in the dropdown list, it sets some input controls. So
form that point of view, yes, the value is contained within a JavaScript
method.
Now, in the NAM JSP (Custom Login page) page should we have the same
function? How can NAM pass the value from one JavaScript function to the
other one?

Thanks


--
wpizan
------------------------------------------------------------------------
wpizan's Profile: https://forums.netiq.com/member.php?userid=936
View this thread: https://forums.netiq.com/showthread.php?t=46096

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Pass dynamic attribute

Now that I think about this more, how are you going to prompt the user
for the language if you are using formfill (unless you turn off
autosubmit)? Unless you are talking about two pages?

What if you write a javascript function that detects the Browsers
language and sets the language value dynamically? This would mean that
the user wouldn't get the chance to select their desired language, but
usually users have their browser to to whatever preferred language they
want. Since FormFill does actually make it to the users browser, then a
javascript function would be able to do this.

Jared
Engineer IV at Novacoast
About Me: http://jaredjennings.org

On 11/7/12 11:04 AM, wpizan wrote:
>
> Hi Jared,
> In the target login page we have a JavaScript function that based on the
> language selected in the dropdown list, it sets some input controls. So
> form that point of view, yes, the value is contained within a JavaScript
> method.
> Now, in the NAM JSP (Custom Login page) page should we have the same
> function? How can NAM pass the value from one JavaScript function to the
> other one?
>
> Thanks
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Pass dynamic attribute


wpizan;221842 Wrote:
> Hi Jared,
> In the target login page we have a JavaScript function that based on the
> language selected in the dropdown list, it sets some input controls. So
> form that point of view, yes, the value is contained within a JavaScript
> method.
> Now, in the NAM JSP (Custom Login page) page should we have the same
> function? How can NAM pass the value from one JavaScript function to the
> other one?
>
> Thanks


In the form fill options, you can add additional javascript to process.
It's that text field at the bottom. Just copy and paste the code, or if
it's a lot of code, just reference the file. How are you planning on
getting the values from javascript? Are you going to use cookies, query
strings, or are you going to turn off autosubmit and have them select
the value at the login page?


--
MatthewEhle
------------------------------------------------------------------------
MatthewEhle's Profile: https://forums.netiq.com/member.php?userid=4
View this thread: https://forums.netiq.com/showthread.php?t=46096

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Pass dynamic attribute


Hi
We decided to handle it with cookies and query strings for now but I
need look another way to pass the language to the application.

Thanks a lot


--
wpizan
------------------------------------------------------------------------
wpizan's Profile: https://forums.netiq.com/member.php?userid=936
View this thread: https://forums.netiq.com/showthread.php?t=46096

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.