Filter Problem

Mally
Member Posts: 128
I have 1 Field with Datatype DateFormula,I want to filter on that field that that field should not be blank.In other words, I want data of Table in which that(Dateformaula) field is not blank.My table is Employee I have taken Record variable EMP of Employee table.How can I filter?
0
Comments
-
EMP.SETFILTER(EMP.Field1,'<>%1','');
Edit :
EMP.SETFILTER(EMP.Field1,'<>'''''); // Thanks GarakNow or Never0 -
Its not working it gives me an error while compiling object:
Type conversion is not possible because 1 of the operators contains an Invalid type.
DtaeFormula := Text0 -
Try this.
Example is based on Payment Terms.PaymentTerms.reset; PaymentTerms.setfilter("Discount Date Calculation",'<>'''''); form.run(0,PaymentTerms);
RegardsDo you make it right, it works too!0 -
hi,
see if you don't put any value then it will return todays date. u can filter according to that.
for filter you can try :
Rec.SETFILTER(Rec."Field",'<>''''');0 -
"Type conversion is not possible because 1 of the operators contains an invalid type."
Time:=Code
THIS error comes when i try to insert a new field in the Gate entry header table.
Actually i needed a field in the header to put the time manually , so i created field time with code ..
where i m wrong plz suggest..now i can neither delete ,modify or even import previos object file..
OnInsert()
"Document Date" := WORKDATE;
"Document Time" := TIME;
"Posting Date" := WORKDATE;
"Posting Time" := TIME;
"User ID" := USERID;
InventSetup.GET;0 -
rranjanerp wrote:OnInsert()
"Document Date" := WORKDATE;
"Document Time" := TIME;
"Posting Date" := WORKDATE;
"Posting Time" := TIME;
"User ID" := USERID;
InventSetup.GET;
please activate the debugger and find the place exactly..
to be sure, is USER ID field added by you?
If yes, what is the datatype of field?0 -
Hi mohana,
How can i display system time on the form Gate entry just after i press F3 for new entry.
i HAVE TWO Fields named Posting Time where i want to display current system time . other field is TIME : WHICH NEEDS TO BE FILLED MANUALLY at the time of taking gross , tare weight.
i have taken the data type of posting time as time.& 2ND ONE AS coDE.
BUT AUTOMATICALLY TIME IS NOT DISPLAYED AT THE POSTING TIME FIELD. AS POSTING DATE IS DISPLAYED ..
I HAVE SET POSTING DATE = DOCUMENT DATE.
can i use timenow() function?? how?0 -
hi ,
thanks . problem was solved after i renamed the second field &
put this code in on validate trigger:
"Posting Time" := TIME;0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions