Lookup on field in request page

MortenSteengaard
Member Posts: 144
Hi,
I'm new to NAV, and for the first time, I have made a request page for a new report in NAV 2009.
In the request page, the user can enter a filter on item numbers. The entered value is saved in a text variable, I use later on.
I would like to add a lookup arrow to the field, but nomatter what I do, there is no lookup arrow.
How do I make my text variable ("ItemFilter") lookup to Item."No."?
I'm new to NAV, and for the first time, I have made a request page for a new report in NAV 2009.
In the request page, the user can enter a filter on item numbers. The entered value is saved in a text variable, I use later on.
I would like to add a lookup arrow to the field, but nomatter what I do, there is no lookup arrow.
How do I make my text variable ("ItemFilter") lookup to Item."No."?
0
Best Answer
-
In NAV2009 You have both things: Request form and request page.
it seems You modify request page but use request form (third picture).
Modification in request page will take no any effect on Your request form!
the same regarding printout. Layout or Sections.5
Answers
-
Add a tablerelation to Item.0
-
I have a TableRelation on my field. I have tried 'Item', 'Item."No." ' and ' "Sales Line"."No." '. All of them combined with entering values in the properties Lookup and/or LookupFormID.
0 -
You are making changes to the Request Page, but you are showing the Request Form.0
-
In NAV2009 You have both things: Request form and request page.
it seems You modify request page but use request form (third picture).
Modification in request page will take no any effect on Your request form!
the same regarding printout. Layout or Sections.5 -
I don't know the difference between Request Form (RF) and Request Page (RP).
I made a RP, but I couldn't see it, so I made a RF. I didn't know it was the RF, I saw.
When I set the property UseReqForm to No, the report starts printing right away.
How do I use my Request Page?
0 -
How do I use my Request Page?
>>>>>>>>>>>>
1. You should use Role Tailored Client (RTC) application
2. Report should be designed with Request Page and Layout.
When one of that things are missing (disabled) for Your report the Request form and Report Sections will be shown.
Also You can not use these things from native (Navision) client application (fin.exe and/or finsql.exe)0 -
OK. Thank you very much - both of you!
Now I use the Request Form (not RTC) and the lookup is working fine because I added a TableRelation on the Request Form.
When I choose an item in the lookup form, I get the item number and it is automatically saved in my field.
I would like my user to be able to enter something like "22222..33333|555" in the field using the lookup. But when my field has the value "22222.." and I use the lookup to find item number 33333, it overwrite the value in my field, so it only has the value "33333" afterwards.
Can I get that functionallity automatic or do I have to code the LookUp myself?0 -
Using table relation - NO
Then You should write a code in OnLookup trigger for this request form field.
and/or use function GetSelectionFilter from Item List form ;o)0 -
Now it works fine!
I still use TableRelation, but has set the property ClearOnLookup to No, and ValidateTableRelation to No.
Thank you very much!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