page field by field reference
Roelof
Member Posts: 377
Can I add a field on a page that is defined as a FieldRef?
I created a table with fields: TableNo, FieldNo and 'New Value'. I use the TableNo and FieldNo fields as RecRef and FieldRef to create a list of fields for the Item table (TableNo =27) and to be able to define a new value. This table is used for a batch update report to update the item table based on this table.
I created a page for this new table and I would like to have the option for the 'New Value' field to have the ability to do a lookup, the way these fields work on the Item table. (like an option field or lookup to a reference table, etc). I was trying to set it up as a FieldRef field as the 'SourceExpr' on the page, but that doesn't work.
Is that another way to achieve this?
Thanks.
I created a table with fields: TableNo, FieldNo and 'New Value'. I use the TableNo and FieldNo fields as RecRef and FieldRef to create a list of fields for the Item table (TableNo =27) and to be able to define a new value. This table is used for a batch update report to update the item table based on this table.
I created a page for this new table and I would like to have the option for the 'New Value' field to have the ability to do a lookup, the way these fields work on the Item table. (like an option field or lookup to a reference table, etc). I was trying to set it up as a FieldRef field as the 'SourceExpr' on the page, but that doesn't work.
Is that another way to achieve this?
Thanks.
Roelof de Jonghttp://www.wye.com
0
Answers
-
You will need to code this, probably in the OnLookup trigger of the page. You can't do this using properties.Jan Veenendaal0
-
Build-in lookups are working using the table relation information defined on a field in the table.
Unfortunately a table relation property cannot be defined or changed dynamically at the run-time. In order to get it wok you would have to define massive conditional relation based on all possible combinations of Table No/Field No which you can possibly have in your field pair.
Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

