x++


how to protect the x++ source code


Is there a way to protect or hide custom code written in X++ for AX customization. I have made some new custom Forms, Tables, ...etc, on AX and i would like to hide the source code of my customizatzaion.
It's not possible. You can only protect you code by using the correct layers.
You could always scramble/obfuscate your code, there are tools that do this like this one:
http://www.aximprove.co.uk/
However hiding your code or scrambling it is a bad idea. It goes agains everything AX stands for. When you create a product as an ISV, you partners have the right to extends that functionality for their customers. And when a customer wants to customize the solution that the partner provided, they also should be able to do that when they have the correct license. That would be impossible when the code is scrambled.
Also, imagine debugging that code...
No customer/partner should accept that a solution written in X++ is scrambled.
I do not believe this is possible. From whom are you trying to hide the code?
One solution to hide your code would be to completely remove the layer (.aod file) that you created your customizations on. However, this would take all of your modifications out of the application along with the code.
The only way to keep source code hidden from another user is to make sure that they do not have an X++ Source Code security license on their application.
Definitely you can't. The X++ code in Dynamics AX is open by definition and there is no way to obfuscate or lock the source code for users or another partners if they have a development license.
You have your code protected by layers, but it is impossible by definition to hide it.
No you can only obfuscate your code. If you want to keep functionality private, you can put code in a .NET assembly.
Like Klaas said, almost no customer would accept this. I personally wouldn't accept the code, and I work for a large customer. I need to be able to debug immediately. If your code causes an issue that stops our production, that's $150k/hour...that's why I'm on-site and available 24/7. I doubt you can provide that guarantee too.

Related Links

AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)
What happened to the hrplimittablerelationship table in ax-2012-r2?
Why is my changes ignored to releaseupdate scripts in dynamics ax 2012 r2
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?
How to filter records in line grid based on selected record in header grid?
Dynamic linking gets cleared when inserting new records
Box::info showing “refreshEx”
How to filter lookup values on a dialogfield in Report Dialog based on another dialogfield in AX 2012 AOT reports?
Adding scrollbar to a Group in AX 2012 form
Table query inconsistent
AX2012 Sales Order Creation through AX Classes
How can I loop over Tables which contain specific characters in their AOT name and delete the data?
Having button that runs code, but doesn't submit data to (or validates against) table
Where are Duties (table name) stored in AX?

Categories

HOME
batch-file
redux-form
battery
hessian
sh
elasticsearch-5
arangodb
redis-sentinel
datastage
tput
selenium-ide
android-intent
mongodb-csharp
symbol
linear-algebra
package.json
android-7.0-nougat
imessage
xmonad
google-maps-autocomplete
rubymotion
backpack-for-laravel
exploit
tosca
highstock
calculation
event-flow
kodi
dumpbin
fossil
protege4
zoomify
google-earth-engine
connection-pool
gdata
diacritics
metawidget
ogc
azure-arm
levenshtein-distance
contract
android-checkbox
android-exoplayer
snapchat
dynamic-linq
identification
android-testing
baidu
reachability
flex-monkey
google-cloud-console
nikeplus-api
qiime
findfirst
spring-retry
custom-errors
terracotta
computer-architecture
include-guards
iced-coffeescript
airbrake
osc
diff3
zxspectrum
at-job
mruby
psr-4
mintty
android-audiorecord
dtmf
asdf
kaleidoscope
zope.interface
fusefabric
apache-whirr
automationelement
strsep
silent
object-database
tabpanel
data-mapping
online-storage

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App