Hi everyone,
i just tried to run a custom made report with a filter on the Salesperson Code field:
<>*DEMO|<>*STAFF
basically i don't want any salesperson code that ends with DEMO or STAFF... but this filter doesn't work... can anyone help me to find an easy solution to this?
Thanks,
KraZy
KraZy
0
Comments
Yours didn't work because of this:
Say the salesperson is NAVDEMO. The first part of your filter, <>*DEMO returns false. The second part returns true.
My Blog - nav.education
logically that makes sense... but i've even just tried:
<>*DEMO
and even that doesn't work.... it's like there's no filter at all...
KraZy
Another issue I've seen in the past is that there are multiple data items used in a report and selectively some filters may get passed between them. Is there anything like this happening?
Epimatic Corp.
http://www.epimatic.com
no there's no other filtering that should be overriding the inputted filters...
i'm really confused about this one.. the logic is there... the syntax looks right... just doesn't do the filter properly....
KraZy
My Blog - nav.education
does that prevent all other filters that are applied to it????
i certainly hope it doesn't.. but that's the only other filter that i see anywhere...
KraZy
losing the wild card would help
<>MYSTAFF&<>MYDEMO&<>YOURSTAFF&<>YOURDEMO
http://www.BiloBeauty.com
http://www.autismspeaks.org
well.. we have about 12 sales reps.. and each one has a DEMO and a STAFF account....
so it's only 24 in total... but it's such a hassle to do it that way...
<>*DEMO
<>*STAFF
i don't understand why those don't work... there must be something to it.... i'm just not seeing it...
KraZy
Such as a boolean called DEMO-STAFF where you can have it checked off.
Then in your report or any future reports you can check the table the set the filter DEMO-STAFF = no.
I thought that filter did work with SQL but not on native. :-k
http://www.BiloBeauty.com
http://www.autismspeaks.org
i'm not gonna be able to sleep tonite!
KraZy
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC
SETFILTER(Code, '<>*DEMO')
SETFILTER(Code, '<>*%1', 'DEMO');
I think the second one is more likely. There's only so many ways to set a filter.
My Blog - nav.education
Any other suggestions??? anyone know if there's a problem with using the NOT and * together like that???
KraZy
You shouldn't have to do a work around, but you might have to. I guess you could try to set the filter in code in the onpredataitem trigger. I would do it on the first lines, that way you can tell if there might be any code that is changing the filters at run time.
If the report is always going to use this filter that's what you should do anyway. If it is not you could add a checkbox to the request form that tells the report to set this filter with code.
Best of luck.
My Blog - nav.education