Advanced filter for dungeons not working
nasiqq opened this issue ยท 6 comments
also you can see a +8 with a single DPS , while in filter have tanks OR heal minimum 1..
Oh if you mean that you get an error message when using AND
in all uppercase letters, well that's because AND
is not a valid but and
is. The reason is that you are in fact programming in the language Lua, where only a lowercase and
is defined as the logical conjunction operator. Programming languages are very picky about the casing of letters. I already thought about internally "lowercasing" your expression before sending it to the interpreter, but this would mean that I cannot use mixed-case expressions in the future.
hey,
I used: (tanks >=1 or heals>=1) wand partyfit and (cot or nw)
had an error message, clicked okay.
fixed the typo (removed w), clicked on search and had the same error message again.
The "AND" version is just another type of test which I tried, thanks for explanation.
That options button is for world quest tracker which is let me do not show blacklisted players and also works as an "ad-blocker".
I think I found why it was showing the error message even after removed "w". I need to push escape after editing the text box - to loose focus -, because if I click on search button before hitting on escape, then still the old text used for search.
Not sure if possible to implement a solution like if I click on search button, then re-read the text in the advanced filter and do not need to loose focus before that?
Thank you for replying!
You can close this issue threads. Thanks.
I tested your expression and it works perfectly fine for me. I see that you have another addon active that manipulates the premade dungeon list (there is an "options" button behind the PGF checkbox). Could it be the case that the other addon is doing a different filtering and prevents PGF from working correctly? Please try with just PGF and no other addon installed.
Regarding the typo issue, I just tried the following:
- Using your expression, I added a w, making it
(tanks >=1 or heals>=1) wand partyfit and (cot or nw)
- I click somewhere else so the focus is lost on the text area
- I see the error message popup
- I click Okay
- I correct the typo, removing the w
- I click somewhere else so the focus is lost on the text area
- No error message shown for me
So I'm not sure which issue you are having. Could you please be more precise and provide all steps like I did?
Not sure if possible to implement a solution like if I click on search button, then re-read the text in the advanced filter and do not need to loose focus before that?
Acutally it works exactly like that for me. As soon as I click the Search button, the focus is lost and the search runs with the new expression. I will have a look if I cann add something to explicitly loose focus before the search happens.