Forum Discussion

angela's avatar
angela
Catalyst II
1 year ago

Can we use filter lists with a predefined static filter?

Hi community,

I want to build 6-7 drop downs with similar content. Each single drop down has around 10 values where 7-8 are more or less identical. "Values" are 80% the same for each list, but the "label" has sometimes a different meaning.

The classic solution would be to build six or seven separate List items. Does anyone know any other approach to solve this task without all the List items?

I wonder if we can somehow use a "filter list" for this task. For Filter List the filter condition is typically another property in the ItemType. But in my case I don´t have a second property. The property itself shall define the static filter. Is it somehow possible to specify a static filter for each single Property by default?

The topic is not important and I guess the answer is probably "nope". But it still an interesting topic for a forum discussion :)

BR

Angela

3 Replies

  • eli_donahue's avatar
    eli_donahue
    Community Manager

    Hi Angela,

    This is an interesting question, but it sounds more difficult than just making the separate lists. Are you trying to solve an admin pain/problem or a user experience one? 

  • aras object has the method uiGetFilteredObject4Grid(itemTypeID, filteredPropName, filterValue).It takes the value to filter list, not property. And returns object with "values" and "labels" properties as arrays of filtered values and labels.

    Maybe this will help you.

  • angela's avatar
    angela
    Catalyst II

    Thank you both for your fast help!

     eli_donahue It´s mostly an "admin vanity feature". For the same time I would spent on a "smart list" solution I probably could build 37 lists manually including the translations. And these lists are even better maintainable  [emoticon:d6dd260102fd406884fc96b8bc59760b]

    It´s not real problem to build the lists cause I need custom labels anyway. I thought I could save some time on adding the translations. In Innovator 12 it´s not as convenient to do than in I14.

     alaxala Thanks for the hint to uiGetFilteredObject4Grid! The function actually would allow us to add some flexibility to the filter. For example we could specify a custom "pattern" variant that overwrites the default behavior of the filter lists. Is it something wise to do? Probably not. People will always find the 7 lists items, but nobody will ever remember the hidden code tree modification that leads to a certain behavior. But I like the idea. :)