Data Filtering

UdAkunuri
Member Posts: 31
Hi,
One of my customer has 3 Divisions. And he needs division wise data filtering.
i.e., one division person need to see only his purchase orders, sales orders, Customer balances........
I know that Using Responsibility Center feature in Navision, we can filter documents like PO,SO......
But here we have same customers, Items, ....(masters) for all divisions. So i need to filter the balances. And the person (head of all divisions) need to see all the data.
Is it possible in Navision, Is there any thing already present in Navision to do so...
Thanks & Regards
One of my customer has 3 Divisions. And he needs division wise data filtering.
i.e., one division person need to see only his purchase orders, sales orders, Customer balances........
I know that Using Responsibility Center feature in Navision, we can filter documents like PO,SO......
But here we have same customers, Items, ....(masters) for all divisions. So i need to filter the balances. And the person (head of all divisions) need to see all the data.
Is it possible in Navision, Is there any thing already present in Navision to do so...
Thanks & Regards
Thanks & Regards,
Udaykumar Akunuri
Udaykumar Akunuri
0
Comments
-
yes u can indeed do it. let me explain you the stepwise proc:
1. in user setup table create a new field Branch code
2. in code unit 5700 ie user setup mgmt look at function GetSalesFilter(). u need to create a similar function for you field viz branch code or location.
3. then u need to write the following kind of code on the onopenform trigger of all your forms that need to filter location wise.IF UserMgt.GetSalesFilter() <> '' THEN BEGIN FILTERGROUP(2); SETRANGE("Responsibility Center",UserMgt.GetSalesFilter()); FILTERGROUP(0); END;
after finishing the above steps all you have to do is define the user id in table 91 ie User Setup and also the branch each id is related to. for any person whom the filter should not apply leave the branch field blank in table91.0 -
Hi sri,
Thank you for your reply.
For documents i can directly use Responsibility filter (no need to use another).
But for masters (to show balances division wise) what i need to do ? (and for reports also..)Thanks & Regards,
Udaykumar Akunuri0 -
Hi uday,
if u want to filter balances and other data branch/division wise, then u have to create a new field in the respective tables. there is no other way the system can differentiate entries unless you tell it which entry belongs to which branch/division. so u create a new field and pass the field while posting of entiries into the tables. for forms you can use the filter group code...and for reprts you have to give a text variable which can lookup your branch/division list and u can pass that as a filter to the dataitem in your reports.
if each user needs to c only his division in the lookup for the division list, GET the branch code of user from user setup table and then use the filter group code in the onlookup trigger of that variable.
hope this helps.
regards
sri0 -
Thank you Sri,
Introducing a new field in all tables is also a solution but it is more lenghty process naaaa.....
If anyone knows any other way please help me.Thanks & Regards,
Udaykumar Akunuri0
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