Set filter to not blank

MauddibMauddib Member Posts: 269
edited 2011-07-11 in Navision Attain
I have a report that is currently looping through the Purchase Header Table. There is a CODE field (field class normal) in this header which relates to the Sales Header table. Some orders are linked to the sales headers in this way, some arent. I want the report to only look at the ones where there IS a link so i use the code:

SETFILTER("Special Order", '%1', TEXT0001);

Where Text0001 is set to: <>''

However its not finding ANY results.

I have also tried going into the Purchase Header Data item itself and setting the DataItemTableView to:

Special Order= FILTER(<>'')

and this doesnt work either. What am I missing?

Answers

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    SETFILTER("Special Order", '<>%1', '');
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • oxymoronoxymoron Member Posts: 2
    May i ask how to use this on a Date field (e.g. Expiration Date) ??
  • oxymoronoxymoron Member Posts: 2
    Found it... so simple!!

    SETFILTER("Date Field",'<>%1',0D);
  • MauddibMauddib Member Posts: 269
    This thread brings back memories :) Was I ever so green? :)
Sign In or Register to comment.