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
Edit :
EMP.SETFILTER(EMP.Field1,'<>'''''); // Thanks Garak
Type conversion is not possible because 1 of the operators contains an Invalid type.
DtaeFormula := Text
Example is based on Payment Terms.
Regards
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",'<>''''');
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;
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?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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?
thanks . problem was solved after i renamed the second field &
put this code in on validate trigger:
"Posting Time" := TIME;