How to filter by Name in Report
kolaboy
Member Posts: 446
Hi Experts,
I have designed a report that is filtering by Employee No., Employer No., but is not filtering by Name and the rest of the fields in the employee table.
I have added First name, middle name, last name in the property of the report as shown
"ReqFilterFields=No.,Employer No.,First Name,Middle Name,Last Name"
But i am still not able to filter by Name. My primary key is employee No.
Can anyone tell me what my problems are please.
Thanks in advance.
I have designed a report that is filtering by Employee No., Employer No., but is not filtering by Name and the rest of the fields in the employee table.
I have added First name, middle name, last name in the property of the report as shown
"ReqFilterFields=No.,Employer No.,First Name,Middle Name,Last Name"
But i am still not able to filter by Name. My primary key is employee No.
Can anyone tell me what my problems are please.
Thanks in advance.
0
Comments
-
hello kolaboy
I need a little more info about your report. how many data items, are you using?
How is the report done? do you have any code to reset the filter. What tables are using?0 -
Hi are3n,
I have only one data item called employee.
I designed the report using the wizards with sorting by No. as default.
I have only one code which i wrote to be able to have the Name of institutions and their N0s. as heading when the report is run.
Here is the Code :
Employer.GET("Employer No.")
Name := (Employer. Name);
I used the employee table to design the report.
I hope these information will be enough for you to help me.
Please is urgent.
Thanks.0 -
ok so the employer is not a dataitem, but a variable.
Here is what you can do.
1. Create a dummy dataitem Employer (dummyEmployer).
onprereport.
dummyEmployer.copyfilters(Employer);
You need to change your code.
Employer.setrange("No.","Employer No.");
if not Employer.find('-') then
currReport.skip;
Name := (Employer. Name);
Onpredataitem of dummyEmployer add
currReport.break;0 -
Hi are3n,
I know that dataitems are taken from tables. But dummyEmployer is not a table, therefore i don't think i can create dummyEmployer as dataitem.
Am i going to create a new table called dummyEmployer and then use it in dataitem? How can i create dummyEmployer as dataitem? please help.
Thanks0 -
You are going to use the Employer table. The variable name is DummyEmployer. Do not create a new table0
-
HI ara3n,
Thanks you very much for your brilliant ideas.
I have tried what you said, it was giving me small error,but i have managed to solve it . Your ideas gave me lot of glue.
Thanks once again.0 -
you are welcome.
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
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
