Can you base a form on a temporary table ??

brucem
Member Posts: 86
I want to create a temporary tabel, but want the user to be able to interact with it. Is this possible, if so how ??
TIA
Bruce
TIA
Bruce
0
Comments
-
2 solutions.
1) Do as form 344. Then you need to add code, so it is possible to change the tabel. Untested!
2) Do it by calling the form from a Codeunit. In the codeunit you simply declare the temp var, fill it with whatever. Then simply do a FORM.RUNMODAL(FORM::"My form", TmpRec). No special code is needed in the form. But once you return from the form you need to handel the updated information.
Regards
PeterRegards
Peter0 -
Thanks for your reply. Looking at the form, am i right in assuming that the temporary table can only be a copy of an existing table ?
Ideally a recordset like MS-query / access / excel would be the best thing to work with.
Bruce0 -
As with all these things you start trying to figure tehm out by trying the most difficult thng first !!
I have had a look at form 344 and MOST of the code ebhind it makes sense with two exceptions.
1. I notice the form is based on a table but the code fills a temporary table, where does the tablesource change from actual to temp table ?
2. form 344 uses the table as the source for the form. In my case i am trying to use a temp table as the basis for a sub form. I appear to be able to populate the temp table on code from a code unit, but how in code do i swap the sub form table source and refresh the main form. Once this is donde , can another external procedure reference the contents of this form ?
Thanks in Advance
Bruce0 -
The tricky part is in the two triggers on the form: OnFindRecord and OnNextRecordRegards
Peter0 -
Yes it's
if you need sample code you can download the Treeview freebie
from Jose Femenias at :
http://www.hermida.com/navision/treeview.htm
tarek_demiati@ureach.com
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by brucem:
I want to create a temporary tabel, but want the user to be able to interact with it. Is this possible, if so how ??
TIA
Bruce<HR></BLOCKQUOTE>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