Ok, sorry for the cc to the list I forgot it :) I'll try that, your solution seems nice.
Thanks. Regards, ======================================== Date du message : juil. 26 2010, 03:01 PM De : "Jonathan CLARKE" <jonathan.cla...@normation.com> A : ivan.bet...@atosorigin.com Copie : "lsc-users [lsc-users]" <lsc-users@lists.lsc-project.org> Sujet : Re: [lsc-users] Help Please keep replies on the list - they may help others! On 26/07/2010 15:48, Ivan Betsch wrote: > Thanks a lot for your quick answer ! > > But, unfortunately that does help me so much. I would like to put this kinf > of function : > > var x, flag, Nbrc; > flag=0; > Nbrc=ValSearch.length+1; > > for (x=0;x<=DNSrc.length;x++){//parcour de la chaine > > //s'il trouve le caractère "," alors compare la chaine x+1 jusqu'a > x+(Nbrc+1) avec > ValSearch > if ((DNSrc.substring(x,x+1)==",")&&(flag==0)){ > switch (DNSrc.substring(x+1,x+Nbrc)){ > case "ValSearch": > DNSrc=DNSrc.substring(0,x+1)+DNRacine; > flag=1; > break;} > } > } > return DNSrc; > > Something more complicated than just one call to getAttributeValueById()... You can put this straight in the lsc.properties, so long as you use "\" at the end of each continuation line. See the example at the bottom of http://lsc-project.org/wiki/documentation/1.1/tutorials/synchronizegroups. > The example you gave to me is perfect > "lsc.syncoptions.task1.property.force_value = > myFct1() + myFct2() # OK" > > I HAVE to make it in Java in the source ? The function above looks like it's in JavaScript, in which case you don't need to put it in Java, no. Regards, Jonathan -- ========================================== Jonathan CLARKE ------------------------------------------ Normation 44 rue Cauchy, 94110 Arcueil, France ------------------------------------------ Telephone: +33 (0)1 83 62 26 96 ------------------------------------------ Web: http://www.normation.com/ ========================================== Ivan Betsch Consultant Atos Origin Metz Telephone : +33 (0) 6 76 72 23 76 www.atosorigin.fr _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list lsc-users@lists.lsc-project.org http://lists.lsc-project.org/listinfo/lsc-users