Java - Button Actions on Form --Please help
I am creating a new class to forward a request to another group. I don't want to test this condition. I just want it to go to that employee that is in that group. How do I specify that in my code.
this.group == "BOGROUP"
this.em_id == assignee
public Forward(EventHandlerContext context, String activity_id, int id, String stepName,
String assignee, String role) {
super(context, activity_id, id, STEP_TYPE, stepName);
Re: Java - Button Actions on Form --Please help
I have no idea what you're actually asking. What exactly are you trying to do?
Re: Java - Button Actions on Form --Please help
I am trying to forward a form to another group. Instead of me testing with an IF statement I only want this forward to go to the employee that are assigned to a specific group. The group names are already defined in the system that is why I am using 'this'. How to I state this in my code without using variables? Below is what the beginning of my code looks like:
Code Java:
public Forward(EventHandlerContext context, String activity_id, int id, String stepName,
String assignee, String role) {
super(context, activity_id, id, STEP_TYPE, stepName);
this.group == "BOGROUP"
this.em_id == assignee
Re: Java - Button Actions on Form --Please help
Sorry Cami7 but after reading both posts, I am also confused.
Can you post more code. We need to get a better idea of what you are trying to do.
Re: Java - Button Actions on Form --Please help
Show us the way you don't want to do it, and tell us why you don't want to do it that way.
Re: Java - Button Actions on Form --Please help
tHIS IS THE WAY I DON'T WANT IT DONE. INSTEAD OF SENDING REQUESTS TO SELECTED PEOPLE I WANT TO SEND DIRECTELY TO THE EMPLOYEES THAT ARE IN A CERTAIN GROUP. -->EM_ID , GROUPHOLLAND I am getting a js engine error and the error when clicked is 'undefined'.
public MORE(EventHandlerContext context, String activity_id, int id, String stepName,
String assignee) {
super(context, activity_id, id, STEP_TYPE, stepName);
if (stepName.equals(STEP_FORWARD_PERSON)) {
this.PERSON= assignee;
} else if (stepName.equals(STEP_FORWARD_PERSON2)) {
this.PERSON2 = assignee;
} else if (stepName.equals(STEP_FORWARD_PERSON3)){
this.PERSON3_id = assignee;
} else {
this.em_id = assignee; }
}
Re: Java - Button Actions on Form --Please help
Wait, are you talking about Java or javascript? They are not the same. This is a Java forum.
Re: Java - Button Actions on Form --Please help
I am talking about java. The code I submittd in a public class being called by my HTML view.