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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Getting Selected value through Custom Code as plugin
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
‎Jun 04, 2014
01:16 AM
Getting Selected value through Custom Code as plugin
Hi,
I have created an panel with a text box by extending the CustomCodePanel of installanywhere. How can i get the value provided by the end-user in the text box. Whether i need to use the installanywhere variables to store the value.
To get the values provided in the user-input panel, we have result variables. Like the same, need to get the values provided in the customized panel. Here if it get stored in a result variables, give me an idea to get the stored value.
Note: Purpose to get the value is to store in a text file under USER_INSTALL_DIR.
I have created an panel with a text box by extending the CustomCodePanel of installanywhere. How can i get the value provided by the end-user in the text box. Whether i need to use the installanywhere variables to store the value.
To get the values provided in the user-input panel, we have result variables. Like the same, need to get the values provided in the customized panel. Here if it get stored in a result variables, give me an idea to get the stored value.
Note: Purpose to get the value is to store in a text file under USER_INSTALL_DIR.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 09, 2014
04:46 PM
You return the result of you custom code using the setVariable method of the proxy instance you are provided by the IA invoker. If we are talking about a panel, if you want the answer recorded in the response file for silent install you need to get an instance of the ReplayService from the proxy object also.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2014
06:28 AM
NigelM wrote:
You return the result of you custom code using the setVariable method of the proxy instance you are provided by the IA invoker. If we are talking about a panel, if you want the answer recorded in the response file for silent install you need to get an instance of the ReplayService from the proxy object also.
As you suggessted i used the ReplayVariableService's register method, in this i can get only the variable in the install log. How can i get the data provided in the text box, created using custom code.
The code snippet of ReplayVariableService is mentioned here.
ccpp.setVariable((String)ccpp.getVariable("$GIVEN_UNAME_VARIABLE$"), jtf.getText());
rpvs.register("$GIVEN_UNAME_VARIABLE$","Value from Custom :");
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 12, 2014
03:17 PM
When you register a variable using the replay service you do not surround it with dollar signs, you just use the raw name. That is why you had no value as it was assuming the variable name included dollar signs and no variable with that name existed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 12, 2014
03:19 PM
NigelM wrote:
When you register a variable using the replay service you do not surround it with dollar signs, you just use the raw name. That is why you had no value as it was assuming the variable name included dollar signs and no variable with that name existed.
When you register a variable using the replay service you do not surround it with dollar signs, you just use the raw name. That is why you had no value as it was assuming the variable name included dollar signs and no variable with that name existed.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)