On 09.07.2012 11:26, ayeungied wrote:
> I am using IDM 4.01a.
>
> I use the Telephone Number in iManager to input the user name, say ,
> Faibroth Gregory John.
> I have to feed the string to otherPager of AD attribute,
> The expected output is
>
> faibroth
> gregory
> john
>
> I've have done for the for each loop to write it to the otherPager
> (multivalued attribute) but have no idea how to change the 1st letter
> from capital to small letter.
>
> <do-for-each>
> <arg-node-set>
> <token-split delimiter=" ">
> <token-src-attr name="Telephone Number"/>
> </token-split>
> </arg-node-set>
> <arg-actions>
> <do-add-dest-attr-value name="otherPager" when="after">
> <arg-value type="string">
> <token-local-variable name="current-node"/>
> </arg-value>
> </do-add-dest-attr-value>
> </arg-actions>
> </do-for-each>
>


Try the following:

<do-for-each>
<arg-node-set>
<token-split delimiter=" ">
<token-src-attr name="Telephone Number"/>
</token-split>
</arg-node-set>
<arg-actions>
<do-add-dest-attr-value name="otherPager" when="after">
<arg-value type="string">
<token-upper-case>
<token-substring length="1" start="0">
<token-local-variable name="current-node"/>
</token-substring>
</token-upper-case>
<token-lower-case>
<token-substring length="-1" start="1">
<token-local-variable name="current-node"/>
</token-substring>
</token-lower-case>
</arg-value>
</do-add-dest-attr-value>
</arg-actions>
</do-for-each>