on 08-25-2009 8:20 AM
Hi Experts,
I have written foliowing program. There are many Processing_Status_Name. For three statue, the following if statement will do the needful. Now for all other status (other than Approved, Released for approval and Travel Cancellation Request was sent for approval I have to execute other "do.. " statement.
How I can write Java program for this purpose.
Regards,
if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Approved")){
do...
}
if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Released for approval")){
do...
}
if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Travel Cancellation Request was sent for approval")){
do...
}
Hi,
Here you go :
if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Approved")){
do...
} else if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Released for approval")){
do...
} else if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Travel Cancellation Request was sent for approval")){
do...
} else {
do...
}
Regards,
Pierre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.