Adding multi select field to a UI page

samadam
Kilo Sage

I need to add a multi select field(which lists values from a table) to a UI page and based on the values populate list of records. How can I add the multi select?

1 ACCEPTED SOLUTION

Sagar Patro
Kilo Guru

Hey,

You can use g:ui_slushbucket

 

Here is a snippet on how you can use it:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
 
	<g:evaluate jelly="true">
   var v_user = new GlideRecord('sys_user');
       v_user.query();
</g:evaluate>
	<div>
<g:ui_slushbucket name="sb" left_header="Left Side" right_header="Right Side">
   <j:while test="${v_user.next()}">
   <option value="${v_user.sys_id}" title="${v_user.name}"> ${v_user.name} </option>
   </j:while>
</g:ui_slushbucket>
	</div>

	
</j:jelly>

 

Result:

find_real_file.png

 

Mark this as Helpful and Correct if it was.

View solution in original post

5 REPLIES 5

Sagar Patro
Kilo Guru

Hey,

You can use g:ui_slushbucket

 

Here is a snippet on how you can use it:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
 
	<g:evaluate jelly="true">
   var v_user = new GlideRecord('sys_user');
       v_user.query();
</g:evaluate>
	<div>
<g:ui_slushbucket name="sb" left_header="Left Side" right_header="Right Side">
   <j:while test="${v_user.next()}">
   <option value="${v_user.sys_id}" title="${v_user.name}"> ${v_user.name} </option>
   </j:while>
</g:ui_slushbucket>
	</div>

	
</j:jelly>

 

Result:

find_real_file.png

 

Mark this as Helpful and Correct if it was.