How do I get List values using Script Include

SD4
Tera Contributor

I have a table that contains a List field with multiple values

find_real_file.png

How do I get those values from that field using script include

 find_real_file.png

 

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

Instead of getDisplayValue() use IncludeList.push(member.u_member.toString());

 

Also it would be helpful if you can share some background and information about which table store what.

 

Thanks,
Anil Lnade

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

15 REPLIES 15

If you are getting it as true then comment that line or use 

gs.log(member.hasNext(),'t or f');

 

using member.next() in log was skipping the record in while loop and you get nothing when only one record is there is that table for matching condition.

 

Tahnks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Sorry to say but I cannot imagine beyond this. It would be helpful if you share more information about your table and what you want.

Please explain what you want with an example.

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

SD4
Tera Contributor

Actually, I have a catalog variable that refers to a table field value(Email).

2. Depending on that email I want to get the corresponding member related to that email 

3. want to set those members in a list collector variable.

 

Hi,

Please update the line like below, no need to use getDiaplyValue();

IncludeList.push(member.u_member.toString());

 

I hope you are getting the email id in first log.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

SD4
Tera Contributor

used IncludeList.push(member.u_member.toString()) but same showing..

yes getting email as a string