Issue with lightweight_glide_list

Dante Ditan
Kilo Sage

Hi,

 

I have a formatter that includes a ui macro and added it on the csm form.

In my UI macro I'm calling the lightweight_glide_list twice with different table,id,name and control_name but when I load the page the other glide list is expanded.

 

find_real_file.png

 

Code:

<td>
<g:macro_invoke macro="lightweight_glide_list" id="csm_component_0" name="csm_component_0" control_name="issueListCol" reference="sn_customerservice_component_issue" can_write="true" />
</td>
<td>
<g:macro_invoke macro="lightweight_glide_list" id="csm_component_issue_0" name="csm_component_issue_0" control_name="issueTypeListCol" reference="sn_customerservice_component_issue_type" can_write="true" />
</td>

 

 

1 ACCEPTED SOLUTION

Hi Dante,

 

There was a bug in renderonload function.

Use the below call,

lock(ul,'${jvar_control_name}','${jvar_control_name}_edit','${jvar_control_name}_nonedit', 'select_0${jvar_control_name_actual}', '${jvar_control_name}_nonedit');

 

Here the 5th parameter was 'select_0${jvar_control_name}' which must be changed to 'select_0${jvar_control_name_actual}'

 

This works fine. Let me know if any doubts.

 

Regards,

Suraj

View solution in original post

8 REPLIES 8

Hi Dante,

 

There was a bug in renderonload function.

Use the below call,

lock(ul,'${jvar_control_name}','${jvar_control_name}_edit','${jvar_control_name}_nonedit', 'select_0${jvar_control_name_actual}', '${jvar_control_name}_nonedit');

 

Here the 5th parameter was 'select_0${jvar_control_name}' which must be changed to 'select_0${jvar_control_name_actual}'

 

This works fine. Let me know if any doubts.

 

Regards,

Suraj

I saw your reply so late, Mybad! We just ended up changing the requirements to make it a simple UI reference, but I think the solution you gave will work. thanjs!

how are you extracting the values from the glide list in a macro?? 

 

Community Alums
Not applicable

i have used below code , but it is not working can you help. not getting existing values in the list

<g:macro_invoke macro="lightweight_glide_list2" id="mim-promote-impacted-companies" name="mim-promote-impacted-companies" reference="core_company" can_write="true" lock = "ul,'${jvar_control_name}','${jvar_control_name}_edit','${jvar_control_name}_nonedit', 'select_0${jvar_control_name_actual}', 'select_0${jvar_control_name_actual}';"  control_name="" mandatory="true" ng-model="group" required="true" oninput="promoteModal.impactedCompaniesOnChange()" onchange="promoteModal.impactedCompaniesOnChange()" />