Hello,
I've got the following function with the help of previous post which
return a multivalue attribute I used in create-entity activity:

function list() {
v=new java.util.Vector();
var roomsA=flowdata.getObject('start/CreatUser/BatA');
var roomsB=flowdata.getObject('start/CreatUser/BatB);
for(var x=0;x<roomsA.size();x++) {
v.add(roomsA.get(x).getFirstChild().getNodeValue() );
}
for(var x=0;x<roomsB.size();x++) {
v.add(roomsB.get(x).getFirstChild().getNodeValue() );
}
return v;
}

list();

After the create-entity, I would like to send an email with the list of
these values and I use the same function to populate the content of the
email template.

The problem is that the list of values is displayed (in the email text)
on the same line and I would like to insert a CR/LF after each value:

Mail example:
SensitiveZone1:
[cn=room1,o=rooms,cn=room2,o=rooms]

SensitiveZone2:
[cn=room3,o=rooms,cn=room4,o=rooms]

I would like to have:
SensitiveZone1:
cn=room1,o=rooms
cn=room2,o=rooms
SensitiveZone2:
cn=room3,o=rooms
cn=room4,o=rooms

I tried to insert the function .fromCharCode(13) in the previous
function but it doesn't help. (I don't see exactly where each value is
returned)

Thanks for your help.

Sylvain


--
sma
------------------------------------------------------------------------
sma's Profile: https://forums.netiq.com/member.php?userid=174
View this thread: https://forums.netiq.com/showthread.php?t=54783