On Closing Form
Kc_Nirvana
Member Posts: 146
I have a form list which can modify values.
If I press the close button (x button on form) I want to cancel the changes made.
It is possible?
If I press the close button (x button on form) I want to cancel the changes made.
It is possible?
Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
0
Answers
-
Hi,
Nav updates the values real-time (or least when you navigate off a record). To acheive what I think you want - you will need to use a temporary table.
1. Fill the temporary table
2. Write changes from temporary table to "real" table when OK/Finished pressed
3. No code needed for cancelling as the temporary table is deleted from memory0 -
I am very newbie.....
How can i create tables temporary?
I ve seen a property on the form to use that but if i select that i don't see any valueJunior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
Hi,
Yes, the property is what you need. So to get you the background. When you set the form to run from a temporary table (or if you are using a temporary table record variable) the then system creates a copy of the table in memory. This starts as a blank table so you will need to write code to fill the table. The user can then edit and the changes are made to the table in memory. To save the changes, you will then need to write code to update the "real" table.
Hope this helps.0 -
:thumbsup: Thank you very muchJunior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 327 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