PDA

View Full Version : unable to get the value of password feild



spuranik
07-21-2004, 06:54 AM
i have created a custom dialog box. and i have added a password box in the dialog also created a customised action class which makes the database connection but i am not able to get the value of the password feild in the action class,
how to get this value.

please send the snippet that will be helpful.

brianl
07-21-2004, 07:05 PM
In the queryExit event for your panel:



ISPasswordControl pwdCtrl =
(ISPasswordControl)context.getISPanel().getControl(PASSWORD_CTRL_ID);

String plainPassword = pwdCtrl.getText();
context.getServices().getISDatabase().setVariableValue(
"PLAIN_PASSWORD", plainPassword);


Your wizard action can retrieve the variable value with resolveString("$V(PLAIN_PASSWORD)").

darkestsky
10-14-2004, 03:49 PM
I am trying the code for same purpose, I am getting error on ISPasswordControl and context, is there any import to be incuded for them?