Hi all,
Just an AX 2012 curiosity:
If you change a Class or View method with following header
private static server str MyMethod()
to
private static client str MyMethod()
Obviously, by doing this, you aim to always run it on the client tier, but would that require a cil to take effect?
According to my current understanding, if you do not do a full or incremental CIL, but just a compile. Both client and aos will 'think' that they are responsible for running this method. Because the AOS still has the CILL code that it is run on Server. So it is based on whomever the calling code was running which will decide where it is ran.
So
if the calling class was runOn=Server => cilled code will say that the method is Server and the method is executed on Server
If ... runOn=Client => ... executed on Client.
Curious to hear what you think and if I can get a deeper understanding.
Thanks!
Gabriel
*This post is locked for comments