Get the name of values in flowfilter field in report

vyanku
Member Posts: 791
I have one report containing locationfilter field.
When I run the report I insert values in this field .
When the report executed can we get the name of those location which I insert into locationfilter field.
The Field name :- Locationfilter
datatype:- Code
FieldClass:- Flowfilter
When I run the report I insert values in this field .
When the report executed can we get the name of those location which I insert into locationfilter field.
The Field name :- Locationfilter
datatype:- Code
FieldClass:- Flowfilter
0
Comments
-
You can get the values of filters ONLY in the OnPreReport-trigger.
Use GETFILTER("Some Field") to get the filter of a certain field and GETFILTERS for all filters.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
No I got the filter values but what I want to
Like if ur selecting vendor no. in General Journal it will automatically get the name of that vendor.
Just like this When insert locations in location filter field I want to get there names. Can I do this?? How??0 -
That is not possible in a filter-field.
You would have to make a new field in the requestform, add an extra field in which you put the name and the code to do that, you have to put in the OnAfterValidate-trigger of the first field.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Your problem might functionally be completely different from this pretty technical question, so here's a few options.
If the Location code is part of the table in your dataitem, you could add a lookup flowfield to the location name and do a CALCFIELD on that field in OnAfterGetRecord. It's going to kill performance if that report is bigger.
You could also program the lookup in code, but then you'll have the same performance issue.
Then you could sort the data by location and only get the location if the value of the Location Code changes.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