Modify code of a CU's Function from other CU

krzychub83
Member Posts: 120
I would like to be able to access function code of one codeunit from another cu. I am not thinking about the simple rise of a function. I would like to see the code like the C\AL Editor does.
Is it possible and how? Thanks for help.
Is it possible and how? Thanks for help.
0
Comments
-
As far as I know, no one has been able to "decompile" code found in the blob field of a corresponding object.
If you're looking to create some kind of editor your best bet would be to import/export the objects of choice by Text.0 -
can I ask you why do you need this?
Or there is couple reasons why I am looking for this. Code protection, modification menage, and and and...no one has been able to "decompile" code
There is always a way, but not always it has to be easy. :-k0 -
Just off the top of my head to create some kind of "Code Protection" and "Modification Management" just use encryption on the Blob field of the Object(s).
Make a specific CU for this to not only encrypt but to Run or to Edit the code as well.
Only downside is you'd have to use this CU to run anything you have "protected". I'm not entirely sure how the other code protection utilities work. (You can search for them under the download sections of Mibuso)
Although a crude idea on how to do what you want, I'm not entirely sure if it would work.
Also I highly doubt Navision "decompiles" and loads all the text code into memory and it just chills there until you hit design on an object. I'm sure it "decompiles" on the fly.0 -
I would also think again about discussing in a public forum that you are planning to do something illegal [-(David Singleton0
-
David Singleton wrote:I would also think again about discussing in a public forum that you are planning to do something illegal [-(
Not to be disrespectful to you David, and thank you for your opinion, but there are already code protection implementations out there (even on this site). Not sure how it would be illegal to publicly talk about how to create something that legally already exists, as long as there is no copyright infringement involved.0 -
Actually the reply was to krzychub83, but...
In anycase it is illegal to in anyway reverse engineer Navision code (read the contract). I am sure people do it, but that doesn't make it legal.David Singleton0 -
Thank You Xypher and David
I've just thought about utility to manage my modification code. However when I see a solution I see a possibilities of upgrading it functionality too.
The encryption of a blob field is a way, but I am not looking for it. I am trying to read and write code outside the C\AL Editor.
What about illegal/legal. If this is going to increase my knowledge about NAV I will take the shout, even to receive such comments.
So thank You both for answers.0 -
There is download which is using ROT to access NAV objects through NAV native interface (used e.g. by NDT). It have some bugs, but may be it will be enough for you. But do not forget that next version of NAV (NAV 2009) will compile the code into C# (it is easy to read the code from DB), and it means som implications for you like that the NAV is compiling the objects more often etc. (e.g. after importing FOB...)...0
-
Thank You Kine =D>0
-
kine wrote:There is download which is using ROT to access NAV objects through NAV native interface (used e.g. by NDT). It have some bugs, but may be it will be enough for you. But do not forget that next version of NAV (NAV 2009) will compile the code into C# (it is easy to read the code from DB), and it means som implications for you like that the NAV is compiling the objects more often etc. (e.g. after importing FOB...)...
Hi kine, I know this is an old thread, but could you tell which download you are referring to?
Thanks and regards,
rotoflex0 -
-
kine wrote:See http://gotcal.com/ for more...
I have used that example, what I wanted to know for example how these code protectors handle compiling objects from NAV? I know they don't use their own NET classes and I suspect they use some automation for that.
Regards,
roto0
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