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
- :
- can i write this in the install() method of customcodeaction class
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 17, 2008
08:54 AM
can i write this in the install() method of customcodeaction class
hi,
can anyone suggest me where i am going wrong because :
import com.zerog.ia.api.pub.CustomCodeAction;
import com.zerog.ia.api.pub.InstallException;
import com.zerog.ia.api.pub.InstallerProxy;
import com.zerog.ia.api.pub.UninstallerProxy;
public class ROCustomization extends CustomCodeAction {
@Override
public String getInstallStatusMessage() {
// TODO Auto-generated method stub
return null;
}
@Override
public String getUninstallStatusMessage() {
// TODO Auto-generated method stub
return null;
}
@Override
public void install(InstallerProxy ip) throws InstallException {
String installValue=ip.substitute("$USER_INPUT_RESULT_75$");
System.out.println("xxxxxxxxxxxxxxxxxx"+"it has reached till the install method"+installValue);
String temp=new String();
System.out.println("it is going to be hit here");
for(int i=0;i temp+=installValue.charAt(i);
if(installValue.charAt(i)=='\\')
{
temp+="\\";
}
}
installValue=temp;
System.out.println("temp valuexxxxxxxxxx"+installValue);
ip.setVariable("$SOME_OTHER_VARIABLE$",installValue);
}
@Override
public void uninstall(UninstallerProxy arg0) throws InstallException {
// TODO Auto-generated method stub
}
}
but my problem is it is not printing the installvalue,that means
String installValue=ip.substitute("$USER_INPUT_RESULT_75$");
But it should substitute the variable(USER_INPUT_RESULT_75) which i am asking in the user input panel
Is this wrong?????????????
Any suggestions are eagerly awaited[FONT="Arial Black"][/FONT]
can anyone suggest me where i am going wrong because :
import com.zerog.ia.api.pub.CustomCodeAction;
import com.zerog.ia.api.pub.InstallException;
import com.zerog.ia.api.pub.InstallerProxy;
import com.zerog.ia.api.pub.UninstallerProxy;
public class ROCustomization extends CustomCodeAction {
@Override
public String getInstallStatusMessage() {
// TODO Auto-generated method stub
return null;
}
@Override
public String getUninstallStatusMessage() {
// TODO Auto-generated method stub
return null;
}
@Override
public void install(InstallerProxy ip) throws InstallException {
String installValue=ip.substitute("$USER_INPUT_RESULT_75$");
System.out.println("xxxxxxxxxxxxxxxxxx"+"it has reached till the install method"+installValue);
String temp=new String();
System.out.println("it is going to be hit here");
for(int i=0;i
if(installValue.charAt(i)=='\\')
{
temp+="\\";
}
}
installValue=temp;
System.out.println("temp valuexxxxxxxxxx"+installValue);
ip.setVariable("$SOME_OTHER_VARIABLE$",installValue);
}
@Override
public void uninstall(UninstallerProxy arg0) throws InstallException {
// TODO Auto-generated method stub
}
}
but my problem is it is not printing the installvalue,that means
String installValue=ip.substitute("$USER_INPUT_RESULT_75$");
But it should substitute the variable(USER_INPUT_RESULT_75) which i am asking in the user input panel
Is this wrong?????????????
Any suggestions are eagerly awaited[FONT="Arial Black"][/FONT]
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 17, 2008
09:03 AM
It all depends on the value of $USER_INPUT_RESULT_75$, if the value of this IA variable is null when your custom code is called...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 17, 2008
09:27 AM
I would also suggest changing the names of the variables to something meaningful. It would help track down any problems you may have.
So, instead of using $USER_INPUT_RESULTS_75$ use $SOMETHING_MEANINGFUL$
So, instead of using $USER_INPUT_RESULTS_75$ use $SOMETHING_MEANINGFUL$