Reference qualifier in lightweight glide list

vijju
Kilo Explorer

I want to add reference qualifier in lightweight glide list for macro with label variabletype. can some one help me on this!

<?xml version="1.0" encoding="utf-8" ?>

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<tr>

<td width="10%" style="color:black;" align="right" background="gray"></td>

<td width="40%">

<g:macro_invoke macro= "lightweight_glide_list1" id="ApplicationRoles_id" name="Application_roles_name" reference="u_iam_application_roles" can_write="true" control_name="Application_roles_list" list_data="${jvar_change_subsystem}"/> </td></tr>

</j:jelly>

Reference qualifier.PNG

Based on the application field name(ex-servicenow),field Roles to be added should filter the roles which are associated with servicenow application name should appear and above is the UI macro code which is used for the roles to be added field with type macro with label.

Need a code for reference qualifier to filter our the roles depending on the application name.

6 REPLIES 6

Abinash
Kilo Contributor

Hi,

were u able to get any solution on this...

You can't pass the reference qualifier and actually access the list afterward. You can do one or the other if you use the OOTB macro.

Make your own copy of the lightweight_glide_list and modify the "onclick="reflistOpen" line to the following:

onclick="reflistOpen( '${jvar_control_name_actual}', 'not', '${jvar_reference}', null, null, null,'${jvar_ref_qual_elements}');mousePositionSave(event);"

 

Then when you assign the reference qualifier normally it will pick it up.

i.e. now

<j:set var="jvar_ref_qual_elements" value="QUERY:someENCODEDQUERY" />

will work in the normal list and the click to open list. 

 

I used like this:

<j:set var="jvar_ref_qual_elements" value="QUERY:active=true^typeLIKE74af88.................853d" />

It's filtering second part correctly but active=true is not filtering.

Any idea?

Thank you.

abrouf

I have changed to above method but lookup it's not working.