Create a field not bound

ferris
Member Posts: 23
How can I create a field not bound to the database with a lookup?
0
Comments
-
Do the following............
1.) Create a textbox.
2.) define a global variable. assign this global variable as source expression of the textbox in the textbox property.
3.) then define the tablerelation property of the textbox.0 -
Thanks very much!
Another similar questions: how can I create a column of a table box not bound to a table and with a lookup? In this case the number of rows is not determinable a priori (the first column is bound to a database table and it determine the dimension of the table) and so a global variabile isn't usable.0 -
Create a function on the table that returns the desired value. Display this result in the textbox.There are no bugs - only undocumented features.0
-
But what is the source of the column? I can't insert a column without a source expression.0
-
A variable. View menu, Globals or Locals.0
-
The source is the functon's result.There are no bugs - only undocumented features.0
-
Dear Ferris,
Do the following............
1.) Select a textbox from toolbox and put it in tablebox.
2.) define a global variable. assign this global variable as source expression of the textbox in the textbox property.
3.) then calculate and assign the value to this variable onAfterGetRecord trigger.0 -
The global variabile is a Code or somethings else?
If I use a Code each row share the same variabile and so the value of the column isn't permanent.
Thanks0 -
The global variable can be code or anything else. It depends upon you that what type of data u want to store in it.
Each row would have different varable b'coz you will write the code in OnafterGetRecord() trigger. as I mentioned in last mail.
First try the solution given in last mail. Then If u have any query ask.0 -
But I don't now a priori the number of row in the tablebox: how can I calculate and assign the value to the variable onAfterGetRecord trigger?0
-
If you use a function on the table:
1. You don't have to write any form code.
2. The value will be calculated and displayed independently for each record in a tablebox.
3. You can re-use the function elsewhere, such as a report.There are no bugs - only undocumented features.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