Report with a filter to look in another table

Red-Eagle
Member Posts: 107
I have a report on the table extension contract. I want to make an option field that you can say that you only want to see the jobs which are open.
The option field is no problem, but the job status field excist only in the table JOB. How can get the report look in the JOB table and give me only all JOBS which are open.
This is what i made till now:
IF PrintProjectstatusBln = TRUE THEN (the option button)
CLEAR(Projectrec);
Projectrec.GET("Extension Contract"."Project No.");
Projectrec.SETFILTER("No.","Extension Contract"."Project No.");
Projectrec.SETFILTER("Project Status",'<Gereed Gemeld');
The option field is no problem, but the job status field excist only in the table JOB. How can get the report look in the JOB table and give me only all JOBS which are open.
This is what i made till now:
IF PrintProjectstatusBln = TRUE THEN (the option button)
CLEAR(Projectrec);
Projectrec.GET("Extension Contract"."Project No.");
Projectrec.SETFILTER("No.","Extension Contract"."Project No.");
Projectrec.SETFILTER("Project Status",'<Gereed Gemeld');
0
Comments
-
Insert code like this in OnAfterGetRecord trigger of table extension contract.
IF ShowOnlyOpenJob THEN BEGIN Job.GET(ExtContract."Job No."); Job.Status <> Job.Status::Open THEN CurrReport.SKIP; END;
Please note that since I don't know that table I'm not sure about the link with Job table.* Daniele Rebussi * | * Rebu NAV Diary *0 -
Geordie thank you for you input.
I dont see how it work:
The code i have now is:
IF PrintProjectstatusBln = TRUE THEN BEGIN
CLEAR(Projectrec);
Projectrec.GET("Extension Contract"."Project No.");
Projectrec.SETFILTER("No.","Extension Contract"."Project No.");
Projectrec.SETFILTER("Project Status", 'CALCULATIE|VOORBEREIDING|UITVOERING|TECHNISCH GEREED| ADMINISTRATIEF GEREED');
END;
I have no errors on the code, so the links are good, but i dont think the program understand that before he shows the job (project) it has to look at the status of the job in the table job.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