Codeunit to hide blank records
liizz
Member Posts: 125
Hi all,
I have to put a filter on a form, the Customer List, i.e where Name & Contact fields are left blank. These records should be hidden. We are not allowed to delete them.
I have a table filter on the Customer List form, but it doesnot allow me add a new customer. Its not a gud idea..
I have written a codeunit but am not knowing of how to not show these dummy records instead of deleting them..
Can anybody suggest solutions??
Please advise..
Thanks
Liizz
I have to put a filter on a form, the Customer List, i.e where Name & Contact fields are left blank. These records should be hidden. We are not allowed to delete them.
I have a table filter on the Customer List form, but it doesnot allow me add a new customer. Its not a gud idea..
I have written a codeunit but am not knowing of how to not show these dummy records instead of deleting them..
Can anybody suggest solutions??
Please advise..
Thanks
Liizz
0
Comments
-
If you are faced to the filter, which cannot be simply setted by SETFILTER command because of compound condition, then you could mark those records you wanted to show by MARK(TRUE) and then calling MARKEDONLY(TRUE).Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
GRIZZLY wrote:If you are faced to the filter, which cannot be simply setted by SETFILTER command because of compound condition, then you could mark those records you wanted to show by MARK(TRUE) and then calling MARKEDONLY(TRUE).
I don't believe that is the problem. I'd imagine what happens is that you insert a new customer, but when you do that the name is blank so it is automatically filtered out. Why can't you just block the customers? Why do they have to be filtered out?
What will happen if someone accidentally blanks out the name field? They would never be able to get that customer back without some sort of intervention by technical support. I don't think that it is the correct solution to your problem.0 -
Thanks for ur posts.
This is because the system wants to keep track of those blank records.
The table filter that I created on name should not be blank, am not able to make on F3 on the Contact card.
Plz help..
Thanks
Liizz0 -
set the form/page's property delayedinsert on true and try it out.
It will insert the record after the user moves to another record instead of inserting it when the primary key is filled out.
That way the filter will only have effect when the record has been inserted.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
