Hi,
i am trying to make an overview of articles that are made up of other articles.
I am showing different levels of the article when searched for an articlenumber.
This all works.
But when i search for an article, i get these results:
I would like, to only see 1 article when the article number is the same. i tried this with doing a distinct, but this is not possible in the prefilter as far as i know.
Is there a way to do a distinct in a prefilter? or is there another way i can get this working.
Here also is the code that i use in my prefilters, we got 8 levels, all 8 levels got their own prefilter.
t1.article_number_2 = ( SELECT TOP 1 pt.searched_article_number FROM prefilter_table pt WHERE pt.usr_id = dbo.tsf_user() ORDER BY pt.search_id DESC)OR t1.article_number_3 = ( SELECT TOP 1 pt.searched_article_number FROM prefilter_table pt WHERE pt.usr_id = dbo.tsf_user() ORDER BY pt.search_id DESC)OR t1.article_number_4 = ( SELECT TOP 1 pt.searched_article_number FROM prefilter_table pt WHERE pt.usr_id = dbo.tsf_user() ORDER BY pt.search_id DESC)
Thx!
Dylan