Problems with filter on form 132

Tbi
Member Posts: 33
Hi.
A customer discovered a problem with the form 132 (Posted Sales Invoice). They sat a filter on the "No." field and entered a "No." that doesent exists, and then closed the form. Now they are unable to open that form again, because it says "Sales Invoice Header No. '**' does not exist.".
(** = the No. filter they applied on the form)
What is the best way to solve this problem?
A customer discovered a problem with the form 132 (Posted Sales Invoice). They sat a filter on the "No." field and entered a "No." that doesent exists, and then closed the form. Now they are unable to open that form again, because it says "Sales Invoice Header No. '**' does not exist.".
(** = the No. filter they applied on the form)
What is the best way to solve this problem?
0
Comments
-
Delete the zup file (will delete all saved states for the user) or make small change to the form if you have form designer (save the form in design is enough) - it will clear all settings of this form for all users (but only for that form)...0
-
Thanks for reply.
Those where also the solutions I found, but I was hoping someone had a more 'userfriendly' solution. The customer can not change the form (and I don't want a phonecall everytime it happends..) I can tell them to delete the zup file for now, but I think the they will prefer a different solution if there is any..0 -
Solution is to add line of code to the form>
OnOpen if IsEmpty then SETRANGE("No."); //if rec is empty, try to clear user No. filter
0 -
Thanks!
I sat the No. to the first record of the table (if the table is not empty) if the form tried to open an record that doesen't exists. It worked perfectly.0 -
And you are able to do PgUp and PgDown to list to next record???0
-
Yes, PgUp/Down works fine.
Code Inseted in form 132:Form - OnOpenForm() IF ISEMPTY THEN BEGIN IF rSalesInvoiceHeader.FIND('-') THEN SETRANGE("No.", rSalesInvoiceHeader."No."); END;
0 -
it works because there is this code in OnFind trigger:
IF FIND(Which) THEN EXIT(TRUE) ELSE BEGIN SETRANGE("No."); EXIT(FIND(Which)); END;
If there is no such a code, your code will not allow user to list through records...0 -
Are you sure that is needed? I do not have any code in the OnFindRecord trigger. There is only one more line of code in this form..
Form - OnAfterGetRecord() SETRANGE("No.");
0 -
I took the code from NA 4.00 - may be that older version have only the code in OnAfterGetRecord but the result is same... :-)0
-
Ah. Yes, I am currently working on v3.70A, so that explains the difference. Thanks for all replies!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