Hide prompting message 'Do you want to rename the record?'

nasheer
Member Posts: 78
Dear Friends
I need your advise regarding the below.
When I modify the field that included in the Primary Key of the table,
the system prompts the message 'Do you want to rename the record?'.
Anyone can tell me How I can hide/disable that prompt message.
Thanks & Regards
Nasheer.
I need your advise regarding the below.
When I modify the field that included in the Primary Key of the table,
the system prompts the message 'Do you want to rename the record?'.
Anyone can tell me How I can hide/disable that prompt message.
Thanks & Regards
Nasheer.
0
Comments
-
perhaps you can explain what you are doing.
These messages have reasons.0 -
Thanks for your reply.
I dont want to see the prompting message after modify any of the fields which included in the Primary Key of the table.
Is there any way to prevent display the message?
I have customised table with following fields
Customer No, Name, Date, Time, Action, Status.
Primary key defineds as Customer No, Date, Time, Status.
When modify the field Status, I want to prevent display the prompt message.
Best Regards0 -
There is no way you can suppress the DBMS warning message. The only way you can simulate (and this is dangerous stuff, since you will screw up data integrity if you don't take care of all related records in your code) is to delete the first one and insert the new one. Something like this:
NewRecord.TRANSFERFIELDS(OldRecord); NewRecord.Status := 'new status value'; NewRecord.INSERT(FALSE); OldRecord.DELETE(FALSE);
You must put FALSE in the trigger, because you will have to program this yourself. You don't want to run the OnDelete trigger, you want to make sure that all records related to the old record now point to the new record.0 -
Thanks for your reply Mr.Daniel.0
-
You need to use RENAME function to change PK fields on the record.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