hi,

i have an error with your script :

"Il manque '';'' après l''initialiseur for-loop"

why ?


2012/11/20 Maxime Pelletier <[email protected]>

> Give a try with this:
>
> =======================
> var attrList="";
> var separator="";
> for (var i=0; i &lt;
> srcBean.getAttributevaluesbyid("ATTRIBUTENAME").size(); i++) {
>     attrList = attrList + separator +
> srcBean.getAttributeValuesById("ATTRIBUTENAME").get(i);
>     separator=",";
> }
> attrList;
> =======================
>
> Regards
> markham89 <[email protected]> a &eacute;crit :
>
> > Thx ,
> >
> > i'm not a javascript expert can you post a sample code
> > Please.
> >
> > Thx
> >
> >
> >
> > Le 20/11/12 18:45, « Clément OUDOT » <[email protected]> a écrit :
> >
> >> 2012/11/20 markham89 <[email protected]>:
> >>> Hi,
> >>>
> >>> I use lsc 1.20
> >>>
> >>> My synchro work like a charm with mono value attribute but now
> >>>
> >>> I have an openldap with multi-value attribute like this :
> >>>
> >>> cn:riri
> >>> sn:fifi
> >>> attribute1 : toto
> >>> attribute1: tata
> >>> attribute1:titi
> >>> Š.
> >>>
> >>> And I want an active directory result like this :
> >>>
> >>> cn:riri
> >>> sn:fifi
> >>> attributead: toto,tata,titiŠ
> >>>
> >>> How did you that ?
> >>>
> >>> getAttributevaluebyid (id), take juste the forst attribute
> >>> getAttributevaluesbyid (id) make an error (my active directory
> attribute
> >>> doesn't work with multi-value)
> >>>
> >>
> >> use getAttributeValuesbyid (id) to get an array, then browse your
> >> array an concat values. This should be easy in javascript.
> >>
> >>
> >> And you really should upgrade to LSC 2.0.
> >>
> >> Clément.
> >
> >
> > _______________________________________________________________
> > Ldap Synchronization Connector (LSC) - http://lsc-project.org
> >
> > lsc-users mailing list
> > [email protected]
> > http://lists.lsc-project.org/listinfo/lsc-users
> >
>
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
>
_______________________________________________________________
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