amitsdotcom
29th December 2010, 15:53
Hello friends,

I am trying to use the function inputfield.password but am not able to get to acheive the results.

I have created a form field with domain as tcmcs.str30 on a session and whenever a user enters any value I want to display the "*" character instead of actual character like it does in a password field.

I have used this function like below...

before.program:
inputfield.password("pass")

But despite this it displays the actual characters and not the mask of "*"

Please assist....

mark_h
30th December 2010, 18:04
Post the code - I took a sample program where I have a field declared as tcmcs.string 60. I stuck in inputfield.password("input.file") in the before program and it worked just fine.
How did you declare pass?

amitsdotcom
1st January 2011, 07:01
Infact the field "pass" is just a form field and not a table field. I have declared the variable "pass" as

extern domain tcmcs.str30 pass

And this is a field on session wherein I will be comparig the password from the program script, meaning i am not storing the password it will be hard coded in the script itself...

bdittmar
1st January 2011, 12:29
Infact the field "pass" is just a form field and not a table field. I have declared the variable "pass" as

extern domain tcmcs.str30 pass

And this is a field on session wherein I will be comparig the password from the program script, meaning i am not storing the password it will be hard coded in the script itself...

Hello,
from PG:

void
inputfield.invisible ( string field_name(18) [, string field_name(18)]... )

void
inputfield.password ( string field_name(18) [, string field_name(18)]... )

void
inputfield.visible ( string field_name(18) [, string field_name(18)]... )


Regards

mark_h
3rd January 2011, 17:18
Infact the field "pass" is just a form field and not a table field. I have declared the variable "pass" as

extern domain tcmcs.str30 pass

And this is a field on session wherein I will be comparig the password from the program script, meaning i am not storing the password it will be hard coded in the script itself...

I am on 4c4 and that is basically what I did. I just took a form field and used the inputfield.password. I wonder if "pass" could be a reserved word or something. Just a guess. Not sure why it would not work.