Complex report requirement

idiot
Member Posts: 651
My client has a rather complex requirement which I'm not sure if it's achievable in Navision...
A temp staff is to access the Aged Receivables report, which is shared by everyone else in the company.
The report will only print records where salesperson = S1 OR country code = C1 from the Customer Card for this particular user.
1. Is this possible to achieve with the standard report? Possible to print the report directly without use of something else calling this report like Report.RUN? How to set filter for this case?
2. Is it possible to control the reports filter or even the Customer tab such that for this user only Print & Preview buttons are shown? Possible to print the report directly without use of something else calling this report like Report.RUN? The purpose is to block the ability for selection in order to restrict the list of customers from being shown.
A temp staff is to access the Aged Receivables report, which is shared by everyone else in the company.
The report will only print records where salesperson = S1 OR country code = C1 from the Customer Card for this particular user.
1. Is this possible to achieve with the standard report? Possible to print the report directly without use of something else calling this report like Report.RUN? How to set filter for this case?
2. Is it possible to control the reports filter or even the Customer tab such that for this user only Print & Preview buttons are shown? Possible to print the report directly without use of something else calling this report like Report.RUN? The purpose is to block the ability for selection in order to restrict the list of customers from being shown.
NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger
ERP Consultant (not just Navision) & Navision challenger
0
Comments
-
1. It requires writing code within the report, since the condition is for two different fields. This could be done by modifying the standard report.
In the Customer OnAfterGetRecord trigger of the report, the code would be something like:
IF NOT (("salesperson code" = 'S1') OR ("country code" = 'C1')) then
currreport.skip
ELSE BEGIN
{ the existing code in the trigger}
END;
2. Yes. Edit the properties of the Customer dataitem, removing the ReqFilterFields, and selecting a key in the DataItemTableView property.0 -
Thanks for the reply.
1. So I guess that means setfilter is not possible...
2. This report is used by normal users as well so they must be able to select their own filters, so setting a key to remove the tab will not be possible...NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
Hi
If your client is using SQL Server option then you can achieve this by using Security Filters on Roles But you have to create a new role for that particular user with specified security filters specified on Role.
Also in the report call SETPERMISSIONFILTER to apply Role Filters
Harjot0 -
I got the impression that the Security Filters work with AND such that the specified conditions must be met.
Does it work with OR?NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
Hi
Sorry My Mistake. Security Permissions only Handles AND
Harjot0
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