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: setText() for ISTextField is not displaying the value
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
‎Mar 09, 2006
11:15 PM
setText() for ISTextField is not displaying the value
Hello,
In a dialog, I wanted to get the value from a variable in VPD and display in a ISTextField control
My code looks something like this:
String var = context.getServices().getISDatabase().getVaraiableValue ("IS_VAR1");
ISTextField textField = arg0.getISPanel().getTextField ("fieldName");
textField.setText (var);
I tried having the above few lines in
enteredDIALOG ()
&
initializeUIDIALOG () as well.
But the value is not seen in the dialog.
Could someone confirm, what is going wrong and if I need to anything as well ?
Also, which is the correct event to use ? initializeUI or entered ?
Thanks in advance for the help.
In a dialog, I wanted to get the value from a variable in VPD and display in a ISTextField control
My code looks something like this:
String var = context.getServices().getISDatabase().getVaraiableValue ("IS_VAR1");
ISTextField textField = arg0.getISPanel().getTextField ("fieldName");
textField.setText (var);
I tried having the above few lines in
enteredDIALOG ()
&
initializeUIDIALOG () as well.
But the value is not seen in the dialog.
Could someone confirm, what is going wrong and if I need to anything as well ?
Also, which is the correct event to use ? initializeUI or entered ?
Thanks in advance for the help.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 10, 2006
12:57 PM
Try this in your initializeUI method:
cheers,
/gam/
String text = context.resolveString("$V(IS_VAR1)");
ISTextField textField = arg0.getISPanel().getTextField ("fieldName");
textField.setText (text);
cheers,
/gam/
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 20, 2006
07:06 AM
Your reply solved my problem. Thank You.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)