Different Company same DB Customization possible ?
chandrurec
Member Posts: 560
Hi all,
I want to change the logic based on different companies in a same database. Is it possible?
if possible , kindly explain me how to achieve this.
Thanks in advance.
Regards,
chandru.
I want to change the logic based on different companies in a same database. Is it possible?
if possible , kindly explain me how to achieve this.
Thanks in advance.
Regards,
chandru.
0
Comments
-
You can do...
you need to have identification for every company on somewhere setup. 0 -
where do you want it exactly?
reports or codeunits or ?
and what is the customization?0 -
Hi mohana_cse06 ,
I want it in codeunit.
Regards,
chandru0 -
and the purpose?
I hope you have fully analyzed and took the decision to customize based on Company name?0 -
Hi mohana_cse06 ,
The thing is there are 2 companies one is for HO and one is for a new branch office, So i need to Compute one formula based on the company.
This is the purpose I need to change the logic based on different companies.
Thanks & Regards,
chandru.0 -
It would be best to create a parameter on some setup (i.e. company setup) and base the customisation on that parameter. In that case, when you add a company, you only have to set the parameter to the right value for that company, instead of modifying all your code to add the new company name.0
-
I stongly advise against the code sample Belias has given. Base your code branching on some configuration data in some setup table, as others have advised also, not on COMPANYNAME directly. The former gives you much more flexibility and is much more transparent.0
-
well, i'm not suggesting to hardcode "mycompanyname" parameter.
I meant that COMPANYNAME global variable can be used to be compared to a field in some setup, for example a new field in companyinformation. It's the fastest way to do it...not as flexible and smart as a new setup table, but it's fine, in my opinon.
P.S.: you're right, it's better to compare the "name" field in company inforamation table, instead of companyname0 -
Exactly.. i always ignore to hardcode AFA and used to make possible by setup.0
-
Belias wrote:well, i'm not suggesting to hardcode "mycompanyname" parameter.
I meant that COMPANYNAME global variable can be used to be compared to a field in some setup, for example a new field in companyinformation. It's the fastest way to do it...not as flexible and smart as a new setup table, but it's fine, in my opinon.
P.S.: you're right, it's better to compare the "name" field in company inforamation table, instead of companyname
Not good anyway.
A lot better is to create a setup in some table (Company , general ledger, inventory or a new table) in which you create a boolean (or an option or other still).
"Some Special Behaviour" as option with options:
-"Use standard NAV"
-"Do This"
-"Do That"
-"Do Something Else"
...
This is even more flexible and not bound to COMPANYNAME.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 117 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
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 991 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

