cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
james_decosta
Level 9

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]
Labels (1)
0 Kudos
(2) Replies
pv7721
Level 20

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...
0 Kudos
purcellk24
Level 7

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$
0 Kudos