GETFILTERS on Request form.

upasanisandip
Member Posts: 405
How can I use GETFILTERS on second tab of Request form.
I can use for first tab. But for Second tab not showing correct result.?
Anyone have idea about this?
Thanks & regards,
Sandip.
I can use for first tab. But for Second tab not showing correct result.?
Anyone have idea about this?
Thanks & regards,
Sandip.
0
Answers
-
Hi Sandip,
If the second tab filter fields are global variables that should apply to your
dataitems then in the OnPreReport you could set them to your dataitemOnPreReport() Item.SETRANGE(Field6,Global1);
Here Global1 is a variable that needs to be set on the second tab
Hope this helps
Reagrds
Albert0 -
To Show Filter string on report DataItem.GETFILTERS is working for Fist Tab but not For Second Tab.
How to print the Filter string on report for all tabs (data item).
My Data items are like following.
Vendor
->G/L Entry
--> G/L Account
On G/L Entry data items ReqFilterField is Posting Date, I want to show this filtered date on Report.
Filter string to be printed on the report header as below
Filter by :- Vendor Name, Posting date0 -
Hi Sandip,
You will have to do the following
OnPreReport
FilterText := 'Filter: ' + "G/L Account".GETFILTERS + ', ' + "G/L Entry".GETFILTERS;
Where FilterText is a Global variable of type Text
Regards
Albert0 -
upasanisandip wrote:To Show Filter string on report DataItem.GETFILTERS is working for Fist Tab but not For Second Tab.
How to print the Filter string on report for all tabs (data item).
My Data items are like following.
Vendor
->G/L Entry
--> G/L Account
On G/L Entry data items ReqFilterField is Posting Date, I want to show this filtered date on Report.
Filter string to be printed on the report header as below
Filter by :- Vendor Name, Posting date
Hi your post is not very clear :-s
Is it is just the one filter you want, as the other reply use the Section:
OnPreReport()
IF "G/L Entry".GETFILTER("Posting Date") <> '' THEN
DateFilterText := 'For the Period ' + "G/L Entry".GETFILTER("Posting Date");Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
Thanks David & Albertvh.
The solution sent by you has worked.0 -
Yes, as you can see, the filters of second dataitem are not accessible in OnPreDataitem Trigger of first dataitem. You can access the dataitem filters just in own triggers or in OnPreReport where you can see all filters of all dataitems... :-)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