View Full Version : To get value from Password field

07-21-2004, 12:06 PM
I have created a two dialog box the first dialog has a password field and the second dialog box has a text filed which displays the password entered in previous dialog. I created a variable "varPassword" in Property Manager and on queryExitDialog method I have set the value using

ISPasswordControl pwd = (ISPasswordControl)arg0.getISPanel().getControl("DBPassword");
String password = pwd.getText();
arg0.getServices().getISDatabase().setVariableValue("varPassword", password);

and in the second dialog I have set the Variable property of the textfiled as $V(varPassword).

But when I run the application I'm getting blank string in the second dialog. Please tell me how get the password value from the custom dialog.

07-21-2004, 06:38 PM
The Variable property of the textfield should simply be varPassword.

07-22-2004, 04:07 AM
It's working fine... Thanx for the help.