Clean a Filter in a Form

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Not Answered This post has 0 verified solutions | 3 Replies | 1 Follower

Top 200 Contributor
112 Posts
1,090 Points
Joined: Dec 14, 2009
Last Online:
Jul 27, 2010 23:30
Location: Portugal
luana posted on Feb 25, 2010 17:40
How helpful was this post/question? Please rate here:

I am trying to execute one filter in a form but I get one error message. I think this filter is closed by a bad filter option.

How can I clean a filter data in a Form. There is any C/AL function to do do that??

 

All Replies

Top 10 Contributor
Male
1,435 Posts
21,664 Points
Joined: Aug 16, 2000
Last Online:
Jul 29, 2010 15:49
Location: Vienna, Austria, Europe
Moderator
Sponsor
Thomas Brodkorb replied on Feb 25, 2010 17:46
How helpful was this comment/solution? Please rate here:

This function is called "RESET"

But in the end it depends on what exactly you are trying to do. What error message do you get?

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Top 200 Contributor
112 Posts
1,090 Points
Joined: Dec 14, 2009
Last Online:
Jul 27, 2010 23:30
Location: Portugal
luana replied on Feb 25, 2010 18:30
How helpful was this comment/solution? Please rate here:

The error is that there is no Referenece to service header.

I am trying to execute form 5915, and for a resource filter (a specific one) i get the message:

"The service header does not exist, identification fields and values:

Document Type=, order="

This is one error on Form 5911 AfterRecord on validation:

ServHeader.GET("Document Type","Document No.");

The service order was already processed and does not exist in service header in fact.

  

Top 10 Contributor
Male
1,342 Posts
29,637 Points
Joined: May 6, 2008
Last Online:
Jul 26, 2010 11:15
Location: Dublin
Moderator
DaveT replied on Feb 25, 2010 19:17
How helpful was this comment/solution? Please rate here:

Hi,

This looks like custom code.  To stop the error use

IF NOT ServHeader.GET("Document Type","Document No.") THEN

    ServHeader.INIT;

But why is the code there?

Dave Treanor

Dynamics Nav Add-ons
www.simplydynamics.ie/Addons.html

Please:
1. Use a meaningful title.
2. Give as much detail as possible.
3."Verify Solution" to the post that help you solve your problem.
4. Fill out your Tags - it will help other people.
5. N.B. Don't be afraid to ask - we all had to learn and are still learning Wink

Page 1 of 1 (4 items) | Get this RSS feed | Bookmark and Share