Temp Tables displayed on Forms

eYe
Member Posts: 169
Hi this, is probably a stupid question, but how in the world can I use buffer tables?
What I want to do is display the contents of a global (temp) variable in list view, and not the actual contents of the table.
What I want to do is display the contents of a global (temp) variable in list view, and not the actual contents of the table.
Kind Regards,
Ewald Venter
Ewald Venter
0
Answers
-
The easiest way is :
FORM.RUNMODAL(FORM::"Your Form",tmpYourTempTable);
The form will behave like a normal form, but it will work on your temptable.
If you want to pass some other parameters, the easiest way is to pass them as filters.
E.g. you have a temptable on T27:item and you want to send also a customer no..tmpItem.RESET; tmpItem.SETRANGE("No.",codCustomerNo.); FORM.RUNMODAL(FORM::"Your Form",tmpYourTempTable);
In the OnOpenForm of the form, you can check if there is a filter on "No." and you know that in reality it is the customer no. you send into the form.codCustomerNo := GETFILTER("No."); rec.RESET;
There are also other ways of using temptables or passing parameters, but they are more complicated.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Ahh, yes! Thanks.
Forgot about that one! I was in the habbit of calling forms by:IF gFrmItemList.RUNMODAL = ACTION::LookupOK THEN
But your suggestion works perfectly, thanks again!Kind Regards,
Ewald Venter0 -
Sorry to disagree, but either the Subject of this thread is wrong, or the replies and content are wrong.
A buffer table is used in Navision posting routines to consolidate many lines of data into less lines that are similar.
For example, when you post AR in a sales invoice, you post just one GL and Cust entry for the amount due. This line is created using the Invoice Buffer table. Or when posting Inventory cost to GL, you can post per item ledger entry, or per posting group. Posting per group reduces the amount of data posted, and makes it easier to see what is going on. POS and retail systems are also good candidates for Buffer tables.David Singleton0 -
David Singleton wrote:Sorry to disagree, but either the Subject of this thread is wrong, or the replies and content are wrong.
A buffer table is used in Navision posting routines to consolidate many lines of data into less lines that are similar.
For example, when you post AR in a sales invoice, you post just one GL and Cust entry for the amount due. This line is created using the Invoice Buffer table. Or when posting Inventory cost to GL, you can post per item ledger entry, or per posting group. Posting per group reduces the amount of data posted, and makes it easier to see what is going on. POS and retail systems are also good candidates for Buffer tables.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Maybe change the Subject of the Thread, then in six months time when someone searches for "Temporary Table" and see my reply they will think "What is this Singleton guy talking about". #-oDavid Singleton0
-
David Singleton wrote:A buffer table is used in Navision posting routines to consolidate many lines of data into less lines that are similar.Kai Kowalewski0
-
Subject is updated.
I was under the impression that a buffer table has a physical structure but no data. That you create a global temp variable of this table and then use it to do some calculations or display the data?Kind Regards,
Ewald Venter0 -
eYe wrote:Subject is updated.
I was under the impression that a buffer table has a physical structure but no data. That you create a global temp variable of this table and then use it to do some calculations or display the data?
Basically yes, but Buffer tables and Temporary tables are two completely different things. It just happens though that in the majority of cases, Buffer tables are as you say not inserted into the database, so in code you would generally create a Temporary Table of type Buffer table.
In simpler terms, a Temporary Table is a part of the fin.exe, so its a technical thing. A buffer table is a part of the business logic, and is created int he database.
There are some cases where buffer tables are inserted into the database, you will see this in Retail, where a days transactions are added to a buffer table, instead of being posted, and then at the end of the day the buffer is posted.David Singleton0
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