How to populate a field with type List with values

Alon Grod
Tera Expert

Hi,

I have the field u_my_groups of type LIst with a reference to sys_user_group table. How can I populate this field with the groups of the current login user. I tried to put in the Default: javascript: gs.getUser().getMyGroups().toString(); 

but it didnt work.

Screenshot 2023-08-11 at 10.19.53.png

1 ACCEPTED SOLUTION

@Alon Grod Let me know if you need any help !

if not please close the question by marking the appropriate answer as correct so that it ends up in solved queue

View solution in original post

5 REPLIES 5

roconmachine
Tera Contributor

Following ... I have the same problem. 

Mohith Devatte
Tera Sage
Tera Sage

Hello @Alon Grod , 

Can you try putting this in reference qualifier.

May be call a script include in your reference qualifier and then in your script include it can be like 

return gs.getUser().getMyGroups().toString();

 

you can call a script include like below 

javascript:new your_newScript_include_name().your_function_name();

 

Hope this helps 

Mark my answer correct if this helps you 

Thanks 

 

 

@Mohith Devatte but it will just return the values and user will be needed to choose the values, my goal is to display the values without giving the user to choose. Can you plesae help

@Alon Grod Make the field read only so that they will not be able to select any thing