List Collector hidden based on records retrieved

dbaril
Tera Expert

I have 3 list collectors on a record producer.  All are dynamically updated when a select list changes by making a call to a class module set in each reference qualifier field.  What I am trying to accomplish is to hide a list collector if no records are returned from the reference qualifier lookup.  How would I go about doing this?

1 ACCEPTED SOLUTION

priyatam_pvp
Tera Guru

You can create a client script and use the code you wrote to fill in the values in the list collector. Based on the output you can hide or show the list collector.

Mark it helpful if this helps you to understand. Accept the solution if this gives you the answer you're looking for
Kind Regards,
Priyatam Patchipulusu

View solution in original post

2 REPLIES 2

priyatam_pvp
Tera Guru

You can create a client script and use the code you wrote to fill in the values in the list collector. Based on the output you can hide or show the list collector.

Mark it helpful if this helps you to understand. Accept the solution if this gives you the answer you're looking for
Kind Regards,
Priyatam Patchipulusu

Brad Bowman
Kilo Patron
Kilo Patron

One way is with an onChange Catalog Client Script when the select list variable changes.  The script could use GlideAjax to call the same function as the reference qualifier, if that's what you're using, then if no values are returned, use g_form.setDisplay('var_name', false)