This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Retrieving password entered on a dialog
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 18, 2007
03:16 PM
Retrieving password entered on a dialog
I have created a dialog which asks for user / password information. Based on the instructions in the Help, I have the following code in the SwingEvents tab for the dialog --
public void queryExitISCUserCredentialsDialog(com.installshield.event.ui.ISDialogQueryContext arg0) {
ISPasswordControl pwc = (ISPasswordControl)arg0.getISPanel().getControl("ISCPasswordControlDef");
try{
arg0.getServices().getISDatabase().setVariableValue("ISC_PASSWORD", pwc.getText());
} catch (Throwable e){
e.printStackTrace();
}
}
For some reason, this dialog doesnt get displayed. Is there anything obvious I am missing? Thx.
public void queryExitISCUserCredentialsDialog(com.installshield.event.ui.ISDialogQueryContext arg0) {
ISPasswordControl pwc = (ISPasswordControl)arg0.getISPanel().getControl("ISCPasswordControlDef");
try{
arg0.getServices().getISDatabase().setVariableValue("ISC_PASSWORD", pwc.getText());
} catch (Throwable e){
e.printStackTrace();
}
}
For some reason, this dialog doesnt get displayed. Is there anything obvious I am missing? Thx.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 23, 2007
10:19 AM
Try this:
ISPasswordControl PasswdCtrl = (ISPasswordControl)arg0.getISPanel().getControl("HostPasswd");
String Password = PasswdCtrl.getText();
ISPasswordControl PasswdCtrl = (ISPasswordControl)arg0.getISPanel().getControl("HostPasswd");
String Password = PasswdCtrl.getText();
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)