Customization based on Company

pradeepgudipudi
Member Posts: 8
Hi everyone,
Imagine a database having two companies A and B of different busines application in NAV. I just wrote some code in an object for company A and if i execute the same object for company B the code written for company A should not execute for company B. Is there any possibility in NAV..??
Regards
Pradeep
Imagine a database having two companies A and B of different busines application in NAV. I just wrote some code in an object for company A and if i execute the same object for company B the code written for company A should not execute for company B. Is there any possibility in NAV..??
Regards
Pradeep
0
Comments
-
Sure, but it of course requires extra coding. Basically every modification you do is controlled by a check box in some setup form. When the checkbox is true for a company the code is executed, when it's false it isn't.0
-
-
lyot wrote:Code: Select all
CASE COMPANYNAME OF
"Cronus"://code;
"Alfa"://code;
END;
Because that won't blow up horribly if you rename your company. ](*,) And what happens if you add a new company? Going to go change every object again?
You should never hard code things like that.0 -
-
-
thanx for the help..0
-
DenSter, Matt,
my abstraction is so weak and i can not visualize clearly your suggestion.
is it like adding a checkbox in Company table:AllowCustomization : [ ]
then starting every block of code lines with something like:if companyinformation.allowcustomization then begin ...
if it's true, i'm not sure this will work.
but, i may wrong in understanding your points. Can you please describe further?0 -
The question was to make a certain piece of functionality only available in certain companies. The easiest way to do this is to provide a way to turn the functionality on based on certain setup information. Wheter that is a checkbox or a field that can be used to enter information, that all depends on the design of the solution.
The consensus was that hard coding company names was NOT the right way.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