Temp Table will not clear/reset

mcurrie
Member Posts: 39
I am trying to run a program from the item card form that updates a temporary table and then produces a form based on the temporary table. The issue that I'm having is getting the temporary table to clear out after I exit the form.
Here is the example:
I run the program for the first item and it produces the data i need on the form
. I exit the form and end up back on the item card. I scroll through and find my next item and re-run the program. This produces the data I need for the current item along with the data from the previous item
. Here's the odd part, if I exit the item card form and then go back in before I re-run the program everything is fine.
I've tried too many things to list them all.
-Deleteall function on the temp table from the form as I exit, Deleteall from the item card as I return there.
-Properties (Savetableview,Savevalues, etc.) on the form.
...many many more... ](*,)
If anyone has encountered this issue before please let me know. The help would be greatly appreciated.
Here is the example:
I run the program for the first item and it produces the data i need on the form


I've tried too many things to list them all.
-Deleteall function on the temp table from the form as I exit, Deleteall from the item card as I return there.
-Properties (Savetableview,Savevalues, etc.) on the form.
...many many more... ](*,)
If anyone has encountered this issue before please let me know. The help would be greatly appreciated.
0
Comments
-
What about deleteall on the temp table before you fill it... :-)0
-
Yes. Did that too.
Its almost like it keeps it in memory until I exit the item card form.0 -
If you will fill it only on init or somewhere else, you must use CLEAR on the Form variable, if you want the form behaive each call as new one...
something as:CLEAR(FormVar); FormVar.SETDATA(Param1,Param2) FormVar.RUN;
0 -
I swear I tried it before but it worked this time.
Can't thank you enough!!!0 -
It sounds like the temporary table is declared globally on the item card. If this is the case then you could declare the temporary table locally in the function that updates it and display your form.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