Trouble setting a default value to lightweight_glide_list2 macro

Jake-K
Tera Contributor

Hello,

 

I have a question regarding the use of the lightweight_glide_list2 macro on a UI Page. I'm using the macro to collect references from the sys_user table. When the Ui Page is opened, I want the macro to be prepopulated with a list of User sys_id's as defined by my array variable "${jvar_current_approvers}". Using the 'value' attribute, I get nothing. Am I setting the value incorrectly or is there another way to accomplish this? Perhaps the 'value' attribute is not the place for it, but I'm not sure what other options I have. If you have any information on this, it would be greatly appreciated! Here's the line of code initializing the macro:

<g:macro_invoke macro="lightweight_glide_list2 id="user_collector" name="user_collector" reference="sys_user" can_write="true" control_name="QUERY:active=true" value="${jvar_current_approvers}"/>

 

Thank you for your help and suggestions.

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Jake-K,

Change 'value' to list_data and pass in a comma-seperated string of SysIds.

<g:macro_invoke macro="lightweight_glide_list2 id="user_collector" name="user_collector" reference="sys_user" can_write="true" control_name="QUERY:active=true" list_data="${jvar_current_approvers}"/>

 

You can review this by opening the UI Macro sys_ui_macro.do?sys_id=47de235773d610104f274e3a4cf6a7ee where it lists the inputs it requires

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron

Hi Jake-K,

Change 'value' to list_data and pass in a comma-seperated string of SysIds.

<g:macro_invoke macro="lightweight_glide_list2 id="user_collector" name="user_collector" reference="sys_user" can_write="true" control_name="QUERY:active=true" list_data="${jvar_current_approvers}"/>

 

You can review this by opening the UI Macro sys_ui_macro.do?sys_id=47de235773d610104f274e3a4cf6a7ee where it lists the inputs it requires

Jake-K
Tera Contributor

Works like a charm--thank you greatly!