Control for deleting Notes

snyktp
Member Posts: 75
Comments
-
Is there a DeleteAllowed propery?
If so set it to No.
http://msdn.microsoft.com/en-us/library/dd355353(v=nav.70)0 -
-
Hi,
Do you have any idea?
Thank you0 -
Nope. I don;t use factboxes - but typically I would find the place where notes are stored and set deleteallowed to no.
Don't factboxes just show data that already exists in another table.
You can stop it there from being deleted. that would be my first move.:-k0 -
I know record links table stores note/link data. Sales Orders/ Sales quotes have Notes factbox, i dont want to use another page for this. There must be a way to limit for deleting note . #-o0
-
snyktp wrote:I know record links table stores note/link data. Sales Orders/ Sales quotes have Notes factbox, i dont want to use another page for this. There must be a way to limit for deleting note . #-o
You can write your deletion control code on OnDelete trigger of the Record Link table. Alternative method is using permissions.
Are there any concerns with these methods?Ufuk Asci
Pargesoft0 -
Hi Ufuk,
Codes are already therebut it doesnt work.
I dont want users to detele notes on sales order & sales quote but they can delete notes from customer & item. It means it is not logic to limit permission for table. There must be something to limit notes on some pages.
Is this clear?
thank you0 -
Hi,
I think there is a problem with your code. Check the following code. It works for me:IF Type = Type::Note THEN BEGIN RecRef.GET("Record ID"); IF RecRef.NUMBER IN [DATABASE::"Sales Header",DATABASE::"Purchase Header"] THEN //whatever table you want ERROR(''); END;
Ufuk Asci
Pargesoft0
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