Hello, how are you? i’ve been facing this problem and cannot solve it. Hope you can help me.
I need to get the articles from a table with the condition that they match the current row “type_article” and the “type_article” on the articles table.
Both of them are type enumlist. This is the formula i’ve come up with (used in valid_if):
The thing is, this works only for the first value that matches the article type. If i want to filter all the articles that matches two or more article types it doesn’t work.
When you use the word “match” - in what what way do you need to match?> > For example, if your row column had the list {1, 5, 8}, are you trying to find all the other rows that also have {1,5,8}? Does order matter?
When i said “match” i meant literally this:
Select the values from the colum ID_ARTICLE in table ARTICLE, when the TYPE_ARTICLE in this row is the equal as TYPE_ARTICLE in the table ARTICLE.
It should return all the articles that are contained in the articles type selected in the form but for some reason it doesn’t show ALL the articles that match the criteria.
This is the current behavior:
As you can see, when i try to see the articles that belong to the type “services” and “supplies” at the same time it doesn’t show anything, but when i try only “services” it does show. So it seems to work for only one “match”
For example, if your row column had the list {1, 5, 8}, are you trying to find all the other rows that also have {1,5,8}? Does order matter?> > Or are you only trying to find rows that have at least one occurence 1 or 5 or 8 but possibly only just one of those values?
Hello Steve, I don’t think this is what i need as Intersect() gives me the common values of two lists. If you can please check the answer i gave to Willow.
Ok, got it. As you probably know the dropdown list is controlled by the Valid_If expression. Can you please show the expression you have in the Valid_If for your “articulo” field? We can help you get it corrected.