How to put records in a table box

deepblue
Member Posts: 152
Hello,
I have a table with fields that have as source expression variables and are not related to any tables. I need to put in it records that are located in a table and selected by a specific filter!!! How can I do it?
Thank you!!!
I have a table with fields that have as source expression variables and are not related to any tables. I need to put in it records that are located in a table and selected by a specific filter!!! How can I do it?
Thank you!!!
0
Comments
-
Can you be more clear?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Ok Kriki, i will try to be more clear!
I'm trying to put records in a table-box. In this table box the source expression of the fields are global variables and not fields from tables.
The records I'm trying to inset into the table box are selected from a table using some filters.
How can I do it?
Thank you!0 -
There are 2 parts in what you want to do:
1) you want to select some records to use in the tablebox
2) you want some calculated fields to show in the tablebox
Lets start on how to solve them:
1) Can you just put a filter on it to show the records you want?
If not, put the records you want in a temptable in run the form like this:FORM.RUNMODAL(FORM::"Your Form",tmpTheTempTable);
This gives the form normal filtering possibilities to the user.
2) in case you use a temptable in point 1: can you use the fields to show the values (even calculated)? In this case when filling the temptable, you can also fill the fields in the temptable and you don't have to use global variables. This is better for the DB because the values are only calculated once and not on every refresh of the records in the tablebox.
If not, you have to put the code to calculate the global fields in the tablebox in the "OnAfterGetRecord" of the form.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
- 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