The very first codeunit which is run

sabzam
Member Posts: 1,149
Dear All,
I need to restrict the navision when choosing the menusuite to particular one according to the user. I was hoping to either limit it through the permissions or else to modify the very first codunit which is run. What do you think and does anyone know which is the very first codeunit?
I need to restrict the navision when choosing the menusuite to particular one according to the user. I was hoping to either limit it through the permissions or else to modify the very first codunit which is run. What do you think and does anyone know which is the very first codeunit?
0
Comments
-
That would be codeunit 1. There's a function called LoginStart (I think that's what you're looking for) that you can add functionality to. Try putting a message in there and see which one you need.0
-
I must have not explained myself correctly. I need the codeunit which is run everytime that the company is chagned (but not the database)0
-
Codeunit 1, function CompanyOpen.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
By Any chance does anyone know where to put the code to force the Navision to decide which menusuite to shiow?0
-
Why don't you use the "Assign Users" functionality to assign users to MenuSuite's?
First select Tools -> Navigation Pane Designer. Then right-click on the MenuSuite (for example: Financial Mangement) and select "Assign Users". Now you can select the users who may access the MenuSuite. Finally select File -> Save to save your changes.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
I thought of that but what if I don't want a user to access the folder Marketing in the Sales and Marketing Tab for one company but not for the other?0
-
If the user will not have access to the tables, the menu items will not be showen. You can use this to prevent users to have access to permited tables. This can be different for each company. Just the group will be still there, if not just forms are there...0
-
It's better way if you play with permissions. create a new one for the menu sites. or create new fields (boolean) in the user table for these.0
-
I perfectly agree that it would have been the ideal solution but not when the client wants the users to have read permission for the customers for example but no access at all for the reports.0
-
Than you need to set permissions per object (reports), not only on table level.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