If you think that the problem comes from a conflict between the nature
of st and the evaluation made in the switch / case structure, you can
test it doing the corresponding if condition : if(st.equals(""))



Le 12/10/2012 17:37, Emmanuel Lesouef a écrit :
> Le Fri, 12 Oct 2012 17:34:20 +0200,
> David Coutadeur <[email protected]> a écrit :
> 
>>
>> Hi Emmanuel,
>>
>> I think you should try with double-quotes, and you should also
>> consider using another variable for your final string, like newSt, so
>> there is no confusion between them.
>>
>> Something like this :
>>
>>  <string><![CDATA[
>>    var st = java.lang.String(srcBean.getDatasetFirstValueById("st"));
>>    var newSt = "";
>>      switch (st) {
>>                  case "61":
>>                          newSt = java.lang.String("Orne");
>>                          break;
>>                  case "50":
>>                          newSt = java.lang.String("Manche");
>>                          break;
>>                  default:
>>                          newSt = java.lang.String("Calvados");
>>                          break;
>>                  }
>>                  newSt
>>  ]]></string>
>>
>>
>> David
>>
> 
> Thanks for the tip, David,
> 
> It doesn't display errors but doesn't try to modify the values
> neither...
> 
> 

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to