web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / mfp's two cents / X++ in AX7: Client/Server k...

X++ in AX7: Client/Server keywords

Michael Fruergaard Pontoppidan Profile Picture Michael Fruergaard ... 1,616

In AX7 all X++ code is running on the server tier. No exceptions. The compiler is ignoring client and server keywords.

 

When you come across any of these just delete them without a second thought:

  • Client and Server keywords
  • //AOSRunMode::xxx
  • xGlobal::ClientKind()
  • Dangling semicolons (but that is another story)

 

Similarly, if you stumble into any code that was taking the journey to the opposite tier to do some "magic" and then pack down the results in a container – consider refactoring the code. The journey is not happening anymore, and it is pure overhead. Typically such methods are static methods named xxx_OnServer() or xxxClient().

 

THIS POST APPLIES TO MICROSOFT DYNAMICS AX7 PREVIEW; IS PROVIDED AS-IS AND CONFERS NO RIGHTS.

1134.AX7TShirt.jpg

Comments

*This post is locked for comments