Remove a locktable
yekede
Member Posts: 96
Hello,
Please can someone tell me how to remove a lock on a table?
I placed the lock using "record.locktable" syntax. i would like to know how to remove it within the code.
Thanks
Please can someone tell me how to remove a lock on a table?
I placed the lock using "record.locktable" syntax. i would like to know how to remove it within the code.
Thanks
0
Answers
-
Remove? It will be removed when the transaction ends. If you need to prevent "locking" (when user see the info tat the table is locked", you need to make the transaction as short as possible by optimizing the hardware and the application.0
-
How did you do that? Did you put that code under a button, or are you talking about a locktable command inside some codeunit as part of some process?yekede wrote:I placed the lock using "record.locktable" syntax0 -
Hi!
When tables are locked by a transaction, they will remain locked until one of the following situations occurs:
1) The transactions ends (as kine mentioned)
2) A COMMIT occurs
3) An error statement (a rollback) occurs.
A COMMIT during a transaction is a no go - unless you are sure, that you want to start a new transaction.0 -
Thanks! its ok now0
-
yekede wrote:Thanks! its ok now
So since so many community members have helped you, it might be fair if you explained how you solved the issue, and give something back.David Singleton0 -
Hi,
it was removed at the end of the transaction. Thanks0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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


