Can you make a list collector in record producer display like a list?

ritaaudi
Tera Contributor

Hi: A list collector in a record producer displays like this:

find_real_file.png

This takes up a lot of unnecessary space. Is it possible to make it display like a watch list in the tool as such:

find_real_file.png

Thank you, Rita

1 ACCEPTED SOLUTION

Hi Rita,



The width of the variable can be set via using DOM. For this you need to write an onLoad Catalog Client Script on the catalog Item as of below:


function onLoad() {


  //Get the Variable' Element ID by using Inspect Element on the Catalog Item or by pressing F12


  var el = document.getElementById('variable_IO:b437883b6fe63200f9ac52b10b3ee45e');


  el.style.width= '350px';


}



You can find the Variable ID by using inspecting element. Please find below how I have got the variable's Element ID.


find_real_file.png



Once You are done with the Scripting, it would look like below:


find_real_file.png



And my bad for my last response on the 'i' icon. For variable of glide_list type, there is no 'i' icon available.



I hope this helps.Please mark correct/helpful based on impact


View solution in original post

11 REPLIES 11

Sampath8
Giga Expert

Hi Rita,



You can achieve this by adding the Variable Attribute. Please refer the screenshots.


list collector.PNG


In the field type 'List Collector' after adding the 'glid_list' in the variable attribute, this is how it looks like!


find_real_file.png


Hope this helps you.




Regards,


Sampath.


Thank you! The glide_list works. Anyway I can shrink the width of the box? Also is it possible to add the 'i' icon which displays the user record. Looks like this in the tool:


find_real_file.png


Hi Rita,



Yes, you can set the width of the variable if it is not used in any variable set and also not in container. Please find my response in this thread: Single Line Text Variable Char Limit . If you are using Helsinki or prior versions then you need to set the width of the variable by using Script (read catalog Client Script).


For your Second question, the 'i' button works when you select any record which is already selected in the List.



I hope this helps.Please mark correct/helpful based on impact


Hi: I added the following script in the catalog client script onChange of the 'u_project_sponsors' field:


g_form.getControl('u_project_sponsors').style.width = '150px';


But the width of the list remained the same. Any advice how to fix it?



As for the 'i' icon, I don't see it. Here's a snap shot:


find_real_file.png


Thank you again, Rita


Hi Rita,



The width of the variable can be set via using DOM. For this you need to write an onLoad Catalog Client Script on the catalog Item as of below:


function onLoad() {


  //Get the Variable' Element ID by using Inspect Element on the Catalog Item or by pressing F12


  var el = document.getElementById('variable_IO:b437883b6fe63200f9ac52b10b3ee45e');


  el.style.width= '350px';


}



You can find the Variable ID by using inspecting element. Please find below how I have got the variable's Element ID.


find_real_file.png



Once You are done with the Scripting, it would look like below:


find_real_file.png



And my bad for my last response on the 'i' icon. For variable of glide_list type, there is no 'i' icon available.



I hope this helps.Please mark correct/helpful based on impact