UI Page using lightweight_glide_list2

Ben G
Tera Contributor

Hello,

I have a UI page that uses the macro "lightweight_glide_list2" (see below). I need to filter the list by adding the query to the control_name however when I do that I can't call the macro in the Processing Script.  If I change the control_name to something like "resourceGroup" obviously I cannot filter out all the records I don't want to see but the Processing Script works. Thoughts?  Thanks for any assistance! 

 

<g:macro_invoke macro= "lightweight_glide_list2" control_name="QUERY:active=true^type=de35bd97db9427000ff3fb131d961958^name!=PMO^ORname=NULL^name!=PMO Management^ORname=NULL" id="u_name" list_data ="${jvar_answer}" reference="sys_user_group" style="width:100%" can_write="true" />
2 REPLIES 2

Ben G
Tera Contributor

I found my answer in another post.  I had to modify the macro to include "query".

Suwarna Ghate
Tera Contributor

Hi,

You can get sys_ids of selected records by using below code in client script.

 

var grList = gel("select_0QUERY:active=true^type=de35bd97db9427000ff3fb131d961958^name!=PMO^ORname=NULL^name!=PMO Management^ORname=NULL");

var grListOptions = Array.from(grList);

if(grListOptions.length){
alert(grListOptions[0].value);
}