Problem with List Collector(Slush Bucket)

atulchauhan
Kilo Contributor

Hi,

 

I am facing a problem with List Collector(Slush Bucket). Problem is of restricting what values that should be displayed in the List collector(slush bucket) field.

I have constructed a service catalog item, in which there is a variable of type List Collector pointing to a table.

Usually all the data in the table gets displayed in the slush bucket but my requirement doesn't require that, instead I have to restrict the values based on a condition.

 

If it is reference field, we could have used reference qualifier but it is a slush bucket. I couldn't find a way out.

 

Could anyone please advise on this?

Thanks in Advance!

8 REPLIES 8

Kalaiarasan Pus
Giga Sage

atulchauhan
Kilo Contributor

Thanks Kalai and Pradeep for your prompt response but i want to do it without filter.



Is there any way to implement it without filter?


Hi Atul,



Perhaps you are looking for an onLoad client script (written by )that could do this:-



function onLoad() {


  setTimeout(setMyFilter, 1000);  


  //wait to make sure filter is loaded, i think the article you found has a nicer way of doing this


}


function setMyFilter() {


      //Reset the software query, 'software_choices' is the name of the list collector variable on the catalog item


      software_choicesg_filter.reset();


      var answer = '';


      answer += 'u_show_on_catalog=true'; //change this to 'u_selectable=true' for your case


      software_choicesg_filter.setQuery(answer);


      software_choicesacRequest(null);



}



You can find more details in this thread: Catalog List Collector variable: Set filter?



Regards,


Hari