Help about Navision Transaction Language

arbifis
Member Posts: 5
Hello everybody,
I have one question:
¿Has Navision a Transaction Language? ](*,)
I think C/AL is Transaction Language, becasuse i can begin a operation with de Data Base, insert, update, delete some thing and i can make commit or no.
¿Is true?
¿Is this explanation correct?
¿Any one has any other explanation?
Thanks everybody.
I have one question:
¿Has Navision a Transaction Language? ](*,)
I think C/AL is Transaction Language, becasuse i can begin a operation with de Data Base, insert, update, delete some thing and i can make commit or no.
¿Is true?
¿Is this explanation correct?
¿Any one has any other explanation?
Thanks everybody.
0
Comments
-
Navision starts automatically a transaction on the first write in the DB. And the transaction only ends when you put a COMMIT or at the end of the processing (meaning the GUI is free again for the user to do something). So a transaction doesn't end at the exit of a function or object like many think.
With a Navision-DB, you can't read uncommited data.
With SQL it is possible. The only way to avoid it is to put this in your code:
CURRENTTRANSACTIONTYPE := TRANSACTIONTYPE::Update; (for updating) or
CURRENTTRANSACTIONTYPE := TRANSACTIONTYPE::Snapshot; (for Read only)Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:... or at the end of the processing (meaning the GUI is free again for the user to do something).
How does Navision know when "GUI is free" ?
When, for instance, invoice posting is in progress, we can click Cancel to abort the process...does it mean that whatever has written to database has been commited ?0 -
dsatria wrote:kriki wrote:... or at the end of the processing (meaning the GUI is free again for the user to do something).
How does Navision know when "GUI is free" ?
When, for instance, invoice posting is in progress, we can click Cancel to abort the process...does it mean that whatever has written to database has been commited ?
there is a small error subsystem. which means, either there is an error in transaction or not. if you cancel something, you practically send an error flag end your transaction is rolled back. if form/codeunit ends with job without error, your transaction is commited unless there is an explicit commit command used.0 -
Phenno wrote:dsatria wrote:kriki wrote:... or at the end of the processing (meaning the GUI is free again for the user to do something).
How does Navision know when "GUI is free" ?
When, for instance, invoice posting is in progress, we can click Cancel to abort the process...does it mean that whatever has written to database has been commited ?
there is a small error subsystem. which means, either there is an error in transaction or not. if you cancel something, you practically send an error flag end your transaction is rolled back. if form/codeunit ends with job without error, your transaction is commited unless there is an explicit commit command used.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:there is a small error subsystem. which means, either there is an error in transaction or not. if you cancel something, you practically send an error flag end your transaction is rolled back. if form/codeunit ends with job without error, your transaction is commited unless there is an explicit commit command used.
Now it's clear to me!
Thanks a lot, kriki!0 -
dsatria wrote:kriki wrote:there is a small error subsystem. which means, either there is an error in transaction or not. if you cancel something, you practically send an error flag end your transaction is rolled back. if form/codeunit ends with job without error, your transaction is commited unless there is an explicit commit command used.
Now it's clear to me!
Thanks a lot, kriki!Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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
- 322 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