Hi All,
Suppose there is a Table – TestX and its fields are
1. Emp Code (Code)
2. Male (Boolean)
3. Adult (Boolean)
And I want to get data from the table TestX if one of the two fiels Field Male OR Field Adult is true.
Is it possible with the SETFILTER Function Without IF ELSE Function?
Thanks..
Now or Never
0
Comments
Than you can filter on this field...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
No kine , I cann't add any field.
I just want to know is it possible ..... with SETFILTER without IF ELSE.
Because I have found a SETFILTER Syntax where
SETFILTER contains More that two Table Fields.
??? Where ???
It is not possible to do it in one loop...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
SETFILTER(Male,'%1',TRUE);
SETFILTER(Adult,'%1',TRUE);
Technical Consultant
(Dataman Computer Systems P Ltd.)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
selected code
SETFILTER("Branch1 Code","Branch2 Code","Branch3 Code",'<>%1|<>%2|<>%3',LocationRequest,'');
"Branch1 Code","Branch2 Code","Branch3 Code", are the table fields
and LocationRequest is the Variable.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Yes I have tried but it's not working.
Thnx for your valuable comment and support.
To get data from the table if one of the two fields Male OR Adult is true use this: I think, using only SETFILTER it's impossible.
BUT!!! Do not use this solution if you have thousands and millions of records in the table... [-X
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.